LD_PRELOAD: Refactor nomenclature (vcom -> ldp).
Change-Id: Id3891fe2873b631f8f69c1ca2905968130678561 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:

committed by
Keith Burns

parent
9fa881ff87
commit
2a8652701d
10
src/vcl.am
10
src/vcl.am
@@ -34,14 +34,14 @@ nobase_include_HEADERS += \
|
|||||||
libvcl_ldpreload_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
|
libvcl_ldpreload_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
|
||||||
|
|
||||||
libvcl_ldpreload_la_SOURCES += \
|
libvcl_ldpreload_la_SOURCES += \
|
||||||
vcl/vcom_socket_wrapper.c \
|
vcl/ldp_socket_wrapper.c \
|
||||||
vcl/vcom.c \
|
vcl/ldp.c \
|
||||||
$(libvppcom_la_SOURCES)
|
$(libvppcom_la_SOURCES)
|
||||||
|
|
||||||
nobase_include_HEADERS += \
|
nobase_include_HEADERS += \
|
||||||
vcl/vcom_socket_wrapper.h \
|
vcl/ldp_socket_wrapper.h \
|
||||||
vcl/vcom_glibc_socket.h \
|
vcl/ldp_glibc_socket.h \
|
||||||
vcl/vcom.h
|
vcl/ldp.h
|
||||||
|
|
||||||
noinst_PROGRAMS += \
|
noinst_PROGRAMS += \
|
||||||
vcl_test_server \
|
vcl_test_server \
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -13,30 +13,30 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef included_vcom_h
|
#ifndef included_ldp_h
|
||||||
#define included_vcom_h
|
#define included_ldp_h
|
||||||
|
|
||||||
#if (CLIB_DEBUG > 0)
|
#if (CLIB_DEBUG > 0)
|
||||||
/* Set VCOM_DEBUG 2 for connection debug, 3 for read/write debug output */
|
/* Set LDP_DEBUG 2 for connection debug, 3 for read/write debug output */
|
||||||
#define VCOM_DEBUG_INIT 1
|
#define LDP_DEBUG_INIT 1
|
||||||
#else
|
#else
|
||||||
#define VCOM_DEBUG_INIT 0
|
#define LDP_DEBUG_INIT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <vppinfra/error.h>
|
#include <vppinfra/error.h>
|
||||||
#include <vppinfra/types.h>
|
#include <vppinfra/types.h>
|
||||||
#include <vcl/vcom_glibc_socket.h>
|
#include <vcl/ldp_glibc_socket.h>
|
||||||
|
|
||||||
#define VCOM_ENV_DEBUG "VCOM_DEBUG"
|
#define LDP_ENV_DEBUG "LDP_DEBUG"
|
||||||
#define VCOM_ENV_APP_NAME "VCOM_APP_NAME"
|
#define LDP_ENV_APP_NAME "LDP_APP_NAME"
|
||||||
#define VCOM_ENV_SID_BIT "VCOM_SID_BIT"
|
#define LDP_ENV_SID_BIT "LDP_SID_BIT"
|
||||||
|
|
||||||
#define VCOM_SID_BIT_MIN 9
|
#define LDP_SID_BIT_MIN 9
|
||||||
#define VCOM_SID_BIT_MAX 30
|
#define LDP_SID_BIT_MAX 30
|
||||||
|
|
||||||
#define VCOM_APP_NAME_MAX 256
|
#define LDP_APP_NAME_MAX 256
|
||||||
|
|
||||||
#endif /* included_vcom_h */
|
#endif /* included_ldp_h */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fd.io coding-style-patch-verification: ON
|
* fd.io coding-style-patch-verification: ON
|
@@ -13,8 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef included_vcom_glibc_socket_h
|
#ifndef included_ldp_glibc_socket_h
|
||||||
#define included_vcom_glibc_socket_h
|
#define included_ldp_glibc_socket_h
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@@ -341,7 +341,7 @@ extern int ppoll (struct pollfd *__fds, nfds_t __nfds,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* included_vcom_glibc_socket_h */
|
#endif /* included_ldp_glibc_socket_h */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fd.io coding-style-patch-verification: ON
|
* fd.io coding-style-patch-verification: ON
|
@@ -63,7 +63,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include <vcl/vcom_socket_wrapper.h>
|
#include <vcl/ldp_socket_wrapper.h>
|
||||||
|
|
||||||
|
|
||||||
enum swrap_dbglvl_e
|
enum swrap_dbglvl_e
|
@@ -55,8 +55,8 @@
|
|||||||
is set.
|
is set.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef included_vcom_socket_wrapper_h
|
#ifndef included_ldp_socket_wrapper_h
|
||||||
#define included_vcom_socket_wrapper_h
|
#define included_ldp_socket_wrapper_h
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <vcl/vcom.h>
|
#include <vcl/ldp.h>
|
||||||
|
|
||||||
|
|
||||||
/* GCC have printf type attribute check. */
|
/* GCC have printf type attribute check. */
|
||||||
@@ -224,7 +224,7 @@ void swrap_constructor (void);
|
|||||||
|
|
||||||
void swrap_destructor (void);
|
void swrap_destructor (void);
|
||||||
|
|
||||||
#endif /* included_vcom_socket_wrapper_h */
|
#endif /* included_ldp_socket_wrapper_h */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fd.io coding-style-patch-verification: ON
|
* fd.io coding-style-patch-verification: ON
|
Reference in New Issue
Block a user