original files of m241
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: inet.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/arpa/inet.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_ARPA_INET_H
|
||||
#define IP_ARPA_INET_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "netinet/in.h"
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
#include "ipcom_sock2.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
char *inet_ntoa(const struct Ip_in_addr in); /* to trick autoconf */
|
||||
#define inet_ntoa(in) ipcom_inet_ntoa(in)
|
||||
|
||||
#define inet_addr(cp) ipcom_inet_addr(cp)
|
||||
#define inet_aton(cp,addr) ipcom_inet_aton(cp,addr)
|
||||
|
||||
#define inet_pton(family,strptr,addrptr) ipcom_inet_pton(family,(IP_CONST char *)strptr,addrptr)
|
||||
#define inet_ntop(family,addrptr,strptr,len) ipcom_inet_ntop(family,(IP_CONST void *)addrptr,strptr,(Ip_size_t)len)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: telnet.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/arpa/telnet.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_ARPA_TELNET_H
|
||||
#define IP_ARPA_TELNET_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* telnet codes: */
|
||||
#define IAC 255
|
||||
#define DONT 254
|
||||
#define DO 253
|
||||
#define WONT 252
|
||||
#define WILL 251
|
||||
#define SB 250
|
||||
#define GA 249
|
||||
#define EL 248
|
||||
#define EC 247
|
||||
#define AYT 246
|
||||
#define AO 245
|
||||
#define IP 244
|
||||
#define BREAK 243
|
||||
#define DM 242
|
||||
#define SYNCH 242
|
||||
#define NOP 241
|
||||
#define SE 240
|
||||
#define EOR 239
|
||||
#define ABORT 238
|
||||
#define SUSP 237
|
||||
#define xEOF 236
|
||||
|
||||
/* telnet options: */
|
||||
#define TELOPT_BINARY 0
|
||||
#define TELOPT_ECHO 1
|
||||
#define TELOPT_RCP 2
|
||||
#define TELOPT_SGA 3
|
||||
#define TELOPT_NAMS 4
|
||||
#define TELOPT_STATUS 5
|
||||
#define TELOPT_TM 6
|
||||
#define TELOPT_RCTE 7
|
||||
#define TELOPT_NAOL 8
|
||||
#define TELOPT_NAOP 9
|
||||
#define TELOPT_NAOCRD 10
|
||||
#define TELOPT_NAOHTS 11
|
||||
#define TELOPT_NAOHTD 12
|
||||
#define TELOPT_NAOFFD 13
|
||||
#define TELOPT_NAOVTS 14
|
||||
#define TELOPT_NAOVTD 15
|
||||
#define TELOPT_NAOLFD 16
|
||||
#define TELOPT_XASCII 17
|
||||
#define TELOPT_LOGOUT 18
|
||||
#define TELOPT_BM 19
|
||||
#define TELOPT_DET 20
|
||||
#define TELOPT_SUPDUP 21
|
||||
#define TELOPT_SUPDUPOUTPUT 22
|
||||
#define TELOPT_SNDLOC 23
|
||||
#define TELOPT_TTYPE 24
|
||||
#define TELOPT_EOR 25
|
||||
#define TELOPT_TUID 26
|
||||
#define TELOPT_OUTMRK 27
|
||||
#define TELOPT_TTYLOC 28
|
||||
#define TELOPT_3270REGIME 29
|
||||
#define TELOPT_X3PAD 30
|
||||
#define TELOPT_NAWS 31
|
||||
#define TELOPT_TSPEED 32
|
||||
#define TELOPT_LFLOW 33
|
||||
#define TELOPT_LINEMODE 34
|
||||
#define TELOPT_XDISPLOC 35
|
||||
#define TELOPT_OLD_ENVIRON 36
|
||||
#define TELOPT_AUTHENTICATION 37
|
||||
#define TELOPT_ENCRYPT 38
|
||||
#define TELOPT_NEW_ENVIRON 39
|
||||
#define TELOPT_EXOPL 255
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: assert.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/assert.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_ASSERT_H
|
||||
#define IP_ASSERT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define assert ip_assert
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ctype.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/ctype.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_CTYPE_H
|
||||
#define IP_CTYPE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if (defined(IPCOM_ISSPACE) && IPCOM_ISSPACE == 1) || defined(IPCOM_PORT_ISSPACE)
|
||||
#define isspace ipcom_isspace
|
||||
#elif defined(IPCOM_ISSPACE)
|
||||
#define isspace IPCOM_ISSPACE
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISALPHA) && IPCOM_ISALPHA == 1) || defined(IPCOM_PORT_ISALPHA)
|
||||
#define isalpha ipcom_isalpha
|
||||
#elif defined(IPCOM_ISALPHA)
|
||||
#define isalpha IPCOM_ISALPHA
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISGRAPH) && IPCOM_ISGRAPH == 1) || defined(IPCOM_PORT_ISGRAPH)
|
||||
#define isgraph ipcom_isgraph
|
||||
#elif defined(IPCOM_ISGRAPH)
|
||||
#define isgraph IPCOM_ISGRAPH
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISUPPER) && IPCOM_ISUPPER == 1) || defined(IPCOM_PORT_ISUPPER)
|
||||
#define isupper ipcom_isupper
|
||||
#elif defined(IPCOM_ISUPPER)
|
||||
#define isupper IPCOM_ISUPPER
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISLOWER) && IPCOM_ISLOWER == 1) || defined(IPCOM_PORT_ISLOWER)
|
||||
#define islower ipcom_islower
|
||||
#elif defined(IPCOM_ISLOWER)
|
||||
#define islower IPCOM_ISLOWER
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISDIGIT) && IPCOM_ISDIGIT == 1) || defined(IPCOM_PORT_ISDIGIT)
|
||||
#define isdigit ipcom_isdigit
|
||||
#elif defined(IPCOM_ISDIGIT)
|
||||
#define isdigit IPCOM_ISDIGIT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISPRINT) && IPCOM_ISPRINT == 1) || defined(IPCOM_PORT_ISPRINT)
|
||||
#define isprint ipcom_isprint
|
||||
#elif defined(IPCOM_ISPRINT)
|
||||
#define isprint IPCOM_ISPRINT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISALNUM) && IPCOM_ISALNUM == 1) || defined(IPCOM_PORT_ISALNUM)
|
||||
#define isalnum ipcom_isalnum
|
||||
#elif defined(IPCOM_ISALNUM)
|
||||
#define isalnum IPCOM_ISALNUM
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISCNTRL) && IPCOM_ISCNTRL == 1) || defined(IPCOM_PORT_ISCNTRL)
|
||||
#define iscntrl ipcom_iscntrl
|
||||
#elif defined(IPCOM_ISCNTRL)
|
||||
#define iscntrl IPCOM_ISCNTRL
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISPUNCT) && IPCOM_ISPUNCT == 1) || defined(IPCOM_PORT_ISPUNCT)
|
||||
#define ispunct ipcom_ispunct
|
||||
#elif defined(IPCOM_ISPUNCT)
|
||||
#define ispunct IPCOM_ISPUNCT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISXDIGIT) && IPCOM_ISXDIGIT == 1) || defined(IPCOM_PORT_ISXDIGIT)
|
||||
#define isxdigit ipcom_isxdigit
|
||||
#elif defined(IPCOM_ISXDIGIT)
|
||||
#define isxdigit IPCOM_ISXDIGIT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ISASCII) && IPCOM_ISASCII == 1) || defined(IPCOM_PORT_ISASCII)
|
||||
#define isascii ipcom_isascii
|
||||
#elif defined(IPCOM_ISASCII)
|
||||
#define isascii IPCOM_ISASCII
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_TOUPPER) && IPCOM_TOUPPER == 1) || defined(IPCOM_PORT_TOUPPER)
|
||||
#define toupper ipcom_toupper
|
||||
#elif defined(IPCOM_TOUPPER)
|
||||
#define toupper IPCOM_TOUPPER
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_TOLOWER) && IPCOM_TOLOWER == 1) || defined(IPCOM_PORT_TOLOWER)
|
||||
#define tolower ipcom_tolower
|
||||
#elif defined(IPCOM_TOLOWER)
|
||||
#define tolower IPCOM_TOLOWER
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: dirent.h,v $ $Revision: 1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/dirent.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-26 08:25:05 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_DIRENT_H
|
||||
#define IP_DIRENT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
typedef IP_DIR DIR; /* to trick autoconf */
|
||||
#define DIR IP_DIR
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define opendir(a1) ipcom_opendir(a1)
|
||||
#define readdir(a1) ipcom_readdir(a1)
|
||||
#define closedir(a1) ipcom_closedir(a1)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: errno.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/errno.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_ERRNO_H
|
||||
#define IP_ERRNO_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/errno.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef errno
|
||||
#define errno ipcom_errno
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: fcntl.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/fcntl.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_FCNTL_H
|
||||
#define IP_FCNTL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/fcntl.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: getopt.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/getopt.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_GETOPT_H
|
||||
#define IP_GETOPT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
#include "ipcom_getopt.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef NETSNMP_INTERPEAK
|
||||
#define __GNU_LIBRARY__
|
||||
#define opterr ip_opterr
|
||||
#define optind ip_optind
|
||||
#define optarg ip_optarg
|
||||
#define optopt ip_optopt
|
||||
#define optreset ip_optreset
|
||||
#define getopt(a, b, c) ipcom_getopt(a, b, c)
|
||||
#else
|
||||
#define opterr ipnetsnmp_opterr
|
||||
#define optind ipnetsnmp_optind
|
||||
#define optarg ipnetsnmp_optarg
|
||||
#define optopt ipnetsnmp_optopt
|
||||
#define optreset ipnetsnmp_optreset
|
||||
IP_EXTERN int ipnetsnmp_opterr;
|
||||
IP_EXTERN int ipnetsnmp_optind;
|
||||
IP_EXTERN int ipnetsnmp_optopt;
|
||||
IP_EXTERN int ipnetsnmp_optreset;
|
||||
IP_EXTERN char *ipnetsnmp_optarg;
|
||||
#define getopt(a, b, c) ipnetsnmp_getopt(a, b, c)
|
||||
IP_PUBLIC int ipnetsnmp_getopt(int argc, char * const *argv, const char *optstring);
|
||||
#endif /* #ifndef NETSNMP_INTERPEAK */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: grp.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/grp.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_GRP_H
|
||||
#define IP_GRP_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_cstyle.h"
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "stddef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
struct group
|
||||
{
|
||||
char *gr_name; /* Group name. */
|
||||
char *gr_passwd; /* Password. */
|
||||
gid_t gr_gid; /* Group ID. */
|
||||
char **gr_mem; /* Member list. */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define getgrnam(n) ipnetsnmp_getgrnam(n)
|
||||
IP_PUBLIC struct group *ipnetsnmp_getgrnam(const char *name);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ifaddrs.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/ifaddrs.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_IFADDRS_H
|
||||
#define IP_IFADDRS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/socket.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define ifaddrs Ip_ifaddrs
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define getifaddrs ipcom_getifaddrs
|
||||
#define freeifaddrs ipcom_freeifaddrs
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: limits.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/limits.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:39:22 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LIMITS_H
|
||||
#define IP_LIMITS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#define INT_MAX 0x7fffffff /* max value for an int */
|
||||
#define INT_MIN (-INT_MAX - 1)
|
||||
|
||||
#define UINT_MAX 0xffffffffU /* max value for an unsigned int */
|
||||
|
||||
#define LONG_MAX 0x7fffffffL /* max value for a long */
|
||||
#define LONG_MIN (-LONG_MAX - 1L)
|
||||
|
||||
#define ULONG_MAX 0xffffffffUL /* max value for an unsigned long */
|
||||
#define SSIZE_MAX INT_MAX
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1 @@
|
||||
/* Dummy header file */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef __LINUX_IF_H
|
||||
#define __LINUX_IF_H
|
||||
|
||||
#include "net/if.h"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,43 @@
|
||||
#ifndef __LINUX_IF_ADDR_H
|
||||
#define __LINUX_IF_ADDR_H
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
#define ifaddrmsg Ip_ifaddrmsg
|
||||
|
||||
#define IFA_UNSPEC IP_IFA_UNSPEC
|
||||
#define IFA_ADDRESS IP_IFA_ADDRESS
|
||||
#define IFA_LOCAL IP_IFA_LOCAL
|
||||
#define IFA_LABEL IP_IFA_LABEL
|
||||
#define IFA_BROADCAST IP_IFA_BROADCAST
|
||||
#define IFA_ANYCAST IP_IFA_ANYCAST
|
||||
#define IFA_CACHEINFO IP_IFA_CACHEINFO
|
||||
#define IFA_MULTICAST IP_IFA_MULTICAST
|
||||
#define IFA_VR IP_IFA_VR
|
||||
#define IFA_TABLE IP_IFA_TABLE
|
||||
#define IFA_TABLE_NAME IP_IFA_TABLE_NAME
|
||||
#define IFA_X_INFO IP_IFA_X_INFO
|
||||
#define __IFA_MAX __IP_IFA_MAX
|
||||
|
||||
#define IFA_MAX IP_IFA_MAX
|
||||
|
||||
#define IFA_F_SECONDARY IP_IFA_F_SECONDARY
|
||||
#define IFA_F_TEMPORARY IP_IFA_F_TEMPORARY
|
||||
|
||||
#define IFA_F_DEPRECATED IP_IFA_F_DEPRECATED
|
||||
#define IFA_F_TENTATIVE IP_IFA_F_TENTATIVE
|
||||
#define IFA_F_PERMANENT IP_IFA_F_PERMANENT
|
||||
|
||||
#define IFA_F_NODAD IP_IFA_F_NODAD
|
||||
#define IFA_F_OPTIMISTIC IP_IFA_F_OPTIMISTIC
|
||||
#define IFA_F_HOMEADDRESS IP_IFA_F_HOMEADDRESS
|
||||
|
||||
#define ifa_x_info Ip_ifa_x_info
|
||||
|
||||
#define IFA_F_X_AUTONOM IP_IFA_F_X_AUTONOM
|
||||
#define IFA_F_X_ONLINK IP_IFA_F_X_ONLINK
|
||||
#define IFA_F_X_AUTOMATIC IP_IFA_F_AUTOMATIC
|
||||
#define IFA_F_X_INACCESSIBLE IP_IFA_F_INACCESSIBLE
|
||||
#define IFA_F_X_PREFERRED IP_IFA_F_PREFERRED
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,83 @@
|
||||
#ifndef __LINUX_IF_ARP_H
|
||||
#define __LINUX_IF_ARP_H
|
||||
|
||||
#include "linux/netdevice.h"
|
||||
|
||||
#include <ipcom_netif.h>
|
||||
|
||||
/* ARP protocol HARDWARE identifiers. */
|
||||
#define ARPHRD_NETROM 0 /* from KA9Q: NET/ROM pseudo */
|
||||
#define ARPHRD_ETHER IP_IFT_ETHER /* Ethernet 10Mbps */
|
||||
#define ARPHRD_EETHER 2 /* Experimental Ethernet */
|
||||
#define ARPHRD_AX25 3 /* AX.25 Level 2 */
|
||||
#define ARPHRD_PRONET 4 /* PROnet token ring */
|
||||
#define ARPHRD_CHAOS 5 /* Chaosnet */
|
||||
#define ARPHRD_IEEE802 6 /* IEEE 802.2 Ethernet/TR/TB */
|
||||
#define ARPHRD_ARCNET 7 /* ARCnet */
|
||||
#define ARPHRD_APPLETLK 8 /* APPLEtalk */
|
||||
#define ARPHRD_DLCI 15 /* Frame Relay DLCI */
|
||||
#define ARPHRD_ATM 19 /* ATM */
|
||||
#define ARPHRD_METRICOM 23 /* Metricom STRIP (new IANA id) */
|
||||
#if 0
|
||||
#define ARPHRD_IEEE1394 24 /* IEEE 1394 IPv4 - RFC 2734 */
|
||||
#endif
|
||||
#define ARPHRD_EUI64 27 /* EUI-64 */
|
||||
#define ARPHRD_INFINIBAND 32 /* InfiniBand */
|
||||
|
||||
/* Dummy types for non ARP hardware */
|
||||
#define ARPHRD_SLIP 256
|
||||
#define ARPHRD_CSLIP 257
|
||||
#define ARPHRD_SLIP6 258
|
||||
#define ARPHRD_CSLIP6 259
|
||||
#define ARPHRD_RSRVD 260 /* Notional KISS type */
|
||||
#define ARPHRD_ADAPT 264
|
||||
#define ARPHRD_ROSE 270
|
||||
#define ARPHRD_X25 271 /* CCITT X.25 */
|
||||
#define ARPHRD_HWX25 272 /* Boards with X.25 in firmware */
|
||||
#define ARPHRD_PPP IP_IFT_PPP
|
||||
#define ARPHRD_CISCO 513 /* Cisco HDLC */
|
||||
#define ARPHRD_HDLC ARPHRD_CISCO
|
||||
#define ARPHRD_LAPB 516 /* LAPB */
|
||||
#define ARPHRD_DDCMP 517 /* Digital's DDCMP protocol */
|
||||
#define ARPHRD_RAWHDLC 518 /* Raw HDLC */
|
||||
|
||||
#define ARPHRD_TUNNEL IP_IFT_TUNNEL /* IPIP tunnel */
|
||||
#define ARPHRD_TUNNEL6 769 /* IP6IP6 tunnel */
|
||||
#define ARPHRD_FRAD 770 /* Frame Relay Access Device */
|
||||
#define ARPHRD_SKIP 771 /* SKIP vif */
|
||||
#define ARPHRD_LOOPBACK IP_IFT_LOOP /* Loopback device */
|
||||
#define ARPHRD_LOCALTLK 773 /* Localtalk device */
|
||||
#define ARPHRD_FDDI 774 /* Fiber Distributed Data Interface */
|
||||
#define ARPHRD_BIF 775 /* AP1000 BIF */
|
||||
#define ARPHRD_SIT 776 /* sit0 device - IPv6-in-IPv4 */
|
||||
#define ARPHRD_IPDDP 777 /* IP over DDP tunneller */
|
||||
#define ARPHRD_IPGRE 778 /* GRE over IP */
|
||||
#define ARPHRD_PIMREG 779 /* PIMSM register interface */
|
||||
#define ARPHRD_HIPPI 780 /* High Performance Parallel Interface */
|
||||
#define ARPHRD_ASH 781 /* Nexus 64Mbps Ash */
|
||||
#define ARPHRD_ECONET 782 /* Acorn Econet */
|
||||
#define ARPHRD_IRDA 783 /* Linux-IrDA */
|
||||
/* ARP works differently on different FC media .. so */
|
||||
#define ARPHRD_FCPP 784 /* Point to point fibrechannel */
|
||||
#define ARPHRD_FCAL 785 /* Fibrechannel arbitrated loop */
|
||||
#define ARPHRD_FCPL 786 /* Fibrechannel public loop */
|
||||
#define ARPHRD_FCFABRIC 787 /* Fibrechannel fabric */
|
||||
/* 787->799 reserved for fibrechannel media types */
|
||||
#define ARPHRD_IEEE802_TR 800 /* Magic type ident for TR */
|
||||
#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
|
||||
#define ARPHRD_IEEE80211_PRISM 802 /* IEEE 802.11 + Prism2 header */
|
||||
#define ARPHRD_IEEE80211_RADIOTAP 803 /* IEEE 802.11 + radiotap header */
|
||||
|
||||
#define ARPHRD_VOID IP_IFT_OTHER /* Void type, nothing is known */
|
||||
#define ARPHRD_NONE 0xFFFE /* zero header length */
|
||||
|
||||
/* ARP protocol opcodes. */
|
||||
#define ARPOP_REQUEST 1 /* ARP request */
|
||||
#define ARPOP_REPLY 2 /* ARP reply */
|
||||
#define ARPOP_RREQUEST 3 /* RARP request */
|
||||
#define ARPOP_RREPLY 4 /* RARP reply */
|
||||
#define ARPOP_InREQUEST 8 /* InARP request */
|
||||
#define ARPOP_InREPLY 9 /* InARP reply */
|
||||
#define ARPOP_NAK 10 /* (ATM)ARP NAK */
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,68 @@
|
||||
#ifndef __LINUX_IF_ETHER_H
|
||||
#define __LINUX_IF_ETHER_H
|
||||
|
||||
#define ETH_ALEN 6 /* Octets in one ethernet addr */
|
||||
#define ETH_HLEN 14 /* Total octets in header. */
|
||||
#define ETH_ZLEN 60 /* Min. octets in frame sans FCS */
|
||||
#define ETH_DATA_LEN 1500 /* Max. octets in payload */
|
||||
#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */
|
||||
|
||||
/*
|
||||
* * These are the defined Ethernet Protocol ID's.
|
||||
* */
|
||||
|
||||
#define ETH_P_LOOP 0x0060 /* Ethernet Loopback packet */
|
||||
#define ETH_P_PUP 0x0200 /* Xerox PUP packet */
|
||||
#define ETH_P_PUPAT 0x0201 /* Xerox PUP Addr Trans packet */
|
||||
#define ETH_P_IP 0x0800 /* Internet Protocol packet */
|
||||
#define ETH_P_X25 0x0805 /* CCITT X.25 */
|
||||
#define ETH_P_ARP 0x0806 /* Address Resolution packet */
|
||||
#define ETH_P_BPQ 0x08FF /* G8BPQ AX.25 Ethernet Packet [ NOT AN OFFICIALLY REGISTERED ID ] */
|
||||
#define ETH_P_IEEEPUP 0x0a00 /* Xerox IEEE802.3 PUP packet */
|
||||
#define ETH_P_IEEEPUPAT 0x0a01 /* Xerox IEEE802.3 PUP Addr Trans packet */
|
||||
#define ETH_P_DEC 0x6000 /* DEC Assigned proto */
|
||||
#define ETH_P_DNA_DL 0x6001 /* DEC DNA Dump/Load */
|
||||
#define ETH_P_DNA_RC 0x6002 /* DEC DNA Remote Console */
|
||||
#define ETH_P_DNA_RT 0x6003 /* DEC DNA Routing */
|
||||
#define ETH_P_LAT 0x6004 /* DEC LAT */
|
||||
#define ETH_P_DIAG 0x6005 /* DEC Diagnostics */
|
||||
#define ETH_P_CUST 0x6006 /* DEC Customer use */
|
||||
#define ETH_P_SCA 0x6007 /* DEC Systems Comms Arch */
|
||||
#define ETH_P_RARP 0x8035 /* Reverse Addr Res packet */
|
||||
#define ETH_P_ATALK 0x809B /* Appletalk DDP */
|
||||
#define ETH_P_AARP 0x80F3 /* Appletalk AARP */
|
||||
#define ETH_P_8021Q 0x8100 /* 802.1Q VLAN Extended Header */
|
||||
#define ETH_P_IPX 0x8137 /* IPX over DIX */
|
||||
#define ETH_P_IPV6 0x86DD /* IPv6 over bluebook */
|
||||
#define ETH_P_SLOW 0x8809 /* Slow Protocol. See 802.3ad 43B */
|
||||
#define ETH_P_WCCP 0x883E /* Web-cache coordination protocol
|
||||
* defined in draft-wilson-wrec-wccp-v2-00.txt */
|
||||
#define ETH_P_PPP_DISC 0x8863 /* PPPoE discovery messages */
|
||||
#define ETH_P_PPP_SES 0x8864 /* PPPoE session messages */
|
||||
#define ETH_P_MPLS_UC 0x8847 /* MPLS Unicast traffic */
|
||||
#define ETH_P_MPLS_MC 0x8848 /* MPLS Multicast traffic */
|
||||
#define ETH_P_ATMMPOA 0x884c /* MultiProtocol Over ATM */
|
||||
#define ETH_P_ATMFATE 0x8884 /* Frame-based ATM Transport
|
||||
* over Ethernet
|
||||
* */
|
||||
#define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
|
||||
#define ETH_P_TIPC 0x88CA /* TIPC */
|
||||
#define ETH_P_802_3 0x0001 /* Dummy type for 802.3 frames */
|
||||
#define ETH_P_AX25 0x0002 /* Dummy protocol id for AX.25 */
|
||||
#define ETH_P_ALL 0x0003 /* Every packet (be careful!!!) */
|
||||
#define ETH_P_802_2 0x0004 /* 802.2 frames */
|
||||
#define ETH_P_SNAP 0x0005 /* Internal only */
|
||||
#define ETH_P_DDCMP 0x0006 /* DEC DDCMP: Internal only */
|
||||
#define ETH_P_WAN_PPP 0x0007 /* Dummy type for WAN PPP frames*/
|
||||
#define ETH_P_PPP_MP 0x0008 /* Dummy type for PPP MP frames */
|
||||
#define ETH_P_LOCALTALK 0x0009 /* Localtalk pseudo type */
|
||||
#define ETH_P_PPPTALK 0x0010 /* Dummy type for Atalk over PPP*/
|
||||
#define ETH_P_TR_802_2 0x0011 /* 802.2 frames */
|
||||
#define ETH_P_MOBITEX 0x0015 /* Mobitex (kaz@cafe.net) */
|
||||
#define ETH_P_CONTROL 0x0016 /* Card specific control frames */
|
||||
#define ETH_P_IRDA 0x0017 /* Linux-IrDA */
|
||||
#define ETH_P_ECONET 0x0018 /* Acorn Econet */
|
||||
#define ETH_P_HDLC 0x0019 /* HDLC frames */
|
||||
#define ETH_P_ARCNET 0x001A /* 1A for ArcNet :-) */
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,87 @@
|
||||
#ifndef __LINUX_IF_LINK_H
|
||||
#define __LINUX_IF_LINK_H
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
#define rtnl_link_stats Ip_rtnl_link_stats
|
||||
#define rtnl_link_ifmap Ip_rtnl_link_ifmap
|
||||
|
||||
#define prefixmsg Ip_prefixmsg
|
||||
#define PREFIX_UNSPEC IP_PREFIX_UNSPEC
|
||||
#define PREFIX_ADDRESS IP_PREFIX_ADDRESS
|
||||
#define PREFIX_CACHEINFO IP_PREFIX_CACHEINFO
|
||||
#define PREFIX_VR IP_PREFIX_VR
|
||||
#define __PREFIX_MAX __IP_PREFIX_MAX
|
||||
#define PREFIX_MAX IP_PREFIX_MAX
|
||||
|
||||
#define prefix_cacheinfo Ip_prefix_cacheinfo
|
||||
#define net_device_stats rtnl_link_stats
|
||||
|
||||
#define IFLA_UNSPEC IP_IFLA_UNSPEC
|
||||
#define IFLA_ADDRESS IP_IFLA_ADDRESS
|
||||
#define IFLA_BROADCAST IP_IFLA_BROADCAST
|
||||
#define IFLA_IFNAME IP_IFLA_IFNAME
|
||||
#define IFLA_MTU IP_IFLA_MTU
|
||||
#define IFLA_LINK IP_IFLA_LINK
|
||||
#define IFLA_QDISC IP_IFLA_QDISC
|
||||
#define IFLA_STATS IP_IFLA_STATS
|
||||
#define IFLA_COST IP_IFLA_COST
|
||||
#define IFLA_PRIORITY IP_IFLA_PRIORITY
|
||||
#define IFLA_MASTER IP_IFLA_MASTER
|
||||
#define IFLA_WIRELESS IP_IFLA_WIRELESS
|
||||
#define IFLA_PROTINFO IP_IFLA_PROTINFO
|
||||
#define IFLA_TXQLEN IP_IFLA_TXQLEN
|
||||
#define IFLA_MAP IP_IFLA_MAP
|
||||
#define IFLA_WEIGHT IP_IFLA_WEIGHT
|
||||
#define IFLA_OPERSTATE IP_IFLA_OPERSTATE
|
||||
#define IFLA_LINKMODE IP_IFLA_LINKMODE
|
||||
#define IFLA_LINKINFO IP_IFLA_LINKINFO
|
||||
#define IFLA_VR IP_IFLA_VR
|
||||
#define __IFLA_MAX __IP_IFLA_MAX
|
||||
#define IFLA_MAX IP_IFLA_MAX
|
||||
|
||||
#define IFLA_RTA(r) IP_IFLA_RTA(r)
|
||||
#define IFLA_PAYLOAD(n) IP_IFLA_PAYLOAD(n)
|
||||
|
||||
#define IFLA_INET6_UNSPEC IP_IFLA_INET6_UNSPEC
|
||||
#define IFLA_INET6_FLAGS IP_IFLA_INET6_FLAGS
|
||||
#define IFLA_INET6_CONF IP_IFLA_INET6_CONF
|
||||
#define IFLA_INET6_STATS IP_IFLA_INET6_STATS
|
||||
#define IFLA_INET6_MCAST IP_IFLA_INET6_MCAST
|
||||
#define IFLA_INET6_CACHEINFO IP_IFLA_INET6_CACHEINFO
|
||||
#define __IFLA_INET6_MAX __IP_IFLA_INET6_MAX
|
||||
|
||||
#define IFLA_INET6_MAX IP_IFLA_INET6_MAX
|
||||
|
||||
#define ifla_cacheinfo Ip_ifla_cacheinfo
|
||||
|
||||
#define IFLA_INFO_UNSPEC IP_IFLA_INFO_UNSPEC
|
||||
#define IFLA_INFO_KIND IP_IFLA_INFO_KIND
|
||||
#define IFLA_INFO_DATA IP_IFLA_INFO_DATA
|
||||
#define IFLA_INFO_XSTATS IP_IFLA_INFO_XSTATS
|
||||
#define _IFLA_INFO_MAX __IP_IFLA_INFO_MAX
|
||||
|
||||
#define IFLA_INFO_MAX IP_IFLA_INFO_MAX
|
||||
|
||||
#define IFLA_VLAN_UNSPEC IP_IFLA_VLAN_UNSPEC
|
||||
#define IFLA_VLAN_ID IP_IFLA_VLAN_ID
|
||||
#define IFLA_VLAN_FLAGS IP_IFLA_VLAN_FLAGS
|
||||
#define IFLA_VLAN_EGRESS_QOS IP_IFLA_VLAN_EGRESS_QOS
|
||||
#define IFLA_VLAN_INGRESS_QOS IP_IFLA_VLAN_INGRESS_QOS
|
||||
#define __IFLA_VLAN_MAX __IP_IFLA_VLAN_MAX
|
||||
|
||||
|
||||
#define IFLA_VLAN_MAX IP_IFLA_VLAN_MAX
|
||||
|
||||
#define ifla_vlan_flags Ip_ifla_vlan_flags
|
||||
|
||||
#define IFLA_VLAN_QOS_UNSPEC IP_IFLA_VLAN_QOS_UNSPEC
|
||||
#define IFLA_VLAN_QOS_MAPPING IP_IFLA_VLAN_QOS_MAPPING
|
||||
#define __IFLA_VLAN_QOS_MAX __IP_IFLA_VLAN_QOS_MAX
|
||||
|
||||
|
||||
#define IFLA_VLAN_QOS_MAX IP_IFLA_VLAN_QOS_MAX
|
||||
|
||||
#define ifla_vlan_qos_mapping Ip_ifla_vlan_qos_mapping
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: mpls.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/mpls.h,v $
|
||||
* $Author: lob $ $Date: 2005-07-20 09:40:43 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Jonas Rendel <Jonas.Rendel@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_MPLS_H
|
||||
#define IP_LINUX_MPLS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
#include "ipmpls.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
#define SIOCGLABELSPACEMPLS IPMPLS_SIOCGLABELSPACEMPLS
|
||||
#define SIOCSLABELSPACEMPLS IPMPLS_SIOCSLABELSPACEMPLS
|
||||
#define SIOCMPLSTUNNELADD IPMPLS_SIOCMPLSTUNNELADD
|
||||
#define SIOCMPLSTUNNELDEL IPMPLS_SIOCMPLSTUNNELDEL
|
||||
#define SIOCMPLSNHLFESETMTU IPMPLS_SIOCMPLSNHLFESETMTU
|
||||
#define SIOCMPLSNHLFEADD IPMPLS_SIOCMPLSNHLFEADD
|
||||
#define SIOCMPLSNHLFEDEL IPMPLS_SIOCMPLSNHLFEDEL
|
||||
#define SIOCMPLSNHLFEGET IPMPLS_SIOCMPLSNHLFEGET
|
||||
#define SIOCMPLSILMADD IPMPLS_SIOCMPLSILMADD
|
||||
#define SIOCMPLSILMDEL IPMPLS_SIOCMPLSILMDEL
|
||||
#define SIOCMPLSILMGET IPMPLS_SIOCMPLSILMGET
|
||||
|
||||
#define SIOCMPLSXCADD IPMPLS_SIOCMPLSXCADD
|
||||
#define SIOCMPLSXCDEL IPMPLS_SIOCMPLSXCDEL
|
||||
#define SIOCMPLSXCGET IPMPLS_SIOCMPLSXCGET
|
||||
#define SIOCMPLSILMFLUSH IPMPLS_SIOCMPLSILMFLUSH
|
||||
#define SIOCMPLSNHLFEFLUSH IPMPLS_SIOCMPLSNHLFEFLUSH
|
||||
#define SIOCSMPLSININSTR IPMPLS_SIOCSMPLSININSTR
|
||||
#define SIOCGMPLSININSTR IPMPLS_SIOCGMPLSININSTR
|
||||
#define SIOCSMPLSOUTINSTR IPMPLS_SIOCSMPLSOUTINSTR
|
||||
#define SIOCGMPLSOUTINSTR IPMPLS_SIOCGMPLSOUTINSTR
|
||||
|
||||
#define SIOCMPLSTUNNELADDOUT IPMPLS_SIOCMPLSTUNNELADDOUT
|
||||
#define SIOCMPLSTUNNELDELOUT IPMPLS_SIOCMPLSTUNNELDELOUT
|
||||
|
||||
#define MPLS_OP_NOP IPMPLS_OP_NOP
|
||||
#define MPLS_OP_POP IPMPLS_OP_POP
|
||||
#define MPLS_OP_PEEK IPMPLS_OP_PEEK
|
||||
#define MPLS_OP_PUSH IPMPLS_OP_PUSH
|
||||
#define MPLS_OP_DLV IPMPLS_OP_DLV
|
||||
#define MPLS_OP_FWD IPMPLS_OP_FWD
|
||||
#define MPLS_OP_SET IPMPLS_OP_SET
|
||||
#define MPLS_OP_SET_RX IPMPLS_OP_SET_RX
|
||||
#define MPLS_OP_SET_RTAB IPMPLS_OP_SET_RTAB
|
||||
|
||||
#define MPLS_IN IPMPLS_IN
|
||||
#define MPLS_OUT IPMPLS_OUT
|
||||
|
||||
#define MPLS_LABEL_TYPE_GEN IPMPLS_LABEL_TYPE_GEN
|
||||
#define MPLS_LABEL_TYPE_KEY IPMPLS_LABEL_TYPE_KEY
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define mpls_label Ipmpls_label
|
||||
#define mpls_nexthop_info Ipmpls_nexthop_info
|
||||
#define mni_addr a.sa
|
||||
#define mpls_instr_elem Ipmpls_instr_elem
|
||||
|
||||
#define mpls_instr_req Ipmpls_instr_req
|
||||
#define mpls_instruction_req Ipmpls_instr_req
|
||||
#define mir_instruction mir_instr
|
||||
#define mir_instruction_length mir_instr_length
|
||||
|
||||
#define mpls_labelspace_req Ipmpls_labelspace_req
|
||||
#define mpls_out_label_req Ipmpls_out_label_req
|
||||
#define mpls_in_label_req Ipmpls_in_label_req
|
||||
#define mpls_xconnect_req Ipmpls_xconnect_req
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: mroute.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/mroute.h,v $
|
||||
* $Author: lob $ $Date: 2005-03-09 14:26:33 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_MROUTE_H
|
||||
#define IP_LINUX_MROUTE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* Multicasting
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
/* Multicast Routing socket options, level = IP_IPPROTO_IPV4 */
|
||||
#define MRT_BASE IP_MRT_BASE
|
||||
#define MRT_INIT IP_MRT_INIT
|
||||
#define MRT_DONE IP_MRT_DONE
|
||||
#define MRT_ADD_VIF IP_MRT_ADD_VIF
|
||||
#define MRT_DEL_VIF IP_MRT_DEL_VIF
|
||||
#define MRT_ADD_MFC IP_MRT_ADD_MFC
|
||||
#define MRT_DEL_MFC IP_MRT_DEL_MFC
|
||||
#define MRT_VERSION IP_MRT_VERSION
|
||||
#define MRT_ASSERT IP_MRT_ASSERT
|
||||
|
||||
#define IOC_INET_MCAST IP_IOC_INET_MCAST
|
||||
#define SIOCGETVIFCNT IP_SIOCGETVIFCNT
|
||||
#define SIOCGETSGCNT IP_SIOCGETSGCNT
|
||||
|
||||
#define MAXVIFS IP_MAXVIFS
|
||||
|
||||
#define VIFF_TUNNEL IP_VIFF_TUNNEL
|
||||
#define VIFF_SRCRT IP_VIFF_SRCRT
|
||||
#define VIFF_REGISTER IP_VIFF_REGISTER
|
||||
|
||||
#define IGMPMSG_NOCACHE IP_IGMPMSG_NOCACHE
|
||||
#define IGMPMSG_WRONGVIF IP_IGMPMSG_WRONGVIF
|
||||
#define IGMPMSG_WHOLEPKT IP_IGMPMSG_WHOLEPKT
|
||||
|
||||
#define IPV6_X_ADD_MFC IP_IPV6_X_ADD_MFC
|
||||
#define IPV6_X_DEL_MFC IP_IPV6_X_DEL_MFC
|
||||
|
||||
#define ALL_VIFS ((Ip_vifi_t)(-1))
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define vifi_t Ip_vifi_t
|
||||
#define vifctl Ip_vifctl
|
||||
#define sioc_vif_req Ip_sioc_vif_req
|
||||
#define sioc_sg_req Ip_sioc_sg_req
|
||||
#define mfcctl Ip_mfcctl
|
||||
#define igmpmsg Ip_igmpmsg
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef __LINUX_NETDEVICE_H
|
||||
#define __LINUX_NETDEVICE_H
|
||||
|
||||
#include "net/if.h"
|
||||
#include "linux/if.h"
|
||||
#include "linux/if_ether.h"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: netlink.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/netlink.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:38:49 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_NETLINK_H
|
||||
#define IP_LINUX_NETLINK_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
#include "ipcom_netlink.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* NETLINK DEFINITIONS
|
||||
*===========================================================================
|
||||
*/
|
||||
#define sockaddr_nl Ip_sockaddr_nl
|
||||
#define nlmsghdr Ip_nlmsghdr
|
||||
|
||||
#define NLM_F_REQUEST IP_NLM_F_REQUEST
|
||||
#define NLM_F_MULTI IP_NLM_F_MULTI
|
||||
#define NLM_F_ACK IP_NLM_F_ACK
|
||||
#define NLM_F_ECHO IP_NLM_F_ECHO
|
||||
|
||||
#define NLM_F_ROOT IP_NLM_F_ROOT
|
||||
#define NLM_F_MATCH IP_NLM_F_MATCH
|
||||
#define NLM_F_ATOMIC IP_NLM_F_ATOMIC
|
||||
#define NLM_F_DUMP IP_NLM_F_DUMP
|
||||
|
||||
#define NLM_F_REPLACE IP_NLM_F_REPLACE
|
||||
#define NLM_F_EXCL IP_NLM_F_EXCL
|
||||
#define NLM_F_CREATE IP_NLM_F_CREATE
|
||||
#define NLM_F_APPEND IP_NLM_F_APPEND
|
||||
|
||||
#define NLM_F_VR_UNSPEC IP_NLM_F_VR_UNSPEC
|
||||
|
||||
|
||||
#define NLMSG_ALIGNTO IP_NLMSG_ALIGNTO
|
||||
#define NLMSG_ALIGN(len) IP_NLMSG_ALIGN(len)
|
||||
#define NLMSG_LENGTH(len) IP_NLMSG_LENGTH(len)
|
||||
#define NLMSG_SPACE(len) IP_NLMSG_SPACE(len)
|
||||
#define NLMSG_DATA(nlh) IP_NLMSG_DATA(nlh)
|
||||
#define NLMSG_NEXT(nlh,len) IP_NLMSG_NEXT(nlh,len)
|
||||
#define NLMSG_OK(nlh,len) IP_NLMSG_OK(nlh,len)
|
||||
#define NLMSG_PAYLOAD(nlh,len) IP_NLMSG_PAYLOAD(nlh,len)
|
||||
|
||||
#define NLMSG_NOOP IP_NLMSG_NOOP
|
||||
#define NLMSG_ERROR IP_NLMSG_ERROR
|
||||
#define NLMSG_DONE IP_NLMSG_DONE
|
||||
#define NLMSG_OVERRUN IP_NLMSG_OVERRUN
|
||||
|
||||
/* IP_NLMSG_ERROR */
|
||||
#define nlmsgerr Ip_nlmsgerr
|
||||
|
||||
#define NETLINK_ADD_MEMBERSHIP IP_NETLINK_ADD_MEMBERSHIP
|
||||
#define NETLINK_DROP_MEMBERSHIP IP_NETLINK_DROP_MEMBERSHIP
|
||||
#define NETLINK_PKTINFO IP_NETLINK_PKTINFO
|
||||
|
||||
#define nl_pktinfo Ip_nl_pktinfo
|
||||
|
||||
#define NETLINK_UNCONNECTED IP_NETLINK_UNCONNECTED
|
||||
#define NETLINK_CONNECTED IP_NETLINK_CONNECTED
|
||||
|
||||
#define nlattr Ip_nlattr
|
||||
|
||||
#define NLA_ALIGNTO IP_NLA_ALIGNTO
|
||||
#define NLA_ALIGN(len) IP_NLA_ALIGN(len)
|
||||
#define NLA_HDRLEN IP_NLA_HDRLEN
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,455 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: rtnetlink.h,v $ $Revision: 1.5 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/rtnetlink.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-04-10 08:05:43 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_RTNETLINK_H
|
||||
#define IP_LINUX_RTNETLINK_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/if_link.h>
|
||||
#include <linux/if_addr.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* RTNETLINK DEFINITIONS
|
||||
*===========================================================================
|
||||
*/
|
||||
#define NETLINK_ROUTE IP_NETLINK_ROUTE
|
||||
|
||||
#define RTM_BASE IP_RTM_BASE
|
||||
#define RTM_NEWLINK IP_RTM_NEWLINK
|
||||
#define RTM_DELLINK IP_RTM_DELLINK
|
||||
#define RTM_GETLINK IP_RTM_GETLINK
|
||||
#define RTM_SETLINK IP_RTM_SETLINK
|
||||
#define RTM_NEWADDR IP_RTM_NEWADDR
|
||||
#define RTM_DELADDR IP_RTM_DELADDR
|
||||
#define RTM_GETADDR IP_RTM_GETADDR
|
||||
#define RTM_NEWROUTE IP_RTM_NEWROUTE
|
||||
#define RTM_DELROUTE IP_RTM_DELROUTE
|
||||
#define RTM_GETROUTE IP_RTM_GETROUTE
|
||||
#define RTM_NEWNEIGH IP_RTM_NEWNEIGH
|
||||
#define RTM_DELNEIGH IP_RTM_DELNEIGH
|
||||
#define RTM_GETNEIGH IP_RTM_GETNEIGH
|
||||
#define RTM_NEWRULE IP_RTM_NEWRULE
|
||||
#define RTM_DELRULE IP_RTM_DELRULE
|
||||
#define RTM_GETRULE IP_RTM_GETRULE
|
||||
#define RTM_NEWQDISC IP_RTM_NEWQDISC
|
||||
#define RTM_DELQDISC IP_RTM_DELQDISC
|
||||
#define RTM_GETQDISC IP_RTM_GETQDISC
|
||||
#define RTM_NEWTCLASS IP_RTM_NEWTCLASS
|
||||
#define RTM_DELTCLASS IP_RTM_DELTCLASS
|
||||
#define RTM_GETTCLASS IP_RTM_GETTCLASS
|
||||
#define RTM_NEWTFILTER IP_RTM_NEWTFILTER
|
||||
#define RTM_DELTFILTER IP_RTM_DELTFILTER
|
||||
#define RTM_GETTFILTER IP_RTM_GETTFILTER
|
||||
#define RTM_NEWACTION IP_RTM_NEWACTION
|
||||
#define RTM_DELACTION IP_RTM_DELACTION
|
||||
#define RTM_GETACTION IP_RTM_GETACTION
|
||||
#define RTM_NEWPREFIX IP_RTM_NEWPREFIX
|
||||
#define RTM_GETPREFIX IP_RTM_GETPREFIX
|
||||
#define RTM_GETMULTICAST IP_RTM_GETMULTICAST
|
||||
#define RTM_GETANYCAST IP_RTM_GETANYCAST
|
||||
#define RTM_NEWNEIGHTBL IP_RTM_NEWNEIGHTBL
|
||||
#define RTM_GETNEIGHTBL IP_RTM_GETNEIGHTBL
|
||||
#define RTM_SETNEIGHTBL IP_RTM_SETNEIGHTBL
|
||||
|
||||
/* CONFIG INTERPEAK >>> */
|
||||
#define RTM_NEWVR IP_RTM_NEWVR
|
||||
#define RTM_DELVR IP_RTM_DELVR
|
||||
#define RTM_GETVR IP_RTM_GETVR
|
||||
#define RTM_CHANGEVR IP_RTM_CHANGEVR
|
||||
#define RTM_NEWMIP IP_RTM_NEWMIP
|
||||
#define RTM_DELMIP IP_RTM_DELMIP
|
||||
#define RTM_GETMIP IP_RTM_GETMIP
|
||||
#define RTM_SETMIP IP_RTM_SETMIP
|
||||
/* <<< CONFIG INTERPEAK */
|
||||
|
||||
#define __RTM_MAX __IP_RTM_MAX,
|
||||
|
||||
#define RTM_MAX IP_RTM_MAX
|
||||
|
||||
#define RTM_NR_MSGTYPES IP_RTM_NR_MSGTYPES
|
||||
#define RTM_NR_FAMILIES IP_RTM_NR_FAMILIES
|
||||
#define RTM_FAM(cmd) IP_RTM_FAM(cmd)
|
||||
|
||||
#define rtattr Ip_rtattr
|
||||
|
||||
#define RTA_ALIGNTO IP_RTA_ALIGNTO
|
||||
#define RTA_ALIGN(len) IP_RTA_ALIGN(len)
|
||||
#define RTA_OK(rta,len) IP_RTA_OK(rta,len)
|
||||
#define RTA_NEXT(rta,attrlen) IP_RTA_NEXT(rta,attrlen)
|
||||
#define RTA_LENGTH(len) IP_RTA_LENGTH(len)
|
||||
#define RTA_SPACE(len) IP_RTA_SPACE(len)
|
||||
#define RTA_DATA(rta) IP_RTA_DATA(rta)
|
||||
#define RTA_PAYLOAD(rta) IP_RTA_PAYLOAD(rta)
|
||||
|
||||
#define rtmsg Ip_rtmsg
|
||||
|
||||
#define RTN_UNSPEC IP_RTN_UNSPEC
|
||||
#define RTN_UNICAST IP_RTN_UNICAST
|
||||
#define RTN_LOCAL IP_RTN_LOCAL
|
||||
#define RTN_BROADCAST IP_RTN_BROADCAST
|
||||
#define RTN_ANYCAST IP_RTN_ANYCAST
|
||||
#define RTN_MULTICAST IP_RTN_MULTICAST
|
||||
#define RTN_BLACKHOLE IP_RTN_BLACKHOLE
|
||||
#define RTN_UNREACHABLE IP_RTN_UNREACHABLE
|
||||
#define RTN_PROHIBIT IP_RTN_PROHIBIT
|
||||
#define RTN_THROW IP_RTN_THROW
|
||||
#define RTN_NAT IP_RTN_NAT
|
||||
#define RTN_XRESOLVE IP_RTN_XRESOLVE
|
||||
#define RTN_PROXY IP_RTN_PROXY
|
||||
#define RTN_CLONE IP_RTN_CLONE
|
||||
#define __RTN_MAX __IP_RTN_MAX
|
||||
|
||||
#define RTN_MAX IP_RTN_MAX
|
||||
|
||||
#define RTPROT_UNSPEC IP_RTPROT_UNSPEC
|
||||
#define RTPROT_REDIRECT IP_RTPROT_REDIRECT
|
||||
#define RTPROT_KERNEL IP_RTPROT_KERNEL
|
||||
#define RTPROT_BOOT IP_RTPROT_BOOT
|
||||
#define RTPROT_STATIC IP_RTPROT_STATIC
|
||||
#define RTPROT_GATED IP_RTPROT_GATED
|
||||
#define RTPROT_RA IP_RTPROT_RA
|
||||
#define RTPROT_MRT IP_RTPROT_MRT
|
||||
#define RTPROT_ZEBRA IP_RTPROT_ZEBRA
|
||||
#define RTPROT_BIRD IP_RTPROT_BIRD
|
||||
#define RTPROT_DNROUTED IP_RTPROT_DNROUTED
|
||||
#define RTPROT_XORP IP_RTPROT_XORP
|
||||
#define RTPROT_NTK IP_RTPROT_NTK
|
||||
|
||||
#define rt_scope_t Ip_rt_scope_t
|
||||
#define RT_SCOPE_UNIVERSE IP_RT_SCOPE_UNIVERSE
|
||||
#define RT_SCOPE_SITE IP_RT_SCOPE_SITE
|
||||
#define RT_SCOPE_LINK IP_RT_SCOPE_LINK
|
||||
#define RT_SCOPE_HOST IP_RT_SCOPE_HOST
|
||||
#define RT_SCOPE_NOWHERE IP_RT_SCOPE_NOWHERE
|
||||
|
||||
#define RTM_F_NOTIFY IP_RTM_F_NOTIFY
|
||||
#define RTM_F_CLONED IP_RTM_F_CLONED
|
||||
#define RTM_F_EQUALIZE IP_RTM_F_EQUALIZE
|
||||
#define RTM_F_PREFIX IP_RTM_F_PREFIX
|
||||
|
||||
#define rt_class_t Ip_rt_class_t
|
||||
#define RT_TABLE_UNSPEC IP_RT_TABLE_UNSPEC
|
||||
#define RT_TABLE_DEFAULT IP_RT_TABLE_DEFAULT
|
||||
#define RT_TABLE_MAIN IP_RT_TABLE_MAIN
|
||||
#define RT_TABLE_LOCAL IP_RT_TABLE_LOCAL
|
||||
#define __RT_TABLE_MAX __IP_RT_TABLE_MAX
|
||||
#define RT_TABLE_MAX IP_RT_TABLE_MAX
|
||||
|
||||
|
||||
#define rtattr_type_t Ip_rtattr_type_t
|
||||
#define RTA_UNSPEC IP_RTA_UNSPEC
|
||||
#define RTA_DST IP_RTA_DST
|
||||
#define RTA_SRC IP_RTA_SRC
|
||||
#define RTA_IIF IP_RTA_IIF
|
||||
#define RTA_OIF IP_RTA_OIF
|
||||
#define RTA_GATEWAY IP_RTA_GATEWAY
|
||||
#define RTA_PRIORITY IP_RTA_PRIORITY
|
||||
#define RTA_PREFSRC IP_RTA_PREFSRC
|
||||
#define RTA_METRICS IP_RTA_METRICS
|
||||
#define RTA_MULTIPATH IP_RTA_MULTIPATH
|
||||
#define RTA_PROTOINFO IP_RTA_PROTOINFO
|
||||
#define RTA_FLOW IP_RTA_FLOW
|
||||
#define RTA_CACHEINFO IP_RTA_CACHEINFO
|
||||
#define RTA_SESSION IP_RTA_SESSION
|
||||
#define RTA_MP_ALGO IP_RTA_MP_ALGO
|
||||
#define RTA_NH_PROTO IP_RTA_NH_PROTO
|
||||
#define RTA_NH_PROTO_DATA IP_RTA_NH_PROTO_DATA
|
||||
#define RTA_PROXY_ARP_LLADDR IP_RTA_PROXY_ARP_LLADDR
|
||||
#define RTA_VR IP_RTA_VR
|
||||
#define RTA_TABLE IP_RTA_TABLE
|
||||
#define RTA_TABLE_NAME IP_RTA_TABLE_NAME
|
||||
#define __RTA_MAX __IP_RTA_MAX
|
||||
|
||||
#define RTA_MAX IP_RTA_MAX
|
||||
|
||||
#define RTM_RTA(r) IP_RTM_RTA(r)
|
||||
#define RTM_PAYLOAD(n) IP_RTM_PAYLOAD(n)
|
||||
|
||||
#define NH_PROTO_MPLS IP_NH_PROTO_MPLS
|
||||
|
||||
#define rtnexthop Ip_rtnexthop
|
||||
|
||||
#define RTNH_F_DEAD IP_RTNH_F_DEAD
|
||||
#define RTNH_F_PERVASIVE IP_RTNH_F_PERVASIVE
|
||||
#define RTNH_F_ONLINK IP_RTNH_F_ONLINK
|
||||
|
||||
#define RTNH_ALIGNTO IP_RTNH_ALIGNTO
|
||||
#define RTNH_ALIGN(len) IP_RTNH_ALIGN(len)
|
||||
#define RTNH_OK(rtnh,len) IP_RTNH_OK(rtnh,len)
|
||||
#define RTNH_NEXT(rtnh) IP_RTNH_NEXT(rtnh)
|
||||
#define RTNH_LENGTH(len) IP_RTNH_LENGTH(len)
|
||||
#define RTNH_SPACE(len) IP_RTNH_SPACE(len)
|
||||
#define RTNH_DATA(rtnh) IP_RTNH_DATA(rtnh)
|
||||
|
||||
#define rta_cacheinfo Ip_rta_cacheinfo
|
||||
|
||||
#define RTNETLINK_HAVE_PEERINFO IP_RTNETLINK_HAVE_PEERINFO
|
||||
|
||||
#define RTAX_UNSPEC IP_RTAX_UNSPEC
|
||||
#define RTAX_LOCK IP_RTAX_LOCK
|
||||
#define RTAX_MTU IP_RTAX_MTU
|
||||
#define RTAX_WINDOW IP_RTAX_WINDOW
|
||||
#define RTAX_RTT IP_RTAX_RTT
|
||||
#define RTAX_RTTVAR IP_RTAX_RTTVAR
|
||||
#define RTAX_SSTHRESH IP_RTAX_SSTHRESH
|
||||
#define RTAX_CWND IP_RTAX_CWND
|
||||
#define RTAX_ADVMSS IP_RTAX_ADVMSS
|
||||
#define RTAX_REORDERING IP_RTAX_REORDERING
|
||||
#define RTAX_HOPLIMIT IP_RTAX_HOPLIMIT
|
||||
#define RTAX_INITCWND IP_RTAX_INITCWND
|
||||
#define RTAX_FEATURES IP_RTAX_FEATURES
|
||||
#define RTAX_RTO_MIN IP_RTAX_RTO_MIN
|
||||
#define __RTAX_MAX __IP_RTAX_MAX
|
||||
|
||||
#define RTAX_MAX IP_RTAX_MAX
|
||||
|
||||
#define RTAX_FEATURE_ECN IP_RTAX_FEATURE_ECN
|
||||
#define RTAX_FEATURE_SACK IP_RTAX_FEATURE_SACK
|
||||
#define RTAX_FEATURE_TIMESTAMP IP_RTAX_FEATURE_TIMESTAMP
|
||||
#define RTAX_FEATURE_ALLFRAG IP_RTAX_FEATURE_ALLFRAG
|
||||
#define rta_session Ip_rta_session
|
||||
|
||||
#define ifa_cacheinfo Ip_ifa_cacheinfo
|
||||
#define IFA_RTA(r) IP_IFA_RTA(r)
|
||||
#define IFA_PAYLOAD(n) IP_IFA_PAYLOAD(n)
|
||||
|
||||
#define ndmsg Ip_ndmsg
|
||||
|
||||
#define NDA_UNSPEC IP_NDA_UNSPEC
|
||||
#define NDA_DST IP_NDA_DST
|
||||
#define NDA_LLADDR IP_NDA_LLADDR
|
||||
#define NDA_CACHEINFO IP_NDA_CACHEINFO
|
||||
#define NDA_PROBES IP_NDA_PROBES
|
||||
#define NDA_VR IP_NDA_VR
|
||||
#define NDA_TABLE IP_NDA_TABLE
|
||||
#define NDA_TABLE_NAME IP_NDA_TABLE_NAME
|
||||
#define NDA_REALIFINDEX IP_NDA_REALIFINDEX
|
||||
#define __NDA_MAX __IP_NDA_MAX
|
||||
|
||||
#define NDA_MAX IP_NDA_MAX
|
||||
|
||||
#define NDA_RTA(r) IP_NDA_RTA(r)
|
||||
#define NDA_PAYLOAD(n) IP_NDA_PAYLOAD(n)
|
||||
|
||||
#define NTF_PROXY IP_NTF_PROXY
|
||||
#define NTF_ROUTER IP_NTF_ROUTER
|
||||
#define NTF_GRAT IP_NTF_GRAT
|
||||
|
||||
#define NUD_INCOMPLETE IP_NUD_INCOMPLETE
|
||||
#define NUD_REACHABLE IP_NUD_REACHABLE
|
||||
#define NUD_STALE IP_NUD_STALE
|
||||
#define NUD_DELAY IP_NUD_DELAY
|
||||
#define NUD_PROBE IP_NUD_PROBE
|
||||
#define NUD_FAILED IP_NUD_FAILED
|
||||
|
||||
#define NUD_NOARP IP_NUD_NOARP
|
||||
#define NUD_PERMANENT IP_NUD_PERMANENT
|
||||
#define NUD_NONE IP_NUD_NONE
|
||||
|
||||
#define nda_cacheinfo Ip_nda_cacheinfo
|
||||
#define ndt_stats Ip_ndt_stats
|
||||
|
||||
#define NDTPA_UNSPEC IP_NDTPA_UNSPEC
|
||||
#define NDTPA_IFINDEX IP_NDTPA_IFINDEX
|
||||
#define NDTPA_REFCNT IP_NDTPA_REFCNT
|
||||
#define NDTPA_REACHABLE_TIME IP_NDTPA_REACHABLE_TIME
|
||||
#define NDTPA_BASE_REACHABLE_TIME IP_NDTPA_BASE_REACHABLE_TIME
|
||||
#define NDTPA_RETRANS_TIME IP_NDTPA_RETRANS_TIME
|
||||
#define NDTPA_GC_STALETIME IP_NDTPA_GC_STALETIME
|
||||
#define NDTPA_DELAY_PROBE_TIME IP_NDTPA_DELAY_PROBE_TIME
|
||||
#define NDTPA_QUEUE_LEN IP_NDTPA_QUEUE_LEN
|
||||
#define NDTPA_APP_PROBES IP_NDTPA_APP_PROBES
|
||||
#define NDTPA_UCAST_PROBES IP_NDTPA_UCAST_PROBES
|
||||
#define NDTPA_MCAST_PROBES IP_NDTPA_MCAST_PROBES
|
||||
#define NDTPA_ANYCAST_DELAY IP_NDTPA_ANYCAST_DELAY
|
||||
#define NDTPA_PROXY_DELAY IP_NDTPA_PROXY_DELAY
|
||||
#define NDTPA_PROXY_QLEN IP_NDTPA_PROXY_QLEN
|
||||
#define NDTPA_LOCKTIME IP_NDTPA_LOCKTIME
|
||||
#define __NDTPA_MAX __IP_NDTPA_MAX
|
||||
#define NDTPA_MAX IP_NDTPA_MAX
|
||||
|
||||
#define ndtmsg Ip_ndtmsg
|
||||
#define ndt_config Ip_ndt_config
|
||||
|
||||
#define NDTA_UNSPEC IP_NDTA_UNSPEC
|
||||
#define NDTA_NAME IP_NDTA_NAME
|
||||
#define NDTA_THRESH1 IP_NDTA_THRESH1
|
||||
#define NDTA_THRESH2 IP_NDTA_THRESH2
|
||||
#define NDTA_THRESH3 IP_NDTA_THRESH3
|
||||
#define NDTA_CONFIG IP_NDTA_CONFIG
|
||||
#define NDTA_PARMS IP_NDTA_PARMS
|
||||
#define NDTA_STATS IP_NDTA_STATS
|
||||
#define NDTA_GC_INTERVAL IP_NDTA_GC_INTERVAL
|
||||
#define __NDTA_MAX __IP_NDTA_MAX
|
||||
#define NDTA_MAX IP_NDTA_MAX
|
||||
|
||||
#define NDTA_RTA(r) IP_NDTA_RTA(r)
|
||||
#define NDTA_PAYLOAD(n) IP_NDTA_PAYLOAD(n)
|
||||
|
||||
|
||||
#define rtgenmsg Ip_rtgenmsg
|
||||
#define ifinfomsg Ip_ifinfomsg
|
||||
|
||||
#define tcmsg Ip_tcmsg
|
||||
|
||||
#define TCA_UNSPEC IP_TCA_UNSPEC
|
||||
#define TCA_KIND IP_TCA_KIND
|
||||
#define TCA_OPTIONS IP_TCA_OPTIONS
|
||||
#define TCA_STATS IP_TCA_STATS
|
||||
#define TCA_XSTATS IP_TCA_XSTATS
|
||||
#define TCA_RATE IP_TCA_RATE
|
||||
#define TCA_FCNT IP_TCA_FCNT
|
||||
#define TCA_STATS2 IP_TCA_STATS2
|
||||
#define __TCA_MAX __IP_TCA_MAX
|
||||
|
||||
#define TCA_MAX IP_TCA_MAX
|
||||
|
||||
#define TCA_RTA(r) IP_TCA_RTA(r)
|
||||
#define TCA_PAYLOAD(n) IP_TCA_PAYLOAD(n)
|
||||
|
||||
#define RTNLGRP_NONE IP_RTNLGRP_NONE
|
||||
#define RTNLGRP_LINK IP_RTNLGRP_LINK
|
||||
#define RTNLGRP_NOTIFY IP_RTNLGRP_NOTIFY
|
||||
#define RTNLGRP_NEIGH IP_RTNLGRP_NEIGH
|
||||
#define RTNLGRP_TC IP_RTNLGRP_TC
|
||||
#define RTNLGRP_IPV4_IFADDR IP_RTNLGRP_IPV4_IFADDR
|
||||
#define RTNLGRP_IPV4_MROUTE IP_RTNLGRP_IPV4_MROUTE
|
||||
#define RTNLGRP_IPV4_ROUTE IP_RTNLGRP_IPV4_ROUTE
|
||||
#define RTNLGRP_IPV4_RULE IP_RTNLGRP_IPV4_RULE
|
||||
#define RTNLGRP_IPV6_IFADDR IP_RTNLGRP_IPV6_IFADDR
|
||||
#define RTNLGRP_IPV6_MROUTE IP_RTNLGRP_IPV6_MROUTE
|
||||
#define RTNLGRP_IPV6_ROUTE IP_RTNLGRP_IPV6_ROUTE
|
||||
#define RTNLGRP_IPV6_IFINFO IP_RTNLGRP_IPV6_IFINFO
|
||||
#define RTNLGRP_DECnet_IFADDR IP_RTNLGRP_DECnet_IFADDR
|
||||
#define RTNLGRP_NOP2 IP_RTNLGRP_NOP2
|
||||
#define RTNLGRP_DECnet_ROUTE IP_RTNLGRP_DECnet_ROUTE
|
||||
#define RTNLGRP_RTAB IP_RTNLGRP_RTAB
|
||||
#define RTNLGRP_NOP4 IP_RTNLGRP_NOP4
|
||||
#define RTNLGRP_IPV6_PREFIX IP_RTNLGRP_IPV6_PREFIX
|
||||
#define RTNLGRP_IPV6_RULE IP_RTNLGRP_IPV6_RULE
|
||||
#define __RTNLGRP_MAX __IP_RTNLGRP_MAX
|
||||
#define RTNLGRP_MAX IP_RTNLGRP_MAX
|
||||
|
||||
|
||||
#define RTMGRP_LINK IP_RTMGRP_LINK
|
||||
#define RTMGRP_NOTIFY IP_RTMGRP_NOTIFY
|
||||
#define RTMGRP_NEIGH IP_RTMGRP_NEIGH
|
||||
#define RTMGRP_TC IP_RTMGRP_TC
|
||||
|
||||
#define RTMGRP_IPV4_IFADDR IP_RTMGRP_IPV4_IFADDR
|
||||
#define RTMGRP_IPV4_MROUTE IP_RTMGRP_IPV4_MROUTE
|
||||
#define RTMGRP_IPV4_ROUTE IP_RTMGRP_IPV4_ROUTE
|
||||
#define RTMGRP_IPV4_RULE IP_RTMGRP_IPV4_RULE
|
||||
|
||||
#define RTMGRP_IPV6_IFADDR IP_RTMGRP_IPV6_IFADDR
|
||||
#define RTMGRP_IPV6_MROUTE IP_RTMGRP_IPV6_MROUTE
|
||||
#define RTMGRP_IPV6_ROUTE IP_RTMGRP_IPV6_ROUTE
|
||||
#define RTMGRP_IPV6_IFINFO IP_RTMGRP_IPV6_IFINFO
|
||||
|
||||
#define RTMGRP_DECnet_IFADDR IP_RTMGRP_DECnet_IFADDR
|
||||
#define RTMGRP_DECnet_ROUTE IP_RTMGRP_DECnet_ROUTE
|
||||
|
||||
#define RTMGRP_IPV6_PREFIX IP_RTMGRP_IPV6_PREFIX
|
||||
#define RTMGRP_RTAB IP_RTMGRP_RTAB
|
||||
|
||||
|
||||
#define tcamsg Ip_tcamsg
|
||||
#define TA_RTA(r) IP_TA_RTA(r)
|
||||
#define TA_PAYLOAD(n) IP_TA_PAYLOAD(n)
|
||||
#define TCA_ACT_TAB IP_TCA_ACT_TAB
|
||||
#define TCAA_MAX IP_TCAA_MAX
|
||||
|
||||
|
||||
/* CONFIG INTERPEAK >>> */
|
||||
#define VR_ANY IPCOM_VR_ANY
|
||||
|
||||
#define vrmsg Ip_vrmsg
|
||||
#define VR_UNSPEC IP_VR_UNSPEC
|
||||
#define VR_VR IP_VR_VR
|
||||
#define VR_IFNAME IP_VR_IFNAME
|
||||
#define VR_TABLE IP_VR_TABLE
|
||||
#define VR_TABLE_NAME IP_VR_TABLE_NAME
|
||||
#define VR_IFNAMES IP_VR_IFNAMES
|
||||
#define VR_TABLES IP_VR_TABLES
|
||||
#define __VR_MAX __IP_VR_MAX
|
||||
#define VR_MAX IP_VR_MAX
|
||||
|
||||
#define VRX_UNSPEC IP_VRX_UNSPEC
|
||||
#define VRX_IFNAME IP_VRX_IFNAME
|
||||
#define VRX_TABLE IP_VRX_TABLE
|
||||
#define VRX_TABLE_NAME IP_VRX_TABLE_NAME
|
||||
#define __VRX_MAX __IP_VRX_MAX
|
||||
#define VRX_MAX IP_VRX_MAX
|
||||
|
||||
#define VR_RTA(r) IP_VR_RTA(r)
|
||||
#define VR_PAYLOAD(n) IP_VR_PAYLOAD(n)
|
||||
|
||||
/* <<< CONFIG INTERPEAK */
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: socket.h,v $ $Revision: 1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/socket.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-24 11:42:22 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_SOCKET_H
|
||||
#define IP_LINUX_SOCKET_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: sockios.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/sockios.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:38:49 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Jonas Rendel <Jonas.Rendel@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_SOCKIOS_H
|
||||
#define IP_LINUX_SOCKIOS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define SIOCADDVRF IP_SIOCADDRTAB
|
||||
#define SIOCDELVRF IP_SIOCDELRTAB
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: types.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/linux/types.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:38:49 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LINUX_TYPES_H
|
||||
#define IP_LINUX_TYPES_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "asm/types.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: locale.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/locale.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_LOCALE_H
|
||||
#define IP_LOCALE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
#include "ipcom_clib2.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define LC_ALL 0
|
||||
#define LC_COLLATE 1
|
||||
#define LC_CTYPE 2
|
||||
#define LC_MONETARY 3
|
||||
#define LC_NUMERIC 4
|
||||
#define LC_TIME 5
|
||||
#define LC_MESSAGES 6
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
/* Use c library version directly since function is not available in IPCOM */
|
||||
extern char *setlocale(int category, const char *locale);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: malloc.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/malloc.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_MALLOC_H
|
||||
#define IP_MALLOC_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: math.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/math.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_MATH_H
|
||||
#define IP_MATH_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if (defined(IPCOM_MODF) && IPCOM_MODF == 1) || defined(IPCOM_PORT_MODF)
|
||||
#define modf ipcom_modf
|
||||
#elif defined(IPCOM_MODF)
|
||||
#define modf IPCOM_MODF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SQRT) && IPCOM_SQRT == 1) || defined(IPCOM_PORT_SQRT)
|
||||
#define sqrt ipcom_sqrt
|
||||
#elif defined(IPCOM_SQRT)
|
||||
#define sqrt IPCOM_SQRT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FINITE) && IPCOM_FINITE == 1) || defined(IPCOM_PORT_FINITE)
|
||||
#define finite ipcom_finite
|
||||
#elif defined(IPCOM_FINITE)
|
||||
#define finite IPCOM_FINITE
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,201 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if.h,v $ $Revision: 1.4 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/if.h,v $
|
||||
* $Author: markus $ $Date: 2009-12-14 10:01:45 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NET_IF_H
|
||||
#define IP_NET_IF_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/ioctl.h"
|
||||
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef IPNET
|
||||
#include <ipnet_routesock.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IFNAMSIZ IP_IFNAMSIZ
|
||||
#define IFHWADDRLEN 6
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP_IFF_X
|
||||
*===========================================================================
|
||||
* Supported interface flags used with IP_SIOC<S|G>IFFLAGS ioctl().
|
||||
*/
|
||||
|
||||
#define IFF_UP IP_IFF_UP
|
||||
#define IFF_BROADCAST IP_IFF_BROADCAST
|
||||
#define IFF_DEBUG IP_IFF_DEBUG /* Unsupported */
|
||||
#define IFF_LOOPBACK IP_IFF_LOOPBACK
|
||||
#define IFF_POINTOPOINT IP_IFF_POINTOPOINT
|
||||
#define IFF_RUNNING IP_IFF_RUNNING
|
||||
#define IFF_PROMISC IP_IFF_PROMISC
|
||||
#define IFF_ALLMULTI IP_IFF_ALLMULTI /* Unsupported */
|
||||
#define IFF_OACTIVE IP_IFF_OACTIVE /* Unsupported */
|
||||
#define IFF_SIMPLEX IP_IFF_SIMPLEX
|
||||
#define IFF_DHCPRUNNING IP_IFF_DHCPRUNNING
|
||||
#define IFF_DHCPPRIMARY IP_IFF_DHCPPRIMARY
|
||||
#define IFF_NOARP IP_IFF_NOARP
|
||||
#define IFF_MULTICAST IP_IFF_MULTICAST
|
||||
|
||||
/* Unsupported, but definitions required */
|
||||
#define IFF_MASTER 0x0
|
||||
#define IFF_SLAVE 0x0
|
||||
#define IFF_PORTSEL 0x0
|
||||
#define IFF_AUTOMEDIA 0x0
|
||||
#define IFF_DYNAMIC 0x0
|
||||
#define IFF_LOWER_UP 0x0
|
||||
#define IFF_DORMANT 0x0
|
||||
#define IFF_NOTRAILERS 0x0
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IF_OPER_X
|
||||
*===========================================================================
|
||||
* RFC 2863 operational status
|
||||
*/
|
||||
|
||||
enum {
|
||||
IF_OPER_UNKNOWN,
|
||||
IF_OPER_NOTPRESENT,
|
||||
IF_OPER_DOWN,
|
||||
IF_OPER_LOWERLAYERDOWN,
|
||||
IF_OPER_TESTING,
|
||||
IF_OPER_DORMANT,
|
||||
IF_OPER_UP,
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ifconf
|
||||
*===========================================================================
|
||||
*/
|
||||
#define ifconf Ip_ifconf
|
||||
|
||||
#define ifc_buf ifc_ifcu.ifcu_buf
|
||||
#define ifc_req ifc_ifcu.ifcu_req
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ifreq
|
||||
*===========================================================================
|
||||
*/
|
||||
#define ifreq Ip_ifreq
|
||||
|
||||
#define ifr_addr ifr_ifru.ifru_addr
|
||||
#define ifr_dstaddr ifr_ifru.ifru_dstaddr
|
||||
#define ifr_broadaddr ifr_ifru.ifru_broadaddr
|
||||
#define ifr_flags ifr_ifru.ifru_flags
|
||||
#define ifr_metric ifr_ifru.ifru_metric
|
||||
#define ifr_mtu ifr_ifru.ifru_mtu
|
||||
#define ifr_data ifr_ifru.ifru_data
|
||||
#define ifr_rtab ifr_ifru.ifru_rtab
|
||||
#define ifr_hwaddr ifr_ifru.ifru_addr
|
||||
#define ifr_ifindex ifr_ifru.ifru_ifindex
|
||||
#define ifr_qlen ifr_ifru.ifru_ivalue
|
||||
#define ifr_newname ifr_ifru.ifru_newname /* New name */
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* in6_ifreq
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in6_ifreq Ip_in6_ifreq
|
||||
|
||||
#define IN6_IFF_TENTATIVE IP_IN6_IFF_TENTATIVE
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* aliasreq
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define ifaliasreq Ip_ifaliasreq
|
||||
#define ifra_broadaddr ifra_dstaddr
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPNET
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#ifdef IPNET
|
||||
#define rs_msghdr Ipnet_rs_msghdr
|
||||
#define ifa_msghdr Ipnet_ifa_msghdr
|
||||
|
||||
#define if_data Ipnet_if_data
|
||||
#define if_msghdr Ipnet_if_msghdr
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if_arp.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/if_arp.h,v $
|
||||
* $Author: lob $ $Date: 2005-08-08 17:19:55 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NET_IF_ARP_H
|
||||
#define IP_NET_IF_ARP_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* ARP protocol hardware identifiers: */
|
||||
#define ARPHRD_NETROM 0
|
||||
#define ARPHRD_ETHER 1
|
||||
#define ARPHRD_EETHER 2
|
||||
#define ARPHRD_AX25 3
|
||||
#define ARPHRD_PRONET 4
|
||||
#define ARPHRD_CHAOS 5
|
||||
#define ARPHRD_IEEE802 6
|
||||
#define ARPHRD_ARCNET 7
|
||||
#define ARPHRD_APPLETLK 8
|
||||
#define ARPHRD_DLCI 15
|
||||
#define ARPHRD_ATM 19
|
||||
#define ARPHRD_METRICOM 23
|
||||
|
||||
#define ARPOP_REQUEST 1
|
||||
#define ARPOP_REPLY 2
|
||||
#define ARPOP_REVREQUEST 3
|
||||
#define ARPOP_REVREPLY 4
|
||||
#define ARPOP_INVREQUEST 8
|
||||
#define ARPOP_INVREPLY 9
|
||||
|
||||
/* linux/if_ether.h defines: */
|
||||
#define ETH_P_802_2 0x0004 /* 802.2 frames */
|
||||
#define ETH_P_802_3 0x0001 /* Dummy type for 802.3 frames */
|
||||
#define ETH_P_IP 0x0800 /* IPv4 */
|
||||
#define ETH_P_ARP 0x0806 /* ARP */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
struct arphdr
|
||||
{
|
||||
Ip_u16 ar_hrd;
|
||||
Ip_u16 ar_pro;
|
||||
Ip_u8 ar_hln;
|
||||
Ip_u8 ar_pln;
|
||||
Ip_u16 ar_op;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if_dl.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/if_dl.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NET_IF_DL_H
|
||||
#define IP_NET_IF_DL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
#define LLADDR(sa) IP_SOCKADDR_DL_LLADDR(sa)
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define sockaddr_dl Ip_sockaddr_dl
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if_types.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/if_types.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NET_IF_TYPES_H
|
||||
#define IP_NET_IF_TYPES_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_netif.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* interface types
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IFT_OTHER IP_IFT_OTHER
|
||||
#define IFT_ETHER IP_IFT_ETHER
|
||||
#define IFT_PPP IP_IFT_PPP
|
||||
#define IFT_LOOP IP_IFT_LOOP
|
||||
#define IFT_PPPOE IP_IFT_PPPOE
|
||||
#define IFT_TUNNEL IP_IFT_TUNNEL
|
||||
#define IFT_L2VLAN IP_IFT_L2VLAN
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: route.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/route.h,v $
|
||||
* $Author: lob $ $Date: 2005-03-09 14:26:35 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NET_ROUTE_H
|
||||
#define IP_NET_ROUTE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_type.h"
|
||||
|
||||
#ifdef IPNET
|
||||
#include <ipnet_routesock.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* Route sockets
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define RTM_VERSION IPNET_RTM_VERSION
|
||||
|
||||
#define RTM_ADD IPNET_RTM_ADD
|
||||
#define RTM_DELETE IPNET_RTM_DELETE
|
||||
#define RTM_CHANGE IPNET_RTM_CHANGE
|
||||
#define RTM_GET IPNET_RTM_GET
|
||||
#define RTM_LOSING IPNET_RTM_LOOSING
|
||||
#define RTM_REDIRECT IPNET_RTM_REDIRECT
|
||||
#define RTM_MISS IPNET_RTM_MISS
|
||||
#define RTM_LOCK IPNET_RTM_LOCK
|
||||
#define RTM_OLDADD IPNET_RTM_OLDADD
|
||||
#define RTM_OLDDEL IPNET_RTM_OLDDEL
|
||||
#define RTM_RESOLVE IPNET_RTM_RESOLVE
|
||||
#define RTM_NEWADDR IPNET_RTM_NEWADDR
|
||||
#define RTM_DELADDR IPNET_RTM_DELADDR
|
||||
#define RTM_IFINFO IPNET_RTM_IFINFO
|
||||
#define RTM_IFANNOUNCE IPNET_RTM_IFANNOUNCE
|
||||
/* Intepeak extension for Virtual Routing */
|
||||
#define RTM_NEWRTAB IPNET_RTM_NEWRTAB
|
||||
#define RTM_DELRTAB IPNET_RTM_DELRTAB
|
||||
|
||||
/* rtm_addrs values */
|
||||
#define RTA_DST IPNET_RTA_DST
|
||||
#define RTA_GATEWAY IPNET_RTA_GATEWAY
|
||||
#define RTA_NETMASK IPNET_RTA_NETMASK
|
||||
#define RTA_GENMASK IPNET_RTA_GENMASK
|
||||
#define RTA_IFP IPNET_RTA_IFP
|
||||
#define RTA_IFA IPNET_RTA_IFA
|
||||
#define RTA_AUTHOR IPNET_RTA_AUTHOR
|
||||
#define RTA_BRD IPNET_RTA_BRD
|
||||
|
||||
#define RTAX_DST IPNET_RTAX_DST
|
||||
#define RTAX_GATEWAY IPNET_RTAX_GATEWAY
|
||||
#define RTAX_NETMASK IPNET_RTAX_NETMASK
|
||||
#define RTAX_GENMASK IPNET_RTAX_GENMASK
|
||||
#define RTAX_IFP IPNET_RTAX_IFP
|
||||
#define RTAX_IFA IPNET_RTAX_IFA
|
||||
#define RTAX_AUTHOR IPNET_RTAX_AUTHOR
|
||||
#define RTAX_BRD IPNET_RTAX_BRD
|
||||
#define RTAX_MAX IPNET_RTAX_MAX
|
||||
|
||||
/* Route flag values */
|
||||
#define RTF_UP IPNET_RTF_UP
|
||||
#define RTF_GATEWAY IPNET_RTF_GATEWAY
|
||||
#define RTF_HOST IPNET_RTF_HOST
|
||||
#define RTF_REJECT IPNET_RTF_REJECT
|
||||
#define RTF_DYNAMIC IPNET_RTF_DYNAMIC
|
||||
#define RTF_MODIFIED IPNET_RTF_MODIFIED
|
||||
#define RTF_DONE IPNET_RTF_DONE
|
||||
#define RTF_MASK IPNET_RTF_MASK
|
||||
#define RTF_CLONING IPNET_RTF_CLONING
|
||||
#define RTF_XRESOLVE IPNET_RTF_XRESOLVE
|
||||
#define RTF_LLINFO IPNET_RTF_LLINFO
|
||||
#define RTF_STATIC IPNET_RTF_STATIC
|
||||
#define RTF_BLACKHOLE IPNET_RTF_BLACKHOLE
|
||||
#define RTF_PROTO1 IPNET_RTF_PROTO1
|
||||
#define RTF_PROTO2 IPNET_RTF_PROTO2
|
||||
|
||||
/* Specifiers for metric values in rmx_locks and rtm_inits are: */
|
||||
#define RTV_EXPIRE IPNET_RTV_EXPIRE
|
||||
#define RTV_HOPCOUNT IPNET_RTV_HOPCOUNT
|
||||
#define RTV_RTT IPNET_RTV_RTT
|
||||
#define RTV_RTTVAR IPNET_RTV_RTTVAR
|
||||
#define RTV_MTU IPNET_RTV_MTU
|
||||
#define RTV_RPIPE IPNET_RTV_RPIPE /* unsupported */
|
||||
#define RTV_SPIPE IPNET_RTV_SPIPE /* unsupported */
|
||||
#define RTV_SSTHRESH IPNET_RTV_SSTHRESH /* unsupported */
|
||||
|
||||
/* Interface announce what values */
|
||||
#define IFAN_ARRIVAL IPNET_IFAN_ARRIVAL
|
||||
#define IFAN_DEPARTURE IPNET_IFAN_DEPARTURE
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define rt_msghdr Ipnet_rt_msghdr
|
||||
#define if_announcemsghdr Ipnet_if_announcemsghdr
|
||||
|
||||
#define rt_metrics Ipnet_rt_metrics
|
||||
|
||||
#define ortentry Ip_ortentry
|
||||
|
||||
#define vifi_t Ip_vifi_t
|
||||
#define vifctl Ip_vifctl
|
||||
#define sioc_vif_req Ip_sioc_vif_req
|
||||
#define sioc_sg_req Ip_sioc_sg_req
|
||||
#define mfcctl Ip_mfcctl
|
||||
#define igmpmsg Ip_igmpmsg
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: netdb.h,v $ $Revision: 1.4.42.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netdb.h,v $
|
||||
* $Author: svc-cmnet $ $Date: 2013-03-13 07:45:47 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETDB_H
|
||||
#define IP_NETDB_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_sock2.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define servent Ip_servent
|
||||
#define hostent Ip_hostent
|
||||
#define protoent Ip_protoent
|
||||
|
||||
#define addrinfo Ip_addrinfo
|
||||
|
||||
|
||||
#define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */
|
||||
#define AI_CANONNAME 0x0002 /* Request for canonical name. */
|
||||
#define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */
|
||||
#define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */
|
||||
#define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */
|
||||
#define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose returned address type.. */
|
||||
|
||||
#define NI_MAXHOST 1025
|
||||
#define NI_MAXSERV 32
|
||||
#define NI_NUMERICHOST 1 /* Don't try to look up hostname. */
|
||||
#define NI_NUMERICSERV 2 /* Don't convert port number to name. */
|
||||
|
||||
/* Error values for `getaddrinfo' function. */
|
||||
#define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */
|
||||
#define EAI_NONAME -2 /* NAME or SERVICE is unknown. */
|
||||
#define EAI_AGAIN -3 /* Temporary failure in name resolution. */
|
||||
#define EAI_FAIL -4 /* Non-recoverable failure in name res. */
|
||||
#define EAI_NODATA -5 /* No address associated with NAME. */
|
||||
#define EAI_FAMILY -6 /* `ai_family' not supported. */
|
||||
#define EAI_SOCKTYPE -7 /* `ai_socktype' not supported. */
|
||||
#define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */
|
||||
#define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */
|
||||
#define EAI_MEMORY -10 /* Memory allocation failure. */
|
||||
#define EAI_SYSTEM -11 /* System error returned in `errno'. */
|
||||
#define EAI_OVERFLOW -12 /* Argument buffer overflow. */
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define getprotobyname(a1) ipcom_getprotobyname(a1)
|
||||
#define getprotobynumber(a1) ipcom_getprotobynumber(a1)
|
||||
|
||||
#define getservbyname ipcom_getservbyname
|
||||
|
||||
#define gethostbyname(name) ipcom_gethostbyname(name)
|
||||
|
||||
#define gethostbyaddr(a1,a2,a3) ipcom_gethostbyaddr(a1,a2,a3)
|
||||
|
||||
#define getaddrinfo(a1,a2,a3,a4) ipcom_getaddrinfo(a1,a2,a3,a4)
|
||||
#define freeaddrinfo(a1) ipcom_freeaddrinfo(a1)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: icmp6.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/icmp6.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_ICMP6_H
|
||||
#define IP_NETINET_ICMP6_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "string.h"
|
||||
#include "sys/types.h"
|
||||
#include "netinet/in.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define ICMP6_DST_UNREACH 1
|
||||
#define ICMP6_PACKET_TOO_BIG 2
|
||||
#define ICMP6_TIME_EXCEEDED 3
|
||||
#define ICMP6_PARAM_PROB 4
|
||||
|
||||
#define ICMP6_ECHO_REQUEST 128
|
||||
#define ICMP6_ECHO_REPLY 129
|
||||
#define ICMP6_MEMBERSHIP_QUERY 130
|
||||
#define ICMP6_MEMBERSHIP_REPORT 131
|
||||
#define ICMP6_MEMBERSHIP_REDUCTION 132
|
||||
#define ND_ROUTER_SOLICIT 133
|
||||
#define ND_ROUTER_ADVERT 134
|
||||
#define ND_NEIGHBOR_SOLICIT 135
|
||||
#define ND_NEIGHBOR_ADVERT 136
|
||||
#define ND_REDIRECT 137
|
||||
|
||||
#define ND_OPT_SOURCE_LINKADDR 1
|
||||
#define ND_OPT_TARGET_LINKADDR 2
|
||||
#define ND_OPT_PREFIX_INFORMATION 3
|
||||
#define ND_OPT_REDIRECTED_HEADER 4
|
||||
#define ND_OPT_MTU 5
|
||||
|
||||
#define ND_RA_FLAG_MANAGED 0x80
|
||||
#define ND_RA_FLAG_OTHER 0x40
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
struct icmp6_hdr
|
||||
{
|
||||
Ip_u8 icmp6_type; /* type field */
|
||||
Ip_u8 icmp6_code; /* code field */
|
||||
Ip_u16 icmp6_cksum; /* checksum field */
|
||||
union
|
||||
{
|
||||
Ip_u32 icmp6_un_data32[1]; /* type-specific field */
|
||||
Ip_u16 icmp6_un_data16[2]; /* type-specific field */
|
||||
Ip_u8 icmp6_un_data8[4]; /* type-specific field */
|
||||
} icmp6_dataun;
|
||||
};
|
||||
|
||||
#define icmp6_data32 icmp6_dataun.icmp6_un_data32
|
||||
#define icmp6_data16 icmp6_dataun.icmp6_un_data16
|
||||
#define icmp6_data8 icmp6_dataun.icmp6_un_data8
|
||||
#define icmp6_pptr icmp6_data32[0]
|
||||
#define icmp6_mtu icmp6_data32[0]
|
||||
#define icmp6_id icmp6_data16[0]
|
||||
#define icmp6_seq icmp6_data16[1]
|
||||
#define icmp6_maxdelay icmp6_data16[0]
|
||||
|
||||
struct nd_redirect
|
||||
{
|
||||
struct icmp6_hdr nd_rd_hdr;
|
||||
struct in6_addr nd_rd_target;
|
||||
struct in6_addr nd_rd_dst;
|
||||
/* options */
|
||||
};
|
||||
|
||||
struct nd_router_advert
|
||||
{
|
||||
struct icmp6_hdr nd_ra_hdr;
|
||||
Ip_u32 nd_ra_reachable;
|
||||
Ip_u32 nd_ra_retransmit;
|
||||
/* options */
|
||||
};
|
||||
|
||||
#define nd_ra_type nd_ra_hdr.icmp6_type
|
||||
#define nd_ra_code nd_ra_hdr.icmp6_code
|
||||
#define nd_ra_cksum nd_ra_hdr.icmp6_cksum
|
||||
#define nd_ra_curhoplimit nd_ra_hdr.icmp6_data8[0]
|
||||
#define nd_ra_flags_reserved nd_ra_hdr.icmp6_data8[1]
|
||||
#define nd_ra_flags_reserved nd_ra_hdr.icmp6_data8[1]
|
||||
#define ND_RA_FLAG_MANAGED 0x80
|
||||
#define ND_RA_FLAG_OTHER 0x40
|
||||
#define ND_RA_FLAG_HOME_AGENT 0x20
|
||||
#define nd_ra_router_lifetime nd_ra_hdr.icmp6_data16[1]
|
||||
|
||||
|
||||
struct nd_neighbor_advert
|
||||
{
|
||||
struct icmp6_hdr nd_na_hdr;
|
||||
struct in6_addr nd_na_target;
|
||||
/* options */
|
||||
};
|
||||
|
||||
struct nd_opt_hdr
|
||||
{
|
||||
Ip_u8 nd_opt_type;
|
||||
Ip_u8 nd_opt_len;
|
||||
Ip_u8 nd_opt_data[1];
|
||||
};
|
||||
|
||||
/* Prefix Extension Header Options */
|
||||
struct nd_opt_prefix_info
|
||||
{
|
||||
Ip_u8 nd_opt_pi_type;
|
||||
Ip_u8 nd_opt_pi_len;
|
||||
Ip_u8 nd_opt_pi_prefix_len;
|
||||
Ip_u8 nd_opt_pi_flags_reserved;
|
||||
Ip_u32 nd_opt_pi_valid_time;
|
||||
Ip_u32 nd_opt_pi_preferred_time;
|
||||
Ip_u32 nd_opt_pi_reserved2;
|
||||
struct Ip_in6_addr nd_opt_pi_prefix;
|
||||
};
|
||||
|
||||
|
||||
#define ND_OPT_PI_FLAG_ONLINK 0x80
|
||||
#define ND_OPT_PI_FLAG_AUTO 0x40
|
||||
#define ND_OPT_PI_FLAG_RADDR 0x20
|
||||
|
||||
struct icmp6_filter
|
||||
{
|
||||
Ip_u32 icmp6_filt[8]; /* 8*32 = 256 bits */
|
||||
};
|
||||
|
||||
|
||||
#define ICMP6_FILTER_SETBLOCKALL IP_ICMP6_FILTER_SETBLOCKALL
|
||||
#define ICMP6_FILTER_SETPASS IP_ICMP6_FILTER_SETPASS
|
||||
#define ICMP6_FILTER_SETPASS IP_ICMP6_FILTER_SETPASS
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if_ether.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/if_ether.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IF_ETHER_H
|
||||
#define IP_NETINET_IF_ETHER_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_netif.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* x
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: in.h,v $ $Revision: 1.6.42.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/in.h,v $
|
||||
* $Author: svc-cmnet $ $Date: 2013-03-13 07:45:47 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IN_H
|
||||
#define IP_NETINET_IN_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
#ifdef IPNET
|
||||
#include "ipnet_config.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "sys/socket.h"
|
||||
#include "netinet6/in6.h"
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
#include "ipcom_sock6.h"
|
||||
#include "ipcom_sysctl.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP protocol values
|
||||
*===========================================================================
|
||||
*/
|
||||
#define IPPROTO_IP IP_IPPROTO_IP
|
||||
#define IPPROTO_ICMP IP_IPPROTO_ICMP
|
||||
#define IPPROTO_IGMP IP_IPPROTO_IGMP
|
||||
#define IPPROTO_IPIP IP_IPPROTO_IPIP
|
||||
#define IPPROTO_IPV4 IP_IPPROTO_IPV4
|
||||
#define IPPROTO_TCP IP_IPPROTO_TCP
|
||||
#define IPPROTO_UDP IP_IPPROTO_UDP
|
||||
#define IPPROTO_UDPLITE IP_IPPROTO_UDPLITE
|
||||
#define IPPROTO_SCTP IP_IPPROTO_SCTP
|
||||
#define IPPROTO_IPV6 IP_IPPROTO_IPV6
|
||||
#define IPPROTO_RSVP IP_IPPROTO_RSVP
|
||||
#define IPPROTO_GRE IP_IPPROTO_GRE
|
||||
#define IPPROTO_ESP IP_IPPROTO_ESP
|
||||
#define IPPROTO_AH IP_IPPROTO_AH
|
||||
#define IPPROTO_ICMPV6 IP_IPPROTO_ICMPV6
|
||||
#define IPPROTO_OSPFIGP IP_IPPROTO_OSPFIGP
|
||||
#define IPPROTO_PIM IP_IPPROTO_PIM
|
||||
#define IPPROTO_RAW IP_IPPROTO_RAW
|
||||
#define IPPROTO_MAX IP_IPPROTO_MAX
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP socket options
|
||||
*===========================================================================
|
||||
* IP_IPPROTO_IP level socket options.
|
||||
*/
|
||||
|
||||
#define IP_HDRINCL IP_IP_HDRINCL
|
||||
#define IP_TOS IP_IP_TOS
|
||||
#define IP_TTL IP_IP_TTL
|
||||
#define IP_PKTINFO IP_IP_PKTINFO
|
||||
#define IP_MULTICAST_IF IP_IP_MULTICAST_IF
|
||||
#define IP_MULTICAST_TTL IP_IP_MULTICAST_TTL
|
||||
#define IP_MULTICAST_LOOP IP_IP_MULTICAST_LOOP
|
||||
#define IP_ADD_MEMBERSHIP IP_IP_ADD_MEMBERSHIP
|
||||
#define IP_JOIN_GROUP IP_IP_JOIN_GROUP
|
||||
#define IP_DROP_MEMBERSHIP IP_IP_DROP_MEMBERSHIP
|
||||
#define IP_LEAVE_GROUP IP_IP_LEAVE_GROUP
|
||||
#define IP_RECVIF IP_IP_RECVIF
|
||||
#define IP_ROUTER_ALERT IP_IP_ROUTER_ALERT
|
||||
#define IP_DONTFRAG IP_IP_DONTFRAG
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* Standard IP address macros.
|
||||
*===========================================================================
|
||||
*/
|
||||
#define INADDR_ANY IP_INADDR_ANY
|
||||
#define INADDR_DEFAULT IP_INADDR_DEFAULT
|
||||
#define INADDR_LOOPBACK IP_INADDR_LOOPBACK
|
||||
#define INADDR_BROADCAST IP_INADDR_BROADCAST
|
||||
#define INADDR_NONE IP_INADDR_NONE
|
||||
|
||||
#define INADDR_UNSPEC_GROUP IP_INADDR_UNSPEC_GROUP
|
||||
#define INADDR_ALLHOSTS_GROUP IP_INADDR_ALLHOSTS_GROUP
|
||||
#define INADDR_ALLRTRS_GROUP IP_INADDR_ALLRTRS_GROUP
|
||||
#define INADDR_MAX_LOCAL_GROUP IP_INADDR_MAX_LOCAL_GROUP
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IN_CLASS
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IN_CLASSA(xxip) IP_IN_CLASSA(ip_ntohl(xxip))
|
||||
#define IN_CLASSB(xxip) IP_IN_CLASSB(ip_ntohl(xxip))
|
||||
#define IN_CLASSC(xxip) IP_IN_CLASSC(ip_ntohl(xxip))
|
||||
#define IN_CLASSD(xxip) IP_IN_CLASSD(ip_ntohl(xxip))
|
||||
#define IN_EXPERIMENTAL(xxip) IP_IN_EXPERIMENTAL(ip_ntohl(xxip))
|
||||
#define IN_MULTICAST(xxip) IP_IN_CLASSD(ip_ntohl(xxip))
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPPORT_
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IPPORT_RESERVED 1024
|
||||
#define IPPORT_ANONMIN 49152
|
||||
#define IPPORT_ANONMAX 65535
|
||||
#define IPPORT_RESERVEDMIN 600
|
||||
#define IPPORT_RESERVEDMAX (IPPORT_RESERVED-1)
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* MISC
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IPCTL_FORWARDING IP_IPCTL_FORWARDING
|
||||
#define INET_ADDRSTRLEN IP_INET_ADDRSTRLEN
|
||||
#define INET6_ADDRSTRLEN IP_INET6_ADDRSTRLEN
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* in_addr
|
||||
*===========================================================================
|
||||
*/
|
||||
#ifdef s_addr
|
||||
#undef s_addr
|
||||
#endif
|
||||
|
||||
#define in_addr Ip_in_addr
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP types
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in_addr_t Ip_in_addr_t
|
||||
#define in_port_t Ip_in_port_t
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sockaddr_in
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define sockaddr_in Ip_sockaddr_in
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ioctl
|
||||
*===========================================================================
|
||||
*/
|
||||
#define ip_mreq Ip_ip_mreq
|
||||
|
||||
|
||||
#define in6addr_any ip_in6addr_any
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: in_systm.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/in_systm.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IN_SYSTM_H
|
||||
#define IP_NETINET_IN_SYSTM_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
typedef u_long n_time; /* ms since 00:00 GMT, byte rev */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ip.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/ip.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-24 11:42:34 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IP_H
|
||||
#define IP_NETINET_IP_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "netinet/in.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP options
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IPOPT_COPY 0x80
|
||||
#define IPOPT_CLASS_MASK 0x60
|
||||
#define IPOPT_NUMBER_MASK 0x1f
|
||||
|
||||
#define IPOPT_COPIED(o) ((o) & IPOPT_COPY)
|
||||
#define IPOPT_CLASS(o) ((o) & IPOPT_CLASS_MASK)
|
||||
#define IPOPT_NUMBER(o) ((o) & IPOPT_NUMBER_MASK)
|
||||
|
||||
#define IPOPT_CONTROL 0x00
|
||||
#define IPOPT_RESERVED1 0x20
|
||||
#define IPOPT_DEBMEAS 0x40
|
||||
#define IPOPT_MEASUREMENT IPOPT_DEBMEAS
|
||||
#define IPOPT_RESERVED2 0x60
|
||||
|
||||
#define IPOPT_EOL 0 /* end of option list */
|
||||
#define IPOPT_END IPOPT_EOL
|
||||
#define IPOPT_NOP 1 /* no operation */
|
||||
#define IPOPT_NOOP IPOPT_NOP
|
||||
|
||||
#define IPOPT_RR 7 /* record packet route */
|
||||
#define IPOPT_TS 68 /* timestamp */
|
||||
#define IPOPT_TIMESTAMP IPOPT_TS
|
||||
#define IPOPT_SECURITY 130 /* provide s,c,h,tcc */
|
||||
#define IPOPT_SEC IPOPT_SECURITY
|
||||
#define IPOPT_LSRR 131 /* loose source route */
|
||||
#define IPOPT_SATID 136 /* satnet id */
|
||||
#define IPOPT_SID IPOPT_SATID
|
||||
#define IPOPT_SSRR 137 /* strict source route */
|
||||
#define IPOPT_RA 148 /* router alert */
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* misc
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define MAXTTL 255
|
||||
#define IPDEFTTL 64
|
||||
#define IPFRAGTTL 60
|
||||
#define IPTTLDEC 1
|
||||
|
||||
#define IP_MSS 576
|
||||
|
||||
|
||||
#define IPVERSION 4
|
||||
#define IP_MAXPACKET 65535
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
* Structure of an internet header, naked of options.
|
||||
*/
|
||||
struct ip
|
||||
{
|
||||
#ifdef IP_LITTLE_ENDIAN
|
||||
unsigned int ip_hl:4; /* header length */
|
||||
unsigned int ip_v:4; /* version */
|
||||
#elif defined(IP_BIG_ENDIAN)
|
||||
unsigned int ip_v:4; /* version */
|
||||
unsigned int ip_hl:4; /* header length */
|
||||
#else
|
||||
#error ENDIAN_NOT_DEFINED
|
||||
#endif
|
||||
u_int8_t ip_tos; /* type of service */
|
||||
unsigned short ip_len; /* total length */
|
||||
unsigned short ip_id; /* identification */
|
||||
unsigned short ip_off; /* fragment offset field */
|
||||
u_int8_t ip_ttl; /* time to live */
|
||||
u_int8_t ip_p; /* protocol */
|
||||
unsigned short ip_sum; /* checksum */
|
||||
struct in_addr ip_src, ip_dst; /* source and dest address */
|
||||
};
|
||||
|
||||
#define IP_RF 0x8000 /* reserved fragment flag */
|
||||
#define IP_DF 0x4000 /* dont fragment flag */
|
||||
#define IP_MF 0x2000 /* more fragments flag */
|
||||
#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: tcp.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/tcp.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* Copyright Interpeak AB 2000-2003 <www.interpeak.se>. All rights reserved.
|
||||
* Design and implementation by Firstname Lastname <email@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_TCP_H
|
||||
#define IP_NETINET_TCP_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
* User-settable options (used with setsockopt).
|
||||
*/
|
||||
#define TCP_NODELAY IP_TCP_NODELAY /* don't delay send to coalesce packets */
|
||||
#define TCP_MAXSEG 0x02 /* NOT supported: set maximum segment size */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
typedef u_int32_t tcp_seq;
|
||||
|
||||
/* TCP Protocol Header [RFC793] */
|
||||
struct tcphdr
|
||||
{
|
||||
Ip_u16 th_sport; /* source port */
|
||||
Ip_u16 th_dport; /* destination port */
|
||||
tcp_seq th_seq; /* sequence number */
|
||||
tcp_seq th_ack; /* acknowledgement number */
|
||||
#ifdef IP_LITTLE_ENDIAN
|
||||
Ip_u32 th_x2:4, /* data offset */
|
||||
th_off:4; /* (unused) */
|
||||
#elif defined(IP_BIG_ENDIAN)
|
||||
Ip_u32 th_off:4, /* data offset */
|
||||
th_x2:4; /* (unused) */
|
||||
#else
|
||||
#error ENDIAN_NOT_DEFINED
|
||||
#endif
|
||||
Ip_u8 th_flags;
|
||||
#define TH_FIN 0x01
|
||||
#define TH_SYN 0x02
|
||||
#define TH_RST 0x04
|
||||
#define TH_PUSH 0x08
|
||||
#define TH_ACK 0x10
|
||||
#define TH_URG 0x20
|
||||
Ip_u16 th_win; /* window */
|
||||
Ip_u16 th_sum; /* checksum */
|
||||
Ip_u16 th_urp; /* urgent pointer */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: udp.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet/udp.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_UDP_H
|
||||
#define IP_NETINET_UDP_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* UDP Protocol Header [RFC768] */
|
||||
struct udphdr
|
||||
{
|
||||
Ip_u16 uh_sport; /* source port */
|
||||
Ip_u16 uh_dport; /* destination port */
|
||||
Ip_u16 uh_ulen; /* udp length */
|
||||
Ip_u16 uh_sum; /* udp checksum */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: in6.h,v $ $Revision: 1.7 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet6/in6.h,v $
|
||||
* $Author: lob $ $Date: 2005-12-08 16:33:51 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IN6_H
|
||||
#define IP_NETINET_IN6_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
#ifdef IPNET
|
||||
#include "ipnet_config.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_sock6.h>
|
||||
#include <ipcom_sysctl.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define INET6_ADDRSTRLEN IP_INET6_ADDRSTRLEN
|
||||
|
||||
#define IPV6_V6ONLY IP_IPV6_V6ONLY
|
||||
|
||||
#define IPV6CTL_FORWARDING IP_IPV6CTL_FORWARDING
|
||||
#define IPV6CTL_SEND_ADV IP_IPV6CTL_SEND_ADV
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IN6_IS_ADDR_
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IN6_ARE_ADDR_EQUAL(addr1, addr2) IP_IN6_ARE_ADDR_EQUAL(addr1, addr2)
|
||||
#define IN6_IS_ADDR_UNSPECIFIED(addr) IP_IN6_IS_ADDR_UNSPECIFIED(addr)
|
||||
#define IN6_IS_ADDR_LOOPBACK(addr) IP_IN6_IS_ADDR_LOOPBACK(addr)
|
||||
#define IN6_IS_ADDR_V4COMPAT(addr) IP_IN6_IS_ADDR_V4COMPAT(addr)
|
||||
#define IN6_IS_ADDR_V4MAPPED(addr) IP_IN6_IS_ADDR_V4MAPPED(addr)
|
||||
#define IN6_IS_ADDR_AGGR_GLOB_UNICAST(addr) IP_IN6_IS_ADDR_AGGR_GLOB_UNICAST(addr)
|
||||
#define IN6_IS_ADDR_SITELOCAL(addr) IP_IN6_IS_ADDR_SITE_LOCAL(addr)
|
||||
#define IN6_IS_ADDR_LINKLOCAL(addr) IP_IN6_IS_ADDR_LINK_LOCAL(addr)
|
||||
#define IN6_IS_ADDR_MULTICAST(addr) IP_IN6_IS_ADDR_MULTICAST(addr)
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPV6 socket options
|
||||
*===========================================================================
|
||||
* IP_IPPROTO_IPV6 level socket options.
|
||||
*/
|
||||
|
||||
#define IPV6_UNICAST_HOPS IP_IPV6_UNICAST_HOPS
|
||||
#define IPV6_MULTICAST_IF IP_IPV6_MULTICAST_IF
|
||||
#define IPV6_MULTICAST_HOPS IP_IPV6_MULTICAST_HOPS
|
||||
#define IPV6_MULTICAST_LOOP IP_IPV6_MULTICAST_LOOP
|
||||
#define IPV6_JOIN_GROUP IP_IPV6_JOIN_GROUP
|
||||
#define IPV6_ADD_MEMBERSHIP IP_IPV6_ADD_MEMBERSHIP
|
||||
#define IPV6_LEAVE_GROUP IP_IPV6_LEAVE_GROUP
|
||||
#define IPV6_DROP_MEMBERSHIP IP_IPV6_DROP_MEMBERSHIP
|
||||
#define IPV6_PKTINFO IP_IPV6_PKTINFO
|
||||
#define IPV6_TCLASS IP_IPV6_TCLASS
|
||||
#define IPV6_NEXTHOP IP_IPV6_NEXTHOP
|
||||
#define IPV6_RTHDR IP_IPV6_RTHDR
|
||||
#define IPV6_HOPOPTS IP_IPV6_HOPOPTS
|
||||
#define IPV6_DSTOPTS IP_IPV6_DSTOPTS
|
||||
#define IPV6_RTHDRDSTOPTS IP_IPV6_RTHDRDSTOPTS
|
||||
#define IPV6_RECVPKTINFO IP_IPV6_RECVPKTINFO
|
||||
#define IPV6_RECVHOPLIMIT IP_IPV6_RECVHOPLIMIT
|
||||
#define IPV6_RECVTCLASS IP_IPV6_RECVTCLASS
|
||||
#define IPV6_RECVRTHDR IP_IPV6_RECVRTHDR
|
||||
#define IPV6_RECVHOPOPTS IP_IPV6_RECVHOPOPTS
|
||||
#define IPV6_RECVDSTOPTS IP_IPV6_RECVDSTOPTS
|
||||
#define IPV6_CHECKSUM IP_IPV6_CHECKSUM
|
||||
#define IPV6_RECVIF IP_IPV6_RECVIF
|
||||
|
||||
/***** IP_IPPROTO_ICMPV6 level socket options: *****/
|
||||
#define ICMP6_FILTER IP_ICMP6_FILTER
|
||||
|
||||
/* NOTE: This option can NOT be used with getsockopt/setsockopt!
|
||||
* Only sent/rcvd with ancillary data!
|
||||
*/
|
||||
#define IPV6_HOPLIMIT IP_IPV6_HOPLIMIT
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* in6_addr
|
||||
*===========================================================================
|
||||
*/
|
||||
#define in6_addr Ip_in6_addr
|
||||
#define in6_addr_t Ip_in6_addr_t
|
||||
#define s6_addr in6.addr8
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP types
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in6_addr_t Ip_in6_addr_t
|
||||
#define s6_addr in6.addr8
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sockaddr_in6
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define sockaddr_in6 Ip_sockaddr_in6
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* misc
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in6_pktinfo Ip_in6_pktinfo
|
||||
#define ipv6_mreq Ip_ipv6_mreq
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: packet.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netpacket/packet.h,v $
|
||||
* $Author: lob $ $Date: 2005-08-08 17:20:04 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETPACKET_PACKET_H
|
||||
#define IP_NETPACKET_PACKET_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "net/if_arp.h"
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* Packet types 'sll_pkttype'. Packet is addressed to: */
|
||||
#define PACKET_HOST IP_PACKET_HOST
|
||||
#define PACKET_BROADCAST IP_PACKET_BROADCAST
|
||||
#define PACKET_MULTICAST IP_PACKET_MULTICAST
|
||||
#define PACKET_OTHERHOST IP_PACKET_OTHERHOST
|
||||
#define PACKET_OUTGOING IP_PACKET_OUTGOING
|
||||
|
||||
#define PACKET_MR_MULTICAST IP_PACKET_MR_MULTICAST
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sockaddr_ll
|
||||
*===========================================================================
|
||||
*/
|
||||
#define sockaddr_ll Ip_sockaddr_ll
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* packet_mreq
|
||||
*===========================================================================
|
||||
*/
|
||||
#define packet_mreq Ip_packet_mreq
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: nlist.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/nlist.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NLIST_H
|
||||
#define IP_NLIST_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define nlist ipnetsnmp_nlist
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
struct nlist {
|
||||
const char *n_name;
|
||||
unsigned char n_type;
|
||||
char n_other;
|
||||
short n_desc;
|
||||
unsigned long n_value;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC int nlist(const char *filename, struct nlist *nl);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: pthread.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/pthread.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_PTHREAD_H
|
||||
#define IP_PTHREAD_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: pwd.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/pwd.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_PWD_H
|
||||
#define IP_PWD_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_cstyle.h"
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "stddef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* The passwd structure. */
|
||||
struct passwd
|
||||
{
|
||||
char *pw_name; /* Username. */
|
||||
char *pw_passwd; /* Password. */
|
||||
uid_t pw_uid; /* User ID. */
|
||||
gid_t pw_gid; /* Group ID. */
|
||||
char *pw_gecos; /* Real name. */
|
||||
char *pw_dir; /* Home directory. */
|
||||
char *pw_shell; /* Shell program. */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define endpwent ipnetsnmp_endpwent
|
||||
IP_PUBLIC void ipnetsnmp_endpwent(void);
|
||||
#define getpwnam(n) ipnetsnmp_getpwnam(n)
|
||||
IP_PUBLIC struct passwd *ipnetsnmp_getpwnam(const char *name);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: sched.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sched.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SCHED_H
|
||||
#define IP_SCHED_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: semaphore.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/semaphore.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SEMAPHORE_H
|
||||
#define IP_SEMAPHORE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: signal.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/signal.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SIGNAL_H
|
||||
#define IP_SIGNAL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/signal.h"
|
||||
|
||||
#include "ipcom_type.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef NETSNMP_INTERPEAK
|
||||
#if defined(GATED_INTERPEAK)
|
||||
#define signal(s,f) ipk_signal(s,f)
|
||||
#elif (defined(IPCOM_SIGNAL) && IPCOM_SIGNAL == 1) || defined(IPCOM_PORT_SIGNAL)
|
||||
#define signal(s,f) ipcom_signal(s,f)
|
||||
#elif defined(IPCOM_SIGNAL)
|
||||
#define signal(s,f) IPCOM_SIGNAL(s,f)
|
||||
#endif
|
||||
#endif /* #ifndef NETSNMP_INTERPEAK */
|
||||
|
||||
IP_PUBLIC int ipk_kill(Ip_pid_t pid, int sig);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: stddef.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/stddef.h,v $
|
||||
* $Author: markus $ $Date: 2004-11-22 10:36:30 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_STDDEF_H
|
||||
#define IP_STDDEF_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef offsetof
|
||||
#ifdef IP_PORT_ITRON
|
||||
#define offsetof(type, member) (Ip_size_t)((char *)(&((type *)0)->member)-(char *)((type *)0))
|
||||
#else
|
||||
#define offsetof(type, member) ((Ip_size_t)(&((type *)0)->member))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,351 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: stdio.h,v $ $Revision: 1.9 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/stdio.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_STDIO_H
|
||||
#define IP_STDIO_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
#include "ipcom_clib2.h"
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_file.h"
|
||||
#ifdef IPCOM_STDOUT_TO_SYSLOG
|
||||
#include "ipcom_stdio_syslog.h"
|
||||
#endif
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "stdarg.h"
|
||||
#include "sys/select.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define EOF IP_EOF
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL IP_NULL
|
||||
#endif
|
||||
|
||||
#define FILE IP_FILE
|
||||
|
||||
#define BUFSIZ IP_BUFSIZ
|
||||
|
||||
#define stderr ipcom_stderr()
|
||||
#define stdin ipcom_stdin()
|
||||
#define stdout ipcom_stdout()
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* seek 'whence'
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SEEK_SET IP_SEEK_SET
|
||||
#define SEEK_CUR IP_SEEK_CUR
|
||||
#define SEEK_END IP_SEEK_END
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* setvbuf 'mode'
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define _IOFBF IP__IOFBF
|
||||
#define _IOLBF IP__IOLBF
|
||||
#define _IONBF IP__IONBF
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define dirent Ip_dirent
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define fopen(a1,a2) ipcom_fopen(a1,a2)
|
||||
#define fclose(a1) ipcom_fclose(a1)
|
||||
#define fwrite(a1,a2,a3,a4) ipcom_fwrite(a1,a2,a3,a4)
|
||||
#define fread(a1,a2,a3,a4) ipcom_fread(a1,a2,a3,a4)
|
||||
#define fflush(fp) ipcom_fflush(fp)
|
||||
|
||||
#define ferror(fp) ipcom_ferror(fp)
|
||||
#define feof(fp) ipcom_feof(fp)
|
||||
|
||||
#define rename(o,n) ipcom_rename(o,n)
|
||||
|
||||
#define fdopen(fd,m) ipcom_fdopen(fd,m)
|
||||
#define fileno(fp) ipcom_fileno(fp)
|
||||
|
||||
#define fseek(fp,o,w) ipcom_fseek(fp,o,w)
|
||||
#define rewind(fp) ipcom_fseek(fp,0,IP_SEEK_SET)
|
||||
#define ftell(fp) ipcom_ftell(fp)
|
||||
#define lseek(a1,a2,a3) ipcom_lseek(a1,a2,a3)
|
||||
|
||||
#define setvbuf(a1,a2,a3,a4) ipcom_setvbuf(a1,a2,a3,a4)
|
||||
|
||||
#if (defined(IPCOM_PRINTF) && IPCOM_PRINTF == 1) || defined(IPCOM_PORT_PRINTF)
|
||||
#define printf ipcom_printf
|
||||
#elif defined(IPCOM_PRINTF)
|
||||
#define printf IPCOM_PRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FPRINTF) && IPCOM_FPRINTF == 1) || defined(IPCOM_PORT_FPRINTF)
|
||||
#define fprintf ipcom_fprintf
|
||||
#elif defined(IPCOM_FPRINTF)
|
||||
#define fprintf IPCOM_FPRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SPRINTF) && IPCOM_SPRINTF == 1) || defined(IPCOM_PORT_SPRINTF)
|
||||
#define sprintf ipcom_sprintf
|
||||
#elif defined(IPCOM_SPRINTF)
|
||||
#define sprintf IPCOM_SPRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SNPRINTF) && IPCOM_SNPRINTF == 1) || defined(IPCOM_PORT_SNPRINTF)
|
||||
#define snprintf ipcom_snprintf
|
||||
#elif defined(IPCOM_SNPRINTF)
|
||||
#define snprintf IPCOM_SNPRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_VSPRINTF) && IPCOM_VSPRINTF == 1) || defined(IPCOM_PORT_VSPRINTF)
|
||||
#define vsprintf ipcom_vsprintf
|
||||
#elif defined(IPCOM_VSPRINTF)
|
||||
#define vsprintf IPCOM_VSPRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_VSNPRINTF) && IPCOM_VSNPRINTF == 1) || defined(IPCOM_PORT_VSNPRINTF)
|
||||
#define vsnprintf ipcom_vsnprintf
|
||||
#elif defined(IPCOM_VSNPRINTF)
|
||||
#define vsnprintf IPCOM_VSNPRINTF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SSCANF) && IPCOM_SSCANF == 1) || defined(IPCOM_PORT_SSCANF)
|
||||
#define sscanf ipcom_sscanf
|
||||
#elif defined(IPCOM_SSCANF)
|
||||
#define sscanf IPCOM_SSCANF
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FSCANF) && IPCOM_FSCANF == 1) || defined(IPCOM_PORT_FSCANF)
|
||||
#define fscanf ipcom_fscanf
|
||||
#elif defined(IPCOM_FSCANF)
|
||||
#define fscanf IPCOM_FSCANF
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_PERROR) && IPCOM_PERROR == 1) || defined(IPCOM_PORT_PERROR)
|
||||
#define perror(s) ipcom_perror(s)
|
||||
#elif defined(IPCOM_PERROR)
|
||||
#define perror(s) IPCOM_PERROR(s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FPUTC) && IPCOM_FPUTC == 1) || defined(IPCOM_PORT_FPUTC)
|
||||
#define fputc(c,s) ipcom_fputc(c,s)
|
||||
#elif defined(IPCOM_FPUTC)
|
||||
#define fputc(c,s) IPCOM_FPUTC(c,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FGETC) && IPCOM_FGETC == 1) || defined(IPCOM_PORT_FGETC)
|
||||
#define fgetc(s) ipcom_fgetc(s)
|
||||
#elif defined(IPCOM_FGETC)
|
||||
#define fgetc(s) IPCOM_FGETC(s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_PUTC) && IPCOM_PUTC == 1) || defined(IPCOM_PORT_PUTC)
|
||||
#define putc(c,s) ipcom_putc(c,s)
|
||||
#elif defined(IPCOM_PUTC)
|
||||
#define putc(c,s) IPCOM_PUTC(c,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_GETC) && IPCOM_GETC == 1) || defined(IPCOM_PORT_GETC)
|
||||
#define getc(s) ipcom_getc(s)
|
||||
#elif defined(IPCOM_GETC)
|
||||
#define getc(s) IPCOM_GETC(s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_UNGETC) && IPCOM_UNGETC == 1) || defined(IPCOM_PORT_UNGETC)
|
||||
#define ungetc(c,s) ipcom_ungetc(c,s)
|
||||
#elif defined(IPCOM_UNGETC)
|
||||
#define ungetc(c,s) IPCOM_UNGETC(c,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FGETS) && IPCOM_FGETS == 1) || defined(IPCOM_PORT_FGETS)
|
||||
#define fgets(b,l,s) ipcom_fgets(b,l,s)
|
||||
#elif defined(IPCOM_FGETS)
|
||||
#define fgets(b,l,s) IPCOM_FGETS(b,l,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_FPUTS) && IPCOM_FPUTS == 1) || defined(IPCOM_PORT_FPUTS)
|
||||
#define fputs(b,s) ipcom_fputs(b,s)
|
||||
#elif defined(IPCOM_FPUTS)
|
||||
#define fputs(b,s) IPCOM_FPUTS(b,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_PUTCHAR) && IPCOM_PUTCHAR == 1) || defined(IPCOM_PORT_PUTCHAR)
|
||||
#define putchar(c) ipcom_putchar(c)
|
||||
#elif defined(IPCOM_PUTCHAR)
|
||||
#define putchar(c) IPCOM_PUTCHAR(c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_GETCHAR) && IPCOM_GETCHAR == 1) || defined(IPCOM_PORT_GETCHAR)
|
||||
#define getchar ipcom_getchar
|
||||
#elif defined(IPCOM_GETCHAR)
|
||||
#define getchar IPCOM_GETCHAR
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPCOM_STDOUT_TO_SYSLOG
|
||||
*===========================================================================
|
||||
* Define this macro from the makefile if you want to re-route all output
|
||||
* from stdout and stderr to syslog.
|
||||
*
|
||||
*/
|
||||
#ifdef IPCOM_STDOUT_TO_SYSLOG
|
||||
/* fwrite */
|
||||
#ifdef fwrite
|
||||
#undef fwrite
|
||||
#endif
|
||||
#define fwrite ipcom_fwrite_syslog
|
||||
|
||||
/* fflush */
|
||||
#ifdef fflush
|
||||
#undef fflush
|
||||
#endif
|
||||
#define fflush ipcom_fflush_syslog
|
||||
|
||||
/* ferror */
|
||||
#ifdef ferror
|
||||
#undef ferror
|
||||
#endif
|
||||
#define ferror ipcom_ferror_syslog
|
||||
|
||||
/* feof */
|
||||
#ifdef feof
|
||||
#undef feof
|
||||
#endif
|
||||
#define feof ipcom_feof_syslog
|
||||
|
||||
/* printf */
|
||||
#ifdef printf
|
||||
#undef printf
|
||||
#endif
|
||||
#define printf ipcom_printf_syslog
|
||||
|
||||
/* fprintf */
|
||||
#ifdef fprintf
|
||||
#undef fprintf
|
||||
#endif
|
||||
#define fprintf ipcom_fprintf_syslog
|
||||
|
||||
/* perror */
|
||||
#ifdef perror
|
||||
#undef perror
|
||||
#endif
|
||||
#define perror ipcom_perror_syslog
|
||||
|
||||
/* fputc */
|
||||
#ifdef fputc
|
||||
#undef fputc
|
||||
#endif
|
||||
#define fputc ipcom_fputc_syslog
|
||||
|
||||
/* putc */
|
||||
#ifdef putc
|
||||
#undef putc
|
||||
#endif
|
||||
#define putc ipcom_putc_syslog
|
||||
|
||||
/* fputs */
|
||||
#ifdef fputs
|
||||
#undef fputs
|
||||
#endif
|
||||
#define fputs ipcom_fputs_syslog
|
||||
|
||||
/* putchar */
|
||||
#ifdef putchar
|
||||
#undef putchar
|
||||
#endif
|
||||
#define putchar ipcom_putchar_syslog
|
||||
#endif /* #ifdef IPCOM_STDOUT_TO_SYSLOG */
|
||||
|
||||
/* Special trick for Hitachi SHC compiler */
|
||||
#if defined(IPEMANATE) && defined(IP_PORT_ITRON)
|
||||
#define SR_QUOTE(X) <X.h>
|
||||
#endif
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef ungetc
|
||||
#undef ungetc
|
||||
#endif
|
||||
/* Use c library version directly since function is not available in IPCOM */
|
||||
IP_PUBLIC int ungetc(int c, IP_FILE *stream);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef fscanf
|
||||
#undef fscanf
|
||||
#endif
|
||||
/* Use c library version directly since function is not available in IPCOM */
|
||||
IP_PUBLIC int fscanf(IP_FILE *stream, const char *format, ...);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: stdlib.h,v $ $Revision: 1.6 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/stdlib.h,v $
|
||||
* $Author: lob $ $Date: 2010-12-16 11:01:21 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_STDLIB_H
|
||||
#define IP_STDLIB_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
#ifdef IPCOM_STDOUT_TO_SYSLOG
|
||||
#include "ipcom_stdio_syslog.h"
|
||||
#endif
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define EXIT_FAILURE 1
|
||||
#define EXIT_SUCCESS 0
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define getenv(n) ipcom_getenv(n)
|
||||
#define setenv(n, v, r) ipcom_setenv(n, v, r)
|
||||
|
||||
#if defined(IPBOUNDS) || defined(__BOUNDS_CHECKING_ON)
|
||||
extern void *malloc(size_t size);
|
||||
#elif defined(IPCOM_USE_DMALLOC) && !defined(IPCOM_DMALLOC_C)
|
||||
#define malloc(s) ipcom_dmalloc(s, __FILE__, __FUNCTION__, __LINE__)
|
||||
#elif (defined(IPCOM_MALLOC) && IPCOM_MALLOC == 1) || defined(IPCOM_PORT_MALLOC)
|
||||
#define malloc ipcom_malloc
|
||||
#elif defined(IPCOM_MALLOC)
|
||||
#define malloc IPCOM_MALLOC
|
||||
#endif
|
||||
|
||||
#if defined(IPBOUNDS) || defined(__BOUNDS_CHECKING_ON)
|
||||
extern void *calloc(size_t nelem, size_t elsize);
|
||||
#elif defined(IPCOM_USE_DMALLOC) && !defined(IPCOM_DMALLOC_C)
|
||||
#define calloc(n,s) ipcom_dcalloc(n,s, __FILE__, __FUNCTION__, __LINE__)
|
||||
#elif (defined(IPCOM_CALLOC) && IPCOM_CALLOC == 1) || defined(IPCOM_PORT_CALLOC)
|
||||
#define calloc(n,s) ipcom_calloc(n,s)
|
||||
#elif defined(IPCOM_CALLOC)
|
||||
#define calloc(n,s) IPCOM_CALLOC(n,s)
|
||||
#endif
|
||||
|
||||
#if defined(IPBOUNDS) || defined(__BOUNDS_CHECKING_ON)
|
||||
extern void *realloc(void *ptr, size_t size);
|
||||
#elif defined(IPCOM_USE_DMALLOC) && !defined(IPCOM_DMALLOC_C)
|
||||
#define realloc(p,s) ipcom_drealloc(p,s, __FILE__, __FUNCTION__, __LINE__)
|
||||
#elif (defined(IPCOM_REALLOC) && IPCOM_REALLOC == 1) || defined(IPCOM_PORT_REALLOC)
|
||||
#define realloc ipcom_realloc
|
||||
#elif defined(IPCOM_REALLOC)
|
||||
#define realloc IPCOM_REALLOC
|
||||
#endif
|
||||
|
||||
#if defined(IPBOUNDS) || defined(__BOUNDS_CHECKING_ON)
|
||||
extern void free(void *ptr);
|
||||
#elif defined(IPCOM_USE_DMALLOC) && !defined(IPCOM_DMALLOC_C)
|
||||
#define free(p) ipcom_dfree(p)
|
||||
#elif (defined(IPCOM_FREE) && IPCOM_FREE == 1) || defined(IPCOM_PORT_FREE)
|
||||
#define free ipcom_free
|
||||
#elif defined(IPCOM_FREE)
|
||||
#define free IPCOM_FREE
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_ABORT) && IPCOM_ABORT == 1) || defined(IPCOM_PORT_ABORT)
|
||||
#define abort ipcom_abort
|
||||
#elif defined(IPCOM_ABORT)
|
||||
#define abort IPCOM_ABORT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_EXIT) && IPCOM_EXIT == 1) || defined(IPCOM_PORT_EXIT)
|
||||
#define exit(s) ipcom_exit(s)
|
||||
#elif defined(IPCOM_EXIT)
|
||||
#define exit(s) IPCOM_EXIT(s)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_STRTOD) && IPCOM_STRTOD == 1) || defined(IPCOM_PORT_STRTOD)
|
||||
#define strtod(n,e) ipcom_strtod(n,e)
|
||||
#elif defined(IPCOM_STRTOD)
|
||||
#define strtod(n,e) IPCOM_STRTOD(n,e)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_ATOI) && IPCOM_ATOI == 1) || defined(IPCOM_PORT_ATOI)
|
||||
#define atoi(s) ipcom_atoi(s)
|
||||
#elif defined(IPCOM_ATOI)
|
||||
#define atoi(s) IPCOM_ATOI(s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_ATOL) && IPCOM_ATOL == 1) || defined(IPCOM_PORT_ATOL)
|
||||
#define atol(s) ipcom_atol(s)
|
||||
#elif defined(IPCOM_ATOL)
|
||||
#define atol(s) IPCOM_ATOL(s)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_QSORT) && IPCOM_QSORT == 1) || defined(IPCOM_PORT_QSORT)
|
||||
#define qsort ipcom_qsort
|
||||
#elif defined(IPCOM_QSORT)
|
||||
#define qsort IPCOM_QSORT
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_BSEARCH) && IPCOM_BSEARCH == 1) || defined(IPCOM_PORT_BSEARCH)
|
||||
#define bsearch ipcom_bsearch
|
||||
#elif defined(IPCOM_BSEARCH)
|
||||
#define bsearch IPCOM_BSEARCH
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_STRTOL) && IPCOM_STRTOL == 1) || defined(IPCOM_PORT_STRTOL)
|
||||
#define strtol(s,e,b) ipcom_strtol(s,e,b)
|
||||
#elif defined(IPCOM_STRTOL)
|
||||
#define strtol(s,e,b) IPCOM_STRTOL(s,e,b)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRTOUL) && IPCOM_STRTOUL == 1) || defined(IPCOM_PORT_STRTOUL)
|
||||
#define strtoul(s,e,b) ipcom_strtoul(s,e,b)
|
||||
#elif defined(IPCOM_STRTOUL)
|
||||
#define strtoul(s,e,b) IPCOM_STRTOUL(s,e,b)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_RANDOM) && IPCOM_RANDOM == 1) || defined(IPCOM_PORT_RANDOM)
|
||||
#define random ipcom_random
|
||||
#elif defined(IPCOM_RANDOM)
|
||||
#define random IPCOM_RANDOM
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_RAND) && IPCOM_RAND == 1) || defined(IPCOM_PORT_RAND)
|
||||
#define rand ipcom_rand
|
||||
#elif defined(IPCOM_RAND)
|
||||
#define rand IPCOM_RAND
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SRANDOM) && IPCOM_SRANDOM == 1) || defined(IPCOM_PORT_SRANDOM)
|
||||
#define srandom(a) ipcom_srandom(a)
|
||||
#elif defined(IPCOM_SRANDOM)
|
||||
#define srandom(a) IPCOM_SRANDOM(a)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_SRAND) && IPCOM_SRAND == 1) || defined(IPCOM_PORT_SRAND)
|
||||
#define srand(a) ipcom_srand(a)
|
||||
#elif defined(IPCOM_SRAND)
|
||||
#define srand(a) IPCOM_SRAND(a)
|
||||
#endif
|
||||
|
||||
#ifdef IPCOM_STDOUT_TO_SYSLOG
|
||||
/* exit */
|
||||
#ifdef exit
|
||||
#undef exit
|
||||
#endif
|
||||
#define exit ipcom_exit_syslog
|
||||
#endif
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define abs(i) ipnetsnmp_abs(i)
|
||||
IP_PUBLIC int ipnetsnmp_abs(int i);
|
||||
|
||||
#define mkstemp(t) ipnetsnmp_mkstemp(t)
|
||||
IP_PUBLIC int ipnetsnmp_mkstemp(char *template);
|
||||
|
||||
#define system(c) ipnetsnmp_system(c)
|
||||
IP_PUBLIC int ipnetsnmp_system(const char *command);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,252 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: string.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/string.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_STRING_H
|
||||
#define IP_STRING_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#include "strings.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef bzero
|
||||
#define bzero(s,n) ipcom_memset(s,0,n)
|
||||
#endif
|
||||
|
||||
#ifndef bcopy
|
||||
#define bcopy(s,d,n) ipcom_memcpy(d,s,n)
|
||||
#endif
|
||||
|
||||
#ifndef bcmp
|
||||
#define bcmp(s1,s2,n) ipcom_memcmp(s1,s2,n)
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(IPBOUNDS) || defined(__BOUNDS_CHECKING_ON)
|
||||
extern char *strdup(const char *s1);
|
||||
#elif defined(IPCOM_USE_DMALLOC) && !defined(IPCOM_DMALLOC_C)
|
||||
#define strdup(s) ipcom_dstrdup(s, __FILE__, __FUNCTION__, __LINE__)
|
||||
#elif (defined(IPCOM_STRDUP) && IPCOM_STRDUP == 1) || defined(IPCOM_PORT_STRDUP)
|
||||
#define strdup(s) ipcom_strdup(s)
|
||||
#elif defined(IPCOM_STRDUP)
|
||||
#define strdup(s) IPCOM_STRDUP(s)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_STRLEN) && IPCOM_STRLEN == 1) || defined(IPCOM_PORT_STRLEN)
|
||||
#define strlen(s) ipcom_strlen(s)
|
||||
#elif defined(IPCOM_STRLEN)
|
||||
#define strlen(s) IPCOM_STRLEN(s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCPY) && IPCOM_STRCPY == 1) || defined(IPCOM_PORT_STRCPY)
|
||||
#define strcpy(s1,s2) ipcom_strcpy(s1,s2)
|
||||
#elif defined(IPCOM_STRCPY)
|
||||
#define strcpy(s1,s2) IPCOM_STRCPY(s1,s2)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRNCPY) && IPCOM_STRNCPY == 1) || defined(IPCOM_PORT_STRNCPY)
|
||||
#define strncpy(s1,s2,n) ipcom_strncpy(s1,s2,n)
|
||||
#elif defined(IPCOM_STRNCPY)
|
||||
#define strncpy(s1,s2,n) IPCOM_STRNCPY(s1,s2,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCMP) && IPCOM_STRCMP == 1) || defined(IPCOM_PORT_STRCMP)
|
||||
#define strcmp(s1,s2) ipcom_strcmp(s1,s2)
|
||||
#elif defined(IPCOM_STRCMP)
|
||||
#define strcmp(s1,s2) IPCOM_STRCMP(s1,s2)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRNCMP) && IPCOM_STRNCMP == 1) || defined(IPCOM_PORT_STRNCMP)
|
||||
#define strncmp(s1,s2,n) ipcom_strncmp(s1,s2,n)
|
||||
#elif defined(IPCOM_STRNCMP)
|
||||
#define strncmp(s1,s2,n) IPCOM_STRNCMP(s1,s2,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRSTR) && IPCOM_STRSTR == 1) || defined(IPCOM_PORT_STRSTR)
|
||||
#define strstr(h,n) ipcom_strstr(h,n)
|
||||
#elif defined(IPCOM_STRSTR)
|
||||
#define strstr(h,n) IPCOM_STRSTR(h,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCASESTR) && IPCOM_STRCASESTR == 1) || defined(IPCOM_PORT_STRCASESTR)
|
||||
#define strcasestr(h,n) ipcom_strcasestr(h,n)
|
||||
#elif defined(IPCOM_STRCASESTR)
|
||||
#define strcasestr(h,n) IPCOM_STRCASESTR(h,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRTOK) && IPCOM_STRTOK == 1) || defined(IPCOM_PORT_STRTOK)
|
||||
#define strtok(s,st) ipcom_strtok(s,st)
|
||||
#elif defined(IPCOM_STRTOK)
|
||||
#define strtok(s,st) IPCOM_STRTOK(s,st)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRTOK_R) && IPCOM_STRTOK_R == 1) || defined(IPCOM_PORT_STRTOK_R)
|
||||
#define strtok_r(s,st,last) ipcom_strtok_r(s,st,last)
|
||||
#elif defined(IPCOM_STRTOK_R)
|
||||
#define strtok_r(s,st,last) IPCOM_STRTOK_R(s,st,last)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRSEP) && IPCOM_STRSEP == 1) || defined(IPCOM_PORT_STRSEP)
|
||||
#define strsep(cp,d) ipcom_strsep(cp,d)
|
||||
#elif defined(IPCOM_STRSEP)
|
||||
#define strsep(cp,d) IPCOM_STRSEP(cp,d)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRSPN) && IPCOM_STRSPN == 1) || defined(IPCOM_PORT_STRSPN)
|
||||
#define strspn(s1,s2) ipcom_strspn(s1,s2)
|
||||
#elif defined(IPCOM_STRSPN)
|
||||
#define strspn(s1,s2) IPCOM_STRSPN(s1,s2)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCSPN) && IPCOM_STRCSPN == 1) || defined(IPCOM_PORT_STRCSPN)
|
||||
#define strcspn(s1,s2) ipcom_strcspn(s1,s2)
|
||||
#elif defined(IPCOM_STRCSPN)
|
||||
#define strcspn(s1,s2) IPCOM_STRCSPN(s1,s2)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRPBRK) && IPCOM_STRPBRK == 1) || defined(IPCOM_PORT_STRPBRK)
|
||||
#define strpbrk(s,c) ipcom_strpbrk(s,c)
|
||||
#elif defined(IPCOM_STRPBRK)
|
||||
#define strpbrk(s,c) IPCOM_STRPBRK(s,c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCAT) && IPCOM_STRCAT == 1) || defined(IPCOM_PORT_STRCAT)
|
||||
#define strcat(d,s) ipcom_strcat(d,s)
|
||||
#elif defined(IPCOM_STRCAT)
|
||||
#define strcat(d,s) IPCOM_STRCAT(d,s)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRNCAT) && IPCOM_STRNCAT == 1) || defined(IPCOM_PORT_STRNCAT)
|
||||
#define strncat(d,s,n) ipcom_strncat(d,s,n)
|
||||
#elif defined(IPCOM_STRNCAT)
|
||||
#define strncat(d,s,n) IPCOM_STRNCAT(d,s,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRLCAT) && IPCOM_STRLCAT == 1) || defined(IPCOM_PORT_STRLCAT)
|
||||
#define strlcat(d,s,n) ipcom_strlcat(d,s,n)
|
||||
#elif defined(IPCOM_STRLCAT)
|
||||
#define strlcat(d,s,n) IPCOM_STRLCAT(d,s,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRLCPY) && IPCOM_STRLCPY == 1) || defined(IPCOM_PORT_STRLCPY)
|
||||
#define strlcpy(d,s,n) ipcom_strlcpy(d,s,n)
|
||||
#elif defined(IPCOM_STRLCPY)
|
||||
#define strlcpy(d,s,n) IPCOM_STRLCPY(d,s,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCHR) && IPCOM_STRCHR == 1) || defined(IPCOM_PORT_STRCHR)
|
||||
#define strchr(s,c) ipcom_strchr(s,c)
|
||||
#elif defined(IPCOM_STRCHR)
|
||||
#define strchr(s,c) IPCOM_STRCHR(s,c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRRCHR) && IPCOM_STRRCHR == 1) || defined(IPCOM_PORT_STRRCHR)
|
||||
#define strrchr(s,c) ipcom_strrchr(s,c)
|
||||
#elif defined(IPCOM_STRRCHR)
|
||||
#define strrchr(s,c) IPCOM_STRRCHR(s,c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRERROR) && IPCOM_STRERROR == 1) || defined(IPCOM_PORT_STRERROR)
|
||||
#define strerror(e) ipcom_strerror(e)
|
||||
#elif defined(IPCOM_STRERROR)
|
||||
#define strerror(e) IPCOM_STRERROR(e)
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(IPCOM_MEMCPY) && IPCOM_MEMCPY == 1) || defined(IPCOM_PORT_MEMCPY)
|
||||
#define memcpy(d,s,n) ipcom_memcpy(d,s,n)
|
||||
#elif defined(IPCOM_MEMCPY)
|
||||
#define memcpy(d,s,n) IPCOM_MEMCPY(d,s,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_MEMSET) && IPCOM_MEMSET == 1) || defined(IPCOM_PORT_MEMSET)
|
||||
#define memset(s,c,n) ipcom_memset(s,c,n)
|
||||
#elif defined(IPCOM_MEMSET)
|
||||
#define memset(s,c,n) IPCOM_MEMSET(s,c,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_MEMCMP) && IPCOM_MEMCMP == 1) || defined(IPCOM_PORT_MEMCMP)
|
||||
#define memcmp(s1,s2,n) ipcom_memcmp(s1,s2,n)
|
||||
#elif defined(IPCOM_MEMCMP)
|
||||
#define memcmp(s1,s2,n) IPCOM_MEMCMP(s1,s2,n)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_MEMMOVE) && IPCOM_MEMMOVE == 1) || defined(IPCOM_PORT_MEMMOVE)
|
||||
#define memmove(s1,s2,n) ipcom_memmove(s1,s2,n)
|
||||
#elif defined(IPCOM_MEMMOVE)
|
||||
#define memmove(s1,s2,n) IPCOM_MEMMOVE(s1,s2,n)
|
||||
#endif
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef strcasestr
|
||||
#undef strcasestr
|
||||
#endif
|
||||
#define strcasestr ipnetsnmp_strcasestr
|
||||
IP_PUBLIC char *ipnetsnmp_strcasestr(const char *s1, const char *s2);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: strings.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/strings.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_STRINGS_H
|
||||
#define IP_STRINGS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if (defined(IPCOM_INDEX) && IPCOM_INDEX == 1) || defined(IPCOM_PORT_INDEX)
|
||||
#define index(s,c) ipcom_index(s,c)
|
||||
#elif defined(IPCOM_INDEX)
|
||||
#define index(s,c) IPCOM_INDEX(s,c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_RINDEX) && IPCOM_RINDEX == 1) || defined(IPCOM_PORT_RINDEX)
|
||||
#define rindex(s,c) ipcom_rindex(s,c)
|
||||
#elif defined(IPCOM_RINDEX)
|
||||
#define rindex(s,c) IPCOM_RINDEX(s,c)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRCASECMP) && IPCOM_STRCASECMP == 1) || defined(IPCOM_PORT_STRCASECMP)
|
||||
#define strcasecmp(s1,s2) ipcom_strcasecmp(s1,s2)
|
||||
#elif defined(IPCOM_STRCASECMP)
|
||||
#define strcasecmp(s1,s2) IPCOM_STRCASECMP(s1,s2)
|
||||
#endif
|
||||
|
||||
#if (defined(IPCOM_STRNCASECMP) && IPCOM_STRNCASECMP == 1) || defined(IPCOM_PORT_STRNCASECMP)
|
||||
#define strncasecmp(s1,s2,n) ipcom_strncasecmp(s1,s2,n)
|
||||
#elif defined(IPCOM_STRNCASECMP)
|
||||
#define strncasecmp(s1,s2,n) IPCOM_STRNCASECMP(s1,s2,n)
|
||||
#endif
|
||||
|
||||
#define ffs(mask) ipcom_ffs(mask)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: cdefs.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/cdefs.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_CDEFS_H
|
||||
#define IP_SYS_CDEFS_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: endian.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/endian.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_ENDIAN_H
|
||||
#define IP_SYS_ENDIAN_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define BIG_ENDIAN 4321
|
||||
|
||||
#ifdef IP_LITTLE_ENDIAN
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
#elif defined(IP_BIG_ENDIAN)
|
||||
#define BYTE_ORDER BIG_ENDIAN
|
||||
|
||||
#else
|
||||
#error MUST_DEFINE_IP_XXX_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: errno.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/errno.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_ERRNO_H
|
||||
#define IP_SYS_ERRNO_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_errno.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef errno
|
||||
#undef errno
|
||||
#endif
|
||||
#define errno ipcom_errno
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ERRNO codes
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define EPERM IP_ERRNO_EPERM
|
||||
#define ENOENT IP_ERRNO_ENOENT
|
||||
#define ESRCH IP_ERRNO_ESRCH
|
||||
#define EINTR IP_ERRNO_EINTR
|
||||
#define EIO IP_ERRNO_EIO
|
||||
#define ENXIO IP_ERRNO_ENXIO
|
||||
#define E2BIG IP_ERRNO_E2BIG
|
||||
#define ENOEXEC IP_ERRNO_ENOEXEC
|
||||
#define EBADF IP_ERRNO_EBADF
|
||||
#define ECHILD IP_ERRNO_ECHILD
|
||||
#define EAGAIN IP_ERRNO_EAGAIN
|
||||
#define ENOMEM IP_ERRNO_ENOMEM
|
||||
#define EACCES IP_ERRNO_EACCES
|
||||
#define EFAULT IP_ERRNO_EFAULT
|
||||
#define ENOTBLK IP_ERRNO_ENOTBLK
|
||||
#define EBUSY IP_ERRNO_EBUSY
|
||||
#define EEXIST IP_ERRNO_EEXIST
|
||||
#define EXDEV IP_ERRNO_EXDEV
|
||||
#define ENODEV IP_ERRNO_ENODEV
|
||||
#define ENOTDIR IP_ERRNO_ENOTDIR
|
||||
#define EISDIR IP_ERRNO_EISDIR
|
||||
#define EINVAL IP_ERRNO_EINVAL
|
||||
#define ENFILE IP_ERRNO_ENFILE
|
||||
#define EMFILE IP_ERRNO_EMFILE
|
||||
#define ENOTTY IP_ERRNO_ENOTTY
|
||||
#define ETXTBSY IP_ERRNO_ETXTBSY
|
||||
#define EFBIG IP_ERRNO_EFBIG
|
||||
#define ENOSPC IP_ERRNO_ENOSPC
|
||||
#define ESPIPE IP_ERRNO_ESPIPE
|
||||
#define EROFS IP_ERRNO_EROFS
|
||||
#define EMLINK IP_ERRNO_EMLINK
|
||||
#define EPIPE IP_ERRNO_EPIPE
|
||||
#define EDOM IP_ERRNO_EDOM
|
||||
#define ERANGE IP_ERRNO_ERANGE
|
||||
#define EDEADLK IP_ERRNO_EDEADLK
|
||||
#define ENAMETOOLONG IP_ERRNO_ENAMETOOLONG
|
||||
#define ENOLCK IP_ERRNO_ENOLCK
|
||||
#define ENOSYS IP_ERRNO_ENOSYS
|
||||
#define ENOTEMPTY IP_ERRNO_ENOTEMPTY
|
||||
#define ELOOP IP_ERRNO_ELOOP
|
||||
#define EWOULDBLOCK IP_ERRNO_EWOULDBLOCK
|
||||
#define ENOMSG IP_ERRNO_ENOMSG
|
||||
#define EIDRM IP_ERRNO_EIDRM
|
||||
#define ECHRNG IP_ERRNO_ECHRNG
|
||||
#define EL2NSYNC IP_ERRNO_EL2NSYNC
|
||||
#define EL3HLT IP_ERRNO_EL3HLT
|
||||
#define EL3RST IP_ERRNO_EL3RST
|
||||
#define ELNRNG IP_ERRNO_ELNRNG
|
||||
#define EUNATCH IP_ERRNO_EUNATCH
|
||||
#define ENOCSI IP_ERRNO_ENOCSI
|
||||
#define EL2HLT IP_ERRNO_EL2HLT
|
||||
#define EBADE IP_ERRNO_EBADE
|
||||
#define EBADR IP_ERRNO_EBADR
|
||||
#define EXFULL IP_ERRNO_EXFULL
|
||||
#define ENOANO IP_ERRNO_ENOANO
|
||||
#define EBADRQC IP_ERRNO_EBADRQC
|
||||
#define EBADSLT IP_ERRNO_EBADSLT
|
||||
|
||||
#define EDEADLOCK IP_ERRNO_EDEADLOCK
|
||||
|
||||
#define EBFONT IP_ERRNO_EBFONT
|
||||
#define ENOSTR IP_ERRNO_ENOSTR
|
||||
#define ENODATA IP_ERRNO_ENODATA
|
||||
#define ETIME IP_ERRNO_ETIME
|
||||
#define ENOSR IP_ERRNO_ENOSR
|
||||
#define ENONET IP_ERRNO_ENONET
|
||||
#define ENOPKG IP_ERRNO_ENOPKG
|
||||
#define EREMOTE IP_ERRNO_EREMOTE
|
||||
#define ENOLINK IP_ERRNO_ENOLINK
|
||||
#define EADV IP_ERRNO_EADV
|
||||
#define ESRMNT IP_ERRNO_ESRMNT
|
||||
#define ECOMM IP_ERRNO_ECOMM
|
||||
#ifdef IP_ERRNO_EPROTO
|
||||
#define EPROTO IP_ERRNO_EPROTO
|
||||
#endif
|
||||
#define EMULTIHOP IP_ERRNO_EMULTIHOP
|
||||
#define EDOTDOT IP_ERRNO_EDOTDOT
|
||||
#define EBADMSG IP_ERRNO_EBADMSG
|
||||
#define EOVERFLOW IP_ERRNO_EOVERFLOW
|
||||
#define ENOTUNIQ IP_ERRNO_ENOTUNIQ
|
||||
#define EBADFD IP_ERRNO_EBADFD
|
||||
#define EREMCHG IP_ERRNO_EREMCHG
|
||||
#define ELIBACC IP_ERRNO_ELIBACC
|
||||
#define ELIBBAD IP_ERRNO_ELIBBAD
|
||||
#define ELIBSCN IP_ERRNO_ELIBSCN
|
||||
#define ELIBMAX IP_ERRNO_ELIBMAX
|
||||
#define ELIBEXEC IP_ERRNO_ELIBEXEC
|
||||
#define EILSEQ IP_ERRNO_EILSEQ
|
||||
#define ERESTART IP_ERRNO_ERESTART
|
||||
#define ESTRPIPE IP_ERRNO_ESTRPIPE
|
||||
#define EUSERS IP_ERRNO_EUSERS
|
||||
#define ENOTSOCK IP_ERRNO_ENOTSOCK
|
||||
#define EDESTADDRREQ IP_ERRNO_EDESTADDRREQ
|
||||
#define EMSGSIZE IP_ERRNO_EMSGSIZE
|
||||
#define EPROTOTYPE IP_ERRNO_EPROTOTYPE
|
||||
#define ENOPROTOOPT IP_ERRNO_ENOPROTOOPT
|
||||
#define EPROTONOSUPPORT IP_ERRNO_EPROTONOSUPPORT
|
||||
#define ESOCKTNOSUPPORT IP_ERRNO_ESOCKTNOSUPPORT
|
||||
#define EOPNOTSUPP IP_ERRNO_EOPNOTSUPP
|
||||
#define EPFNOSUPPORT IP_ERRNO_EPFNOSUPPORT
|
||||
#define EAFNOSUPPORT IP_ERRNO_EAFNOSUPPORT
|
||||
#define EADDRINUSE IP_ERRNO_EADDRINUSE
|
||||
#define EADDRNOTAVAIL IP_ERRNO_EADDRNOTAVAIL
|
||||
#define ENETDOWN IP_ERRNO_ENETDOWN
|
||||
#define ENETUNREACH IP_ERRNO_ENETUNREACH
|
||||
#define ENETRESET IP_ERRNO_ENETRESET
|
||||
#define ECONNABORTED IP_ERRNO_ECONNABORTED
|
||||
#define ECONNRESET IP_ERRNO_ECONNRESET
|
||||
#define ENOBUFS IP_ERRNO_ENOBUFS
|
||||
#define EISCONN IP_ERRNO_EISCONN
|
||||
#define ENOTCONN IP_ERRNO_ENOTCONN
|
||||
#define ESHUTDOWN IP_ERRNO_ESHUTDOWN
|
||||
#define ETOOMANYREFS IP_ERRNO_ETOOMANYREFS
|
||||
#define ETIMEDOUT IP_ERRNO_ETIMEDOUT
|
||||
#define ECONNREFUSED IP_ERRNO_ECONNREFUSED
|
||||
#define EHOSTDOWN IP_ERRNO_EHOSTDOWN
|
||||
#define EHOSTUNREACH IP_ERRNO_EHOSTUNREACH
|
||||
#define EALREADY IP_ERRNO_EALREADY
|
||||
#define EINPROGRESS IP_ERRNO_EINPROGRESS
|
||||
#define ESTALE IP_ERRNO_ESTALE
|
||||
#define EUCLEAN IP_ERRNO_EUCLEAN
|
||||
#define ENOTNAM IP_ERRNO_ENOTNAM
|
||||
#define ENAVAIL IP_ERRNO_ENAVAIL
|
||||
#define EISNAM IP_ERRNO_EISNAM
|
||||
#define EREMOTEIO IP_ERRNO_EREMOTEIO
|
||||
#define EDQUOT IP_ERRNO_EDQUOT
|
||||
|
||||
#define ENOMEDIUM IP_ERRNO_ENOMEDIUM
|
||||
#define EMEDIUMTYPE IP_ERRNO_EMEDIUMTYPE
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: fcntl.h,v $ $Revision: 1.4 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/fcntl.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_FCNTL_H
|
||||
#define IP_SYS_FCNTL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define O_RDONLY IP_O_RDONLY
|
||||
#define O_WRONLY IP_O_WRONLY
|
||||
#define O_RDWR IP_O_RDWR
|
||||
#define O_APPEND IP_O_APPEND
|
||||
#define O_CREAT IP_O_CREAT
|
||||
|
||||
/* unsupported: */
|
||||
#define O_TRUNC IP_O_TRUNC
|
||||
#define O_EXCL IP_O_EXCL
|
||||
#define O_NONBLOCK IP_O_NONBLOCK
|
||||
|
||||
#define F_WRLCK 1
|
||||
#define F_SETLK 6
|
||||
#define F_GETFL 3
|
||||
#define F_SETFL 4
|
||||
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
#define X_OK 1
|
||||
#define F_OK 0
|
||||
|
||||
#define creat(a1,a2) open(a1,O_CREAT|O_WRONLY|O_TRUNC,a2)
|
||||
|
||||
struct flock {
|
||||
Ip_s16 l_type;
|
||||
Ip_s16 l_whence;
|
||||
Ip_off_t l_start;
|
||||
Ip_off_t l_len;
|
||||
Ip_pid_t l_pid;
|
||||
};
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define fcntl(f,c,a) ipnetsnmp_fcntl(f,c,a)
|
||||
IP_PUBLIC int ipnetsnmp_fcntl(int fd, int cmd, long arg);
|
||||
|
||||
#ifdef open
|
||||
#undef open
|
||||
#endif
|
||||
#define open ipnetsnmp_open
|
||||
IP_PUBLIC int ipnetsnmp_open(const char* p, int flags, ...);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: file.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/file.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_FILE_H
|
||||
#define IP_SYS_FILE_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ioctl.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/ioctl.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_IOCTL_H
|
||||
#define IP_SYS_IOCTL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/sockio.h"
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* sys/filio.h */
|
||||
#define SIOCSPGRP IP_SIOCSPGRP
|
||||
#define SIOCGPGRP IP_SIOCGPGRP
|
||||
#define FIONBIO IP_FIONBIO
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define ioctl(fd,request,argp) ipcom_socketioctl((Ip_fd)fd,request,argp)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: param.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/param.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:39:23 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_PARAM_H
|
||||
#define IP_SYS_PARAM_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "limits.h"
|
||||
#include "sys/types.h"
|
||||
#include "sys/signal.h"
|
||||
#include "sys/endian.h"
|
||||
#include "netinet/in.h"
|
||||
|
||||
#include "ipcom_file.h" /* for IP_PATH_MAX */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define MAXPATHLEN IP_PATH_MAX
|
||||
|
||||
#define NBBY 8
|
||||
|
||||
#define howmany(x) ip_howmany(x)
|
||||
|
||||
#define HZ 100
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: select.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/select.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SELECT_H
|
||||
#define IP_SYS_SELECT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* select
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define fd_set Ip_fd_set
|
||||
|
||||
#ifdef FD_SETSIZE
|
||||
#undef FD_SETSIZE
|
||||
#endif
|
||||
#define FD_SETSIZE IP_FD_SETSIZE
|
||||
|
||||
#define FD_ZERO(pfdset) IP_FD_ZERO(pfdset)
|
||||
#define FD_CLR(fd,pfdset) IP_FD_CLR(fd,pfdset)
|
||||
#define FD_SET(fd,pfdset) IP_FD_SET(fd,pfdset)
|
||||
#define FD_ISSET(fd,pfdset) IP_FD_ISSET(fd,pfdset)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,211 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: signal.h,v $ $Revision: 1.4.54.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/signal.h,v $
|
||||
* $Author: yli10 $ $Date: 2018-06-20 08:58:36 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SIGNAL_H
|
||||
#define IP_SYS_SIGNAL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_cstyle.h"
|
||||
#include "ipcom_clib.h"
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* signal numbers
|
||||
*===========================================================================
|
||||
*/
|
||||
#define SIGHUP 1 /* hangup */
|
||||
#define SIGINT 2 /* interrupt */
|
||||
#define SIGQUIT 3
|
||||
#define SIGILL 4
|
||||
#define SIGTRAP 5 /* trace trap (not reset when caught) */
|
||||
#define SIGABRT 6
|
||||
#define SIGIOT 6
|
||||
#define SIGBUS 7
|
||||
#define SIGFPE 8
|
||||
#define SIGKILL 9
|
||||
#define SIGSEGV 11 /* segmentation violation */
|
||||
#define SIGPIPE 13
|
||||
#define SIGALRM 14 /* alarm clock */
|
||||
#define SIGTERM 15 /* software termination signal from kill */
|
||||
#define SIGSTKFLT 16
|
||||
#define SIGCHLD 17
|
||||
#define SIGCONT 18
|
||||
#define SIGSTOP 19
|
||||
#define SIGTSTP 20
|
||||
#define SIGTTIN 21
|
||||
#define SIGTTOU 22
|
||||
#define SIGURG 23
|
||||
#define SIGXCPU 24
|
||||
#define SIGXFSZ 25
|
||||
#define SIGVTALRM 26
|
||||
#define SIGPROF 27
|
||||
#define SIGWINCH 28
|
||||
#define SIGIO 29
|
||||
#define SIGUSR1 30 /* user defined signal 1 */
|
||||
#define SIGUSR2 31 /* user defined signal 2 */
|
||||
|
||||
#define NSIG 33
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* signal
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SIG_DFL ((void (*)(int)) 0)
|
||||
#define SIG_IGN ((void (*)(int)) 1)
|
||||
#define SIG_ERR ((void (*)(int)) -1)
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sigprocmask flags
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SIG_BLOCK 1 /* block specified signal set */
|
||||
#define SIG_UNBLOCK 2 /* unblock specified signal set */
|
||||
#define SIG_SETMASK 3 /* set specified signal set */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
typedef int Ip_sig_atomic_t;
|
||||
#define sig_atomic_t Ip_sig_atomic_t
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Ip_u32 __bits[4];
|
||||
}
|
||||
Ip_sigset_t;
|
||||
#define sigset_t Ip_sigset_t
|
||||
|
||||
|
||||
struct sigaction
|
||||
{
|
||||
void (*sa_handler)(int); /* signal handler */
|
||||
Ip_sigset_t sa_mask; /* signal mask to apply */
|
||||
int sa_flags; /* signal options */
|
||||
};
|
||||
|
||||
typedef void (*Ip_sighandler_t)(int);
|
||||
#define sighandler_t Ip_sighandler_t
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC int ipk_sigemptyset(Ip_sigset_t *set);
|
||||
#define sigemptyset ipk_sigemptyset
|
||||
|
||||
IP_PUBLIC int ipk_sigfillset(Ip_sigset_t *set);
|
||||
/*#define sigfillset ipk_sigfillset*/
|
||||
extern int sigfillset (sigset_t * __set);
|
||||
|
||||
IP_PUBLIC int ipk_sigaddset(Ip_sigset_t *set, int signo);
|
||||
#define sigaddset ipk_sigaddset
|
||||
|
||||
IP_PUBLIC int ipk_sigdelset(Ip_sigset_t *set, int signo);
|
||||
/*#define sigdelset ipk_sigdelset*/
|
||||
extern int sigdelset (sigset_t * __set, int __signo);
|
||||
|
||||
IP_PUBLIC int ipk_sigismember(const Ip_sigset_t *set, int signo);
|
||||
#define sigismember ipk_sigismember
|
||||
|
||||
IP_PUBLIC int ipk_sigpending(Ip_sigset_t *set);
|
||||
#define sigpending ipk_sigpending
|
||||
|
||||
IP_PUBLIC int ipk_sigprocmask(int how, const Ip_sigset_t *set, Ip_sigset_t *oset);
|
||||
#ifndef _WRS_KERNEL /* user-mode API's */
|
||||
#define sigprocmask ipk_sigprocmask
|
||||
#else
|
||||
extern int sigprocmask (int __how, const sigset_t * __set, sigset_t * __oset);
|
||||
#endif
|
||||
|
||||
IP_PUBLIC int sigaction(int signo, const struct sigaction *act, struct sigaction *oact);
|
||||
|
||||
IP_PUBLIC Ip_sighandler_t ipk_signal(int signo, Ip_sighandler_t handler);
|
||||
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef signal
|
||||
#undef signal
|
||||
#endif
|
||||
#define signal(s,h) ipnetsnmp_signal(s,h)
|
||||
IP_PUBLIC sighandler_t ipnetsnmp_signal(int signo, sighandler_t handler);
|
||||
|
||||
#ifdef sigemptyset
|
||||
#undef sigemptyset
|
||||
#endif
|
||||
#define sigemptyset(s) ipnetsnmp_sigemptyset(s)
|
||||
IP_PUBLIC int ipnetsnmp_sigemptyset(sigset_t *set);
|
||||
|
||||
IP_PUBLIC int ipnetsnmp_sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
|
||||
#define sigaction(s,a,o) ipnetsnmp_sigaction(s,a,o)
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,334 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: socket.h,v $ $Revision: 1.13.10.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/socket.h,v $
|
||||
* $Author: svc-cmnet $ $Date: 2013-03-13 07:45:47 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SOCKET_H
|
||||
#define IP_SYS_SOCKET_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
#include "ipcom_sysctl.h"
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "limits.h"
|
||||
#include "errno.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* domain
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define AF_UNSPEC IP_AF_UNSPEC
|
||||
#define AF_INET IP_AF_INET
|
||||
#define AF_NETLINK IP_AF_NETLINK
|
||||
#define AF_ROUTE IP_AF_ROUTE
|
||||
#define AF_LINK IP_AF_LINK
|
||||
#define AF_PACKET IP_AF_PACKET
|
||||
#define AF_INET6 IP_AF_INET6
|
||||
#define AF_KEY IP_AF_KEY
|
||||
#define AF_IPX IP_AF_IPX
|
||||
#define AF_MAX IP_AF_MAX
|
||||
|
||||
#define PF_INET IP_PF_INET
|
||||
#define PF_NETLINK IP_PF_NETLINK
|
||||
#define PF_ROUTE IP_PF_ROUTE
|
||||
#define PF_LINK IP_PF_LINK
|
||||
#define PF_PACKET IP_PF_PACKET
|
||||
#define PF_INET6 IP_PF_INET6
|
||||
#define PF_KEY IP_PF_KEY
|
||||
#define PF_IPX IP_PF_IPX
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* Socket types
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SOCK_STREAM IP_SOCK_STREAM
|
||||
#define SOCK_DGRAM IP_SOCK_DGRAM
|
||||
#define SOCK_RAW IP_SOCK_RAW
|
||||
#define SOCK_PACKET IP_SOCK_PACKET
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* setsockopt/getsockopt
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SOL_SOCKET IP_SOL_SOCKET
|
||||
|
||||
/***** IP_SOL_SOCKET socket options: *****/
|
||||
#define SO_REUSEADDR IP_SO_REUSEADDR
|
||||
#define SO_KEEPALIVE IP_SO_KEEPALIVE
|
||||
#define SO_DONTROUTE IP_SO_DONTROUTE
|
||||
#define SO_BROADCAST IP_SO_BROADCAST
|
||||
#define SO_USELOOPBACK IP_SO_USELOOPBACK
|
||||
#define SO_REUSEPORT IP_SO_REUSEPORT
|
||||
#define SO_SNDBUF IP_SO_SNDBUF
|
||||
#define SO_RCVBUF IP_SO_RCVBUF
|
||||
#define SO_RCVTIMEO IP_SO_RCVTIMEO
|
||||
#define SO_ERROR IP_SO_ERROR
|
||||
#define SO_TYPE IP_SO_TYPE
|
||||
#define SO_BINDTODEVICE IP_SO_BINDTODEVICE
|
||||
#define SO_PASSCRED 16 /* UNSUPPORTED */
|
||||
#define SO_BSDCOMPAT 0xffffffff /* UNSUPPORTED */
|
||||
#define SO_VR IP_SO_X_VR
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sysctl
|
||||
*===========================================================================
|
||||
* Networking sysctl's
|
||||
*/
|
||||
#define NET_RT_DUMP IP_NET_RT_DUMP
|
||||
#define NET_RT_FLAGS IP_NET_RT_FLAGS
|
||||
#define NET_RT_IFLIST IP_NET_RT_IFLIST
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* msghdr
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define msghdr Ip_msghdr
|
||||
|
||||
/* msg_flags values */
|
||||
#define MSG_TRUNC IP_MSG_TRUNC
|
||||
#define MSG_CTRUNC IP_MSG_CTRUNC
|
||||
#define MSG_DONTWAIT IP_MSG_DONTWAIT
|
||||
#define MSG_WAITALL IP_MSG_WAITALL
|
||||
#define MSG_OOB 0x80 /* unsupported */
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* cmsghdr
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define cmsghdr Ip_cmsghdr
|
||||
|
||||
#define CMSG_ALIGN(len) IP_CMSG_ALIGN(len)
|
||||
#define CMSG_FIRSTHDR(mhdrptr) IP_CMSG_FIRSTHDR(mhdrptr)
|
||||
#define CMSG_NXTHDR(mhdr,cmsg) IP_CMSG_NXTHDR(mhdr,cmsg)
|
||||
#define CMSG_DATA(cmsgptr) IP_CMSG_DATA(cmsgptr)
|
||||
#define CMSG_SPACE(len) IP_CMSG_SPACE(len)
|
||||
#define CMSG_LEN(len) IP_CMSG_LEN(len)
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* recvxx() argument flags
|
||||
*===========================================================================
|
||||
*/
|
||||
#define MSG_DONTWAIT IP_MSG_DONTWAIT
|
||||
#define MSG_PEEK IP_MSG_PEEK
|
||||
#define MSG_DONTROUTE IP_MSG_DONTROUTE
|
||||
#define MSG_NOTIFICATION IP_MSG_NOTIFICATION
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* shutdown() argument flags
|
||||
*===========================================================================
|
||||
*/
|
||||
#define SHUT_RD IP_SHUT_RD
|
||||
#define SHUT_WR IP_SHUT_WR
|
||||
#define SHUT_RDWR IP_SHUT_RDWR
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* UNSUPPORTED
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define SCM_CREDENTIALS 0x02
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sockaddr
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define sockaddr Ip_sockaddr
|
||||
#define sockaddr_storage Ip_sockaddr_storage
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* if_nameindex
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
typedef struct if_nameindex Ip_if_nameindex;
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* _T TYPES
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define sa_family_t Ip_sa_family_t
|
||||
#define socklen_t Ip_socklen_t
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* in_pktinfo
|
||||
*===========================================================================
|
||||
*/
|
||||
#define in_pktinfo Ip_in_pktinfo
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* UNSUPPORTED
|
||||
*===========================================================================
|
||||
*/
|
||||
struct ucred
|
||||
{
|
||||
Ip_u32 pid;
|
||||
Ip_u32 uid;
|
||||
Ip_u32 gid;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef IPCOM_USE_NATIVE_SOCK_API
|
||||
#define socket(domain,type,protocol) ipcom_socket_usr(domain,type,protocol)
|
||||
#define shutdown(fd,how) ipcom_shutdown_usr((Ip_fd)fd,how)
|
||||
#define bind(fd,addr,addrlen) ipcom_bind_usr((Ip_fd)fd,(IP_CONST struct Ip_sockaddr *)addr,(Ip_socklen_t)addrlen)
|
||||
#define connect(fd,addr,addrlen) ipcom_connect_usr((Ip_fd)fd,(IP_CONST struct Ip_sockaddr *)addr,(Ip_socklen_t)addrlen)
|
||||
#define accept(fd,addr,addrlenp) ipcom_accept_usr((Ip_fd)fd,(struct Ip_sockaddr *)addr,(Ip_socklen_t *)addrlenp)
|
||||
#define listen(fd,backlog) ipcom_listen_usr((Ip_fd)fd,backlog)
|
||||
|
||||
#define send(fd,msg,len,flags) ipcom_send_usr((Ip_fd)fd,(IP_CONST void *)(msg),(Ip_size_t)len,flags)
|
||||
#define sendto(fd,msg,len,flags,to,tolen) ipcom_sendto_usr((Ip_fd)fd,(IP_CONST void *)(msg),(Ip_size_t)len,flags,(IP_CONST struct Ip_sockaddr *)to,(Ip_socklen_t)tolen)
|
||||
#define sendmsg(fd,msg,flags) ipcom_sendmsg_usr((Ip_fd)fd,(IP_CONST struct Ip_msghdr *)msg,flags)
|
||||
|
||||
#define recv(fd,buf,len,flags) ipcom_recv_usr((Ip_fd)fd,(void *)(buf),(Ip_size_t)len,flags)
|
||||
#define recvfrom(fd,buf,len,flags,from,fp) ipcom_recvfrom_usr((Ip_fd)fd,(void *)(buf),(Ip_size_t)len,flags,(struct Ip_sockaddr *)from,(Ip_socklen_t *)fp)
|
||||
#define recvmsg(fd,msg,flags) ipcom_recvmsg_usr((Ip_fd)fd,(struct Ip_msghdr *)msg,flags)
|
||||
|
||||
#define getsockopt(fd,level,optname,optval,optlenp) ipcom_getsockopt_usr((Ip_fd)fd,level,optname,optval,(Ip_socklen_t *)optlenp)
|
||||
#define setsockopt(fd,level,optname,optval,optlen) ipcom_setsockopt_usr((Ip_fd)fd,level,optname,(IP_CONST void *)optval,(Ip_socklen_t)optlen)
|
||||
|
||||
#define getsockname(fd,name,namelenp) ipcom_getsockname_usr((Ip_fd)fd,(struct Ip_sockaddr *)name,(Ip_socklen_t *)namelenp)
|
||||
#define getpeername(fd,name,namelenp) ipcom_getpeername_usr((Ip_fd)fd,(struct Ip_sockaddr *)name,(Ip_socklen_t *)namelenp)
|
||||
|
||||
#define if_nametoindex(ifname) ipcom_if_nametoindex((IP_CONST char *)ifname)
|
||||
#define ifNameToIfIndex(ifname) ipcom_if_nametoindex((IP_CONST char *)ifname)
|
||||
#define if_indextoname(ifindex,ifname) ipcom_if_indextoname((Ip_u32)ifindex, (char *)ifname)
|
||||
#define if_nameindex() ipcom_if_nameindex()
|
||||
#define if_freenameindex(pif) ipcom_if_freenameindex(pif)
|
||||
|
||||
#else /* IPCOM_USE_NATIVE_SOCK_API */
|
||||
|
||||
#define socket(domain,type,protocol) ipcom_socket(domain,type,protocol)
|
||||
#define shutdown(fd,how) ipcom_shutdown((Ip_fd)fd,how)
|
||||
#define bind(fd,addr,addrlen) ipcom_bind((Ip_fd)fd,(IP_CONST struct Ip_sockaddr *)addr,(Ip_socklen_t)addrlen)
|
||||
#define connect(fd,addr,addrlen) ipcom_connect((Ip_fd)fd,(IP_CONST struct Ip_sockaddr *)addr,(Ip_socklen_t)addrlen)
|
||||
#define accept(fd,addr,addrlenp) ipcom_accept((Ip_fd)fd,(struct Ip_sockaddr *)addr,(Ip_socklen_t *)addrlenp)
|
||||
#define listen(fd,backlog) ipcom_listen((Ip_fd)fd,backlog)
|
||||
|
||||
#define send(fd,msg,len,flags) ipcom_send((Ip_fd)fd,(IP_CONST void *)(msg),(Ip_size_t)len,flags)
|
||||
#define sendto(fd,msg,len,flags,to,tolen) ipcom_sendto((Ip_fd)fd,(IP_CONST void *)(msg),(Ip_size_t)len,flags,(IP_CONST struct Ip_sockaddr *)to,(Ip_socklen_t)tolen)
|
||||
#define sendmsg(fd,msg,flags) ipcom_sendmsg((Ip_fd)fd,(IP_CONST struct Ip_msghdr *)msg,flags)
|
||||
|
||||
#define recv(fd,buf,len,flags) ipcom_recv((Ip_fd)fd,(void *)(buf),(Ip_size_t)len,flags)
|
||||
#define recvfrom(fd,buf,len,flags,from,fp) ipcom_recvfrom((Ip_fd)fd,(void *)(buf),(Ip_size_t)len,flags,(struct Ip_sockaddr *)from,(Ip_socklen_t *)fp)
|
||||
#define recvmsg(fd,msg,flags) ipcom_recvmsg((Ip_fd)fd,(struct Ip_msghdr *)msg,flags)
|
||||
|
||||
#define getsockopt(fd,level,optname,optval,optlenp) ipcom_getsockopt((Ip_fd)fd,level,optname,optval,(Ip_socklen_t *)optlenp)
|
||||
#define setsockopt(fd,level,optname,optval,optlen) ipcom_setsockopt((Ip_fd)fd,level,optname,(IP_CONST void *)optval,(Ip_socklen_t)optlen)
|
||||
|
||||
#define getsockname(fd,name,namelenp) ipcom_getsockname((Ip_fd)fd,(struct Ip_sockaddr *)name,(Ip_socklen_t *)namelenp)
|
||||
#define getpeername ipcom_getpeername
|
||||
|
||||
#define if_nametoindex(ifname) ipcom_if_nametoindex((IP_CONST char *)ifname)
|
||||
#define ifNameToIfIndex(ifname) ipcom_if_nametoindex((IP_CONST char *)ifname)
|
||||
#define if_indextoname(ifindex,ifname) ipcom_if_indextoname((Ip_u32)ifindex, (char *)ifname)
|
||||
#define if_nameindex() ipcom_if_nameindex()
|
||||
#define if_freenameindex(pif) ipcom_if_freenameindex(pif)
|
||||
|
||||
#endif /* IPCOM_USE_NATIVE_SOCK_API */
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef socket
|
||||
#undef socket
|
||||
#endif
|
||||
#define socket(domain,type,protocol) ipnetsnmp_socket(domain,type,protocol)
|
||||
IP_PUBLIC Ip_fd ipnetsnmp_socket(int domain, int type, int protocol);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: sockio.h,v $ $Revision: 1.4 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/sockio.h,v $
|
||||
* $Author: jhorteli $ $Date: 2008-01-30 11:39:23 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SOCKIO_H
|
||||
#define IP_SYS_SOCKIO_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* AF_INET ioctl. */
|
||||
#define SIOCGIFADDR IP_SIOCGIFADDR
|
||||
#define SIOCSIFADDR IP_SIOCSIFADDR
|
||||
#define SIOCGIFBRDADDR IP_SIOCGIFBRDADDR
|
||||
#define SIOCGIFNETMASK IP_SIOCGIFNETMASK
|
||||
#define SIOCSIFNETMASK IP_SIOCSIFNETMASK
|
||||
#define SIOCGIFDSTADDR IP_SIOCGIFDSTADDR
|
||||
#define SIOCSIFDSTADDR IP_SIOCSIFDSTADDR
|
||||
#define SIOCAIFADDR IP_SIOCAIFADDR
|
||||
#define SIOCDIFADDR IP_SIOCDIFADDR
|
||||
|
||||
|
||||
/* AF_INET6 ioctl. */
|
||||
#define SIOCAIFADDR_IN6 IP_SIOCAIFADDR_IN6
|
||||
#define SIOCDIFADDR_IN6 IP_SIOCDIFADDR_IN6
|
||||
#define SIOCGIFDSTADDR_IN6 IP_SIOCGIFDSTADDR_IN6
|
||||
|
||||
/* ARP ioctls: */
|
||||
#define SIOCSARP IP_SIOCSARP
|
||||
#define SIOCGARP IP_SIOCGARP
|
||||
#define SIOCDARP IP_SIOCDARP
|
||||
|
||||
/* interface ioctls: */
|
||||
#define SIOCGIFFLAGS IP_SIOCGIFFLAGS
|
||||
#define SIOCSIFFLAGS IP_SIOCSIFFLAGS
|
||||
#define SIOCGIFMTU IP_SIOCGIFMTU
|
||||
#define SIOCSIFMTU IP_SIOCSIFMTU
|
||||
#define SIOCGIFLLADDR IP_SIOCGIFLLADDR
|
||||
#define SIOCSIFLLADDR IP_SIOCSIFLLADDR
|
||||
#define SIOCGIFHWADDR IP_SIOCGIFHWADDR /* linux API */
|
||||
#define SIOCSIFHWADDR IP_SIOCSIFLLADDR /* linux API */
|
||||
#define SIOCGIFCONF IP_SIOCGIFCONF
|
||||
|
||||
/* IPNET ioctl */
|
||||
#ifdef IPNET
|
||||
#define SIOCADDRT IP_SIOCADDRT
|
||||
#define SIOCDDDRT IP_SIOCDDDRT
|
||||
|
||||
#define SIOCGIFMETRIC IP_SIOCGIFMETRIC
|
||||
#define SIOCSIFMETRIC IP_SIOCSIFMETRIC
|
||||
#define SIOCSIFRTAB IP_SIOCSIFRTAB
|
||||
#define SIOCGIFRTAB IP_SIOCGIFRTAB
|
||||
#ifndef SIOCGETTUNNEL
|
||||
#define SIOCGETTUNNEL IP_SIOCGETTUNNEL
|
||||
#endif
|
||||
#ifndef SIOCCHGTUNNEL
|
||||
#define SIOCCHGTUNNEL IP_SIOCCHGTUNNEL
|
||||
#endif
|
||||
#define SIOCIFCREATE IP_SIOCIFCREATE
|
||||
#define SIOCIFDESTROY IP_SIOCIFDESTROY
|
||||
#define SIOCGIFINDEX IP_SIOCGIFINDEX
|
||||
#define SIOCGIFNAME IP_SIOCGIFNAME
|
||||
#define SIOCGIFTXQLEN IP_SIOCGIFTXQLEN
|
||||
#define SIOCSIFTXQLEN IP_SIOCSIFTXQLEN
|
||||
#define SIOCSIFNAME IP_SIOCSIFNAME
|
||||
#define SIOCSIFHWBROADCAST IP_SIOCSIFHWBROADCAST
|
||||
#define SIOCADDMULTI IP_SIOCADDMULTI
|
||||
#define SIOCDELMULTI IP_SIOCDELMULTI
|
||||
|
||||
#endif /* IPNET */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: stat.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/stat.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_STAT_H
|
||||
#define IP_SYS_STAT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_file.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define S_ISDIR IP_S_ISDIR
|
||||
#define S_ISREG IP_S_ISREG
|
||||
|
||||
#define S_IFMT IP_S_IFMT
|
||||
#define S_IFDIR IP_S_IFDIR
|
||||
#define S_IFREG IP_S_IFREG
|
||||
#define S_IFBLK IP_S_IFBLK
|
||||
#define S_IFLNK IP_S_IFLNK
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define stat ipcom_stat
|
||||
#define fstat ipcom_fstat
|
||||
#define umask ipcom_umask
|
||||
|
||||
#define chmod(a1,a2) ipcom_chmod(a1,a2)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK API HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: sysctl.h,v $ $Revision: 1.6 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/sysctl.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SYSCTL_H
|
||||
#define IP_SYS_SYSCTL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sysctl.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* CTL_X */
|
||||
#define CTL_MAXNAME IP_CTL_MAXNAME
|
||||
#define CTL_NET IP_CTL_NET
|
||||
#define IPCTL_FORWARDING IP_IPCTL_FORWARDING
|
||||
#define IP6CTL_FORWARDING IP_IPV6CTL_FORWARDING
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define sysctl ipcom_sysctl
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: syslog.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/syslog.h,v $
|
||||
* $Author: lob $ $Date: 2010-12-16 11:02:03 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SYSLOG_H
|
||||
#define IP_SYS_SYSLOG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "stdarg.h"
|
||||
|
||||
#include "ipcom_syslog.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define LOG_DAEMON IPCOM_LOG_DAEMON
|
||||
|
||||
#define LOG_CONS IP_LOG_CONS
|
||||
#define LOG_PID IP_LOG_PID
|
||||
#define LOG_NDELAY 0
|
||||
|
||||
#define LOG_EMERG IPCOM_LOG_EMERG
|
||||
#define LOG_ALERT IPCOM_LOG_CRIT
|
||||
#define LOG_CRIT IPCOM_LOG_CRIT
|
||||
#define LOG_ERR IPCOM_LOG_ERR
|
||||
#define LOG_WARNING IPCOM_LOG_WARNING
|
||||
#define LOG_NOTICE IPCOM_LOG_NOTICE
|
||||
#define LOG_INFO IPCOM_LOG_INFO
|
||||
#define LOG_DEBUG IPCOM_LOG_DEBUG
|
||||
|
||||
#define LOG_KERN IPCOM_LOG_INFO
|
||||
#define LOG_USER IPCOM_LOG_INFO
|
||||
#define LOG_MAIL IPCOM_LOG_INFO
|
||||
#define LOG_AUTH IPCOM_LOG_INFO
|
||||
#define LOG_SYSLOG IPCOM_LOG_INFO
|
||||
#define LOG_LPR IPCOM_LOG_INFO
|
||||
#define LOG_NEWS IPCOM_LOG_INFO
|
||||
#define LOG_UUCP IPCOM_LOG_INFO
|
||||
#define LOG_CRON IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL0 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL1 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL2 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL3 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL4 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL5 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL6 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL7 IPCOM_LOG_INFO
|
||||
|
||||
|
||||
#define LOG_MASK IPCOM_LOG_UPTO /* A noop */
|
||||
#define LOG_UPTO IPCOM_LOG_UPTO /* Not provided */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef IPCOM_USE_SYSLOG
|
||||
#define openlog ipcom_openlog
|
||||
#define closelog ipcom_closelog
|
||||
#define syslog ipcom_syslog
|
||||
#define setlogmask(pm) ipcom_setlogmask_on(pm, 0)
|
||||
|
||||
#elif defined(IPCOM_SYSLOG)
|
||||
#define openlog(a,b,c) IP_NOOP
|
||||
#define closelog() IP_NOOP
|
||||
#define syslog IPCOM_SYSLOG
|
||||
#define setlogmask(pm) IP_NOOP
|
||||
|
||||
#else
|
||||
#define openlog(a,b,c) IP_NOOP
|
||||
#define closelog() IP_NOOP
|
||||
#define syslog ipcom_syslog /* should be a no-op. how? */
|
||||
#define setlogmask(pm) IP_NOOP
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: time.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/time.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_TIME_H
|
||||
#define IP_SYS_TIME_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_time.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define ITIMER_REAL 0
|
||||
#define ITIMER_VIRTUAL 1
|
||||
#define ITIMER_PROF 2
|
||||
|
||||
# define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
||||
|
||||
# define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
|
||||
|
||||
# define timercmp(a, b, CMP) \
|
||||
(((a)->tv_sec == (b)->tv_sec) ? \
|
||||
((a)->tv_usec CMP (b)->tv_usec) : \
|
||||
((a)->tv_sec CMP (b)->tv_sec))
|
||||
|
||||
# define timeradd(a, b, result) \
|
||||
do { \
|
||||
(result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
|
||||
(result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
|
||||
if ((result)->tv_usec >= 1000000) { \
|
||||
++(result)->tv_sec; \
|
||||
(result)->tv_usec -= 1000000; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
# define timersub(a, b, result) \
|
||||
do { \
|
||||
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
|
||||
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
|
||||
if ((result)->tv_usec < 0) { \
|
||||
--(result)->tv_sec; \
|
||||
(result)->tv_usec += 1000000; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define timezone Ip_timezone
|
||||
|
||||
struct Ip_itimerval {
|
||||
struct Ip_timeval it_interval; /* timer interval */
|
||||
struct Ip_timeval it_value; /* current value */
|
||||
};
|
||||
#define itimerval Ip_itimerval
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
int ipk_getitimer(int which, struct Ip_itimerval *value);
|
||||
#define getitimer ipk_getitimer
|
||||
|
||||
int ipk_setitimer(int which, const struct Ip_itimerval *value, struct Ip_itimerval *ovalue);
|
||||
#define setitimer ipk_setitimer
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#ifdef timezone
|
||||
#undef timezone
|
||||
#endif
|
||||
struct timezone
|
||||
{
|
||||
int tz_minuteswest; /* minutes W of Greenwich */
|
||||
int tz_dsttime; /* type of dst correction */
|
||||
};
|
||||
extern int daylight;
|
||||
extern long timezone;
|
||||
|
||||
#ifdef setitimer
|
||||
#undef setitimer
|
||||
#endif
|
||||
#define setitimer(w,v,o) ipnetsnmp_setitimer(w,v,o)
|
||||
IP_PUBLIC int ipnetsnmp_setitimer(int which, const struct Ip_itimerval *value, struct Ip_itimerval *ovalue);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: timeb.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/timeb.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_TIMEB_H
|
||||
#define IP_SYS_TIMEB_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "sys/time.h"
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_time.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: times.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/times.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_TIMES_H
|
||||
#define IP_SYS_TIMES_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_time.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define tms Ip_tms
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define times(a1) ipcom_times(a1)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: types.h,v $ $Revision: 1.9 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/types.h,v $
|
||||
* $Author: markus $ $Date: 2010-08-30 11:26:41 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_TYPES_H
|
||||
#define IP_SYS_TYPES_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_sock.h"
|
||||
#include "ipcom_file.h"
|
||||
|
||||
#ifdef IPCRYPTO
|
||||
#include <e_os.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPXINC_RELEASE 60000
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL IP_NULL
|
||||
#endif
|
||||
|
||||
/* typedef Ip_size_t size_t; */ /* to trick autoconf */
|
||||
#define size_t Ip_size_t
|
||||
|
||||
typedef Ip_ssize_t ssize_t; /* to trick autoconf */
|
||||
#define ssize_t Ip_ssize_t
|
||||
|
||||
#define time_t Ip_time_t
|
||||
|
||||
typedef Ip_pid_t pid_t; /* to trick autoconf */
|
||||
#define pid_t Ip_pid_t
|
||||
|
||||
typedef Ip_off_t off_t; /* to trick autoconf */
|
||||
#define off_t Ip_off_t
|
||||
|
||||
typedef Ip_mode_t mode_t; /* to trick autoconf */
|
||||
#define mode_t Ip_mode_t
|
||||
|
||||
#define clock_t Ip_clock_t
|
||||
|
||||
#ifndef _HNTOHLS_STUFF_
|
||||
#define _HNTOHLS_STUFF_
|
||||
#define ntohl ip_ntohl
|
||||
#define ntohs ip_ntohs
|
||||
#define htonl ip_htonl
|
||||
#define htons ip_htons
|
||||
#endif
|
||||
|
||||
#define double Ip_double
|
||||
|
||||
typedef Ip_u32 uid_t; /* user id */
|
||||
typedef Ip_u32 gid_t; /* group id */
|
||||
|
||||
|
||||
#ifndef __BIT_TYPES_DEFINED__
|
||||
#define __BIT_TYPES_DEFINED__
|
||||
typedef Ip_u8 u_char;
|
||||
typedef Ip_u8 u_int8_t;
|
||||
typedef Ip_u8 uint8_t;
|
||||
typedef Ip_u16 u_int16_t;
|
||||
typedef Ip_u16 uint16_t;
|
||||
typedef Ip_u32 u_int32_t;
|
||||
typedef Ip_u32 uint32_t;
|
||||
typedef Ip_u64 uint64_t;
|
||||
typedef char * caddr_t; /* core address */
|
||||
typedef Ip_u16 u_short;
|
||||
typedef unsigned int u_int;
|
||||
typedef Ip_u32 u_long;
|
||||
typedef Ip_s32 int32_t;
|
||||
#endif
|
||||
|
||||
typedef Ip_u16 __u16;
|
||||
|
||||
typedef Ip_socklen_t socklen_t; /* to trick autoconf */
|
||||
#define socklen_t Ip_socklen_t
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: uio.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/uio.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_UIO_H
|
||||
#define IP_SYS_UIO_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_sock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define iovec Ip_iovec
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: un.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/un.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_UN_H
|
||||
#define IP_SYS_UN_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: utsname.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/utsname.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_UTSNAME_H
|
||||
#define IP_SYS_UTSNAME_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define utsname Ip_utsname
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define uname(buf) ipcom_uname(buf)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: wait.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/wait.h,v $
|
||||
* $Author: lob $ $Date: 2006-04-10 11:03:29 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_WAIT_H
|
||||
#define IP_SYS_WAIT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_type.h"
|
||||
#include "ipcom_cstyle.h"
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define WNOHANG 1
|
||||
#define WUNTRACED 2
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define waitpid(p,s,o) ipnetsnmp_waitpid(p,s,o)
|
||||
IP_PUBLIC Ip_pid_t ipnetsnmp_waitpid(Ip_pid_t pid, int *status, int options);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: syslog.h,v $ $Revision: 1.1.1.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/syslog.h,v $
|
||||
* $Author: lob $ $Date: 2004-08-19 08:55:27 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYSLOG_H
|
||||
#define IP_SYSLOG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/syslog.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: time.h,v $ $Revision: 1.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/time.h,v $
|
||||
* $Author: lob $ $Date: 2005-12-20 13:41:12 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_TIME_H
|
||||
#define IP_TIME_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
#include "sys/time.h"
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_time.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define timeval Ip_timeval
|
||||
#define tm Ip_tm
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if defined(IPCOM_GETTIMEOFDAY) && IPCOM_GETTIMEOFDAY == 1
|
||||
#define gettimeofday(t,n) ipcom_gettimeofday(t,n)
|
||||
#elif defined(IPCOM_GETTIMEOFDAY)
|
||||
#define gettimeofday(t,n) IPCOM_GETTIMEOFDAY(t,n)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_SETTIMEOFDAY) && IPCOM_SETTIMEOFDAY == 1
|
||||
#define settimeofday(t,n) ipcom_settimeofday(t,n)
|
||||
#elif defined(IPCOM_SETTIMEOFDAY)
|
||||
#define settimeofday(t,n) IPCOM_SETTIMEOFDAY(t,n)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_MICROTIME) && IPCOM_MICROTIME == 1
|
||||
#define microtime(t) ipcom_microtime(t)
|
||||
#elif defined(IPCOM_MICROTIME)
|
||||
#define microtime(t) IPCOM_MICROTIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_CLOCK) && IPCOM_CLOCK == 1
|
||||
#define clock ipcom_clock
|
||||
#elif defined(IPCOM_CLOCK)
|
||||
#define clock IPCOM_CLOCK
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_TIME) && IPCOM_TIME == 1
|
||||
#define time(t) ipcom_time(t)
|
||||
#elif defined(IPCOM_TIME)
|
||||
#define time(t) IPCOM_TIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_STRFTIME) && IPCOM_STRFTIME == 1
|
||||
#define strftime(b,m,f,t) ipcom_strftime(b,m,f,t)
|
||||
#elif defined(IPCOM_STRFTIME)
|
||||
#define strftime(b,m,f,t) IPCOM_STRFTIME(b,m,f,t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_GMTIME) && IPCOM_GMTIME == 1
|
||||
#define gmtime(t) ipcom_gmtime(t)
|
||||
#elif defined(IPCOM_GMTIME)
|
||||
#define gmtime(t) IPCOM_GMTIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_GMTIME_R) && IPCOM_GMTIME_R == 1
|
||||
#define gmtime_r(tp,tm) ipcom_gmtime_r(tp,tm)
|
||||
#elif defined(IPCOM_GMTIME_R)
|
||||
#define gmtime_r(tp,tm) IPCOM_GMTIME_R(tp,tm)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_LOCALTIME) && IPCOM_LOCALTIME == 1
|
||||
#define localtime(t) ipcom_localtime(t)
|
||||
#elif defined(IPCOM_LOCALTIME)
|
||||
#define localtime(t) IPCOM_LOCALTIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_LOCALTIME_R) && IPCOM_LOCALTIME_R == 1
|
||||
#define localtime_r(tp,tm) ipcom_localtime_r(tp,tm)
|
||||
#elif defined(IPCOM_LOCALTIME_R)
|
||||
#define localtime_r(tp,tm) IPCOM_LOCALTIME_R(tp,tm)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_TZSET) && IPCOM_TZSET == 1
|
||||
#define tzset ipcom_tzset
|
||||
#elif defined(IPCOM_TZSET)
|
||||
#define tzset IPCOM_TZSET
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_ASCTIME) && IPCOM_ASCTIME == 1
|
||||
#define asctime(t) ipcom_asctime(t)
|
||||
#elif defined(IPCOM_ASCTIME)
|
||||
#define asctime(t) IPCOM_ASCTIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_ASCTIME_R) && IPCOM_ASCTIME_R == 1
|
||||
#define asctime_r(tm,b) ipcom_asctime_r(tm,b)
|
||||
#elif defined(IPCOM_ASCTIME_R)
|
||||
#define asctime_r(tm,b) IPCOM_ASCTIME_R(tm,b)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_CTIME) && IPCOM_CTIME == 1
|
||||
#define ctime(t) ipcom_ctime(t)
|
||||
#elif defined(IPCOM_CTIME)
|
||||
#define ctime(t) IPCOM_CTIME(t)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_CTIME_R) && IPCOM_CTIME_R == 1
|
||||
#define ctime_r(tp,b) ipcom_ctime_r(tp,b)
|
||||
#elif defined(IPCOM_CTIME_R)
|
||||
#define ctime_r(tp,b) IPCOM_CTIME_R(tp,b)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_MKTIME) && IPCOM_MKTIME == 1
|
||||
#define mktime(t) ipcom_mktime(t)
|
||||
#elif defined(IPCOM_MKTIME)
|
||||
#define mktime(t) IPCOM_MKTIME(t)
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,193 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: unistd.h,v $ $Revision: 1.5.54.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/unistd.h,v $
|
||||
* $Author: svc-cmnet $ $Date: 2017-09-05 23:33:09 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_UNISTD_H
|
||||
#define IP_UNISTD_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPCOM_USE_CLIB_PROTO
|
||||
#include "ipcom_clib.h"
|
||||
#include "ipcom_os.h"
|
||||
#include "ipcom_file.h"
|
||||
#include "ipcom_sock2.h"
|
||||
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdarg.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* lseek
|
||||
*===========================================================================
|
||||
* whence values for lseek(2); renamed by POSIX 1003.1
|
||||
*/
|
||||
#define L_SET IP_SEEK_SET
|
||||
#define L_INCR IP_SEEK_CUR
|
||||
#define L_XTND IP_SEEK_END
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if defined(IPCOM_GETHOSTNAME) && IPCOM_GETHOSTNAME == 1
|
||||
#define gethostname(n,l) ipcom_gethostname(n,l)
|
||||
#elif defined(IPCOM_GETHOSTNAME)
|
||||
#define gethostname(n,l) IPCOM_GETHOSTNAME(n,l)
|
||||
#endif
|
||||
|
||||
#if defined(IPCOM_SETHOSTNAME) && IPCOM_SETHOSTNAME == 1
|
||||
#define sethostname(n,l) ipcom_sethostname(n,l)
|
||||
#elif defined(IPCOM_SETHOSTNAME)
|
||||
#define sethostname(n,l) IPCOM_SETHOSTNAME(n,l)
|
||||
#endif
|
||||
|
||||
#ifndef NETSNMP_INTERPEAK
|
||||
#define open(a,b,c) ipcom_fileopen(a,b,c)
|
||||
#endif
|
||||
|
||||
#if defined(GATED_INTERPEAK) || defined(IPCOM_SOCKETIO_DEFAULT)
|
||||
#define close(a1) ipcom_socketclose(a1)
|
||||
#define write(a1,a2,a3) ipcom_socketwrite(a1,a2,a3)
|
||||
#define read(a1,a2,a3) ipcom_socketread(a1,a2,a3)
|
||||
#else
|
||||
#define close(a1) ipcom_fileclose(a1)
|
||||
#define write(a1,a2,a3) ipcom_filewrite(a1,a2,a3)
|
||||
#define read(a1,a2,a3) ipcom_fileread(a1,a2,a3)
|
||||
#endif
|
||||
|
||||
#define mkdir(p,m) ipcom_mkdir(p,m)
|
||||
#define rmdir(p) ipcom_rmdir(p)
|
||||
#define chdir(p) ipcom_chdir(p)
|
||||
#define getcwd(b,s) ipcom_getcwd(b,s)
|
||||
#define unlink(p) ipcom_unlink(p)
|
||||
#define rename(o,n) ipcom_rename(o,n)
|
||||
|
||||
#define getpid ipcom_getpid
|
||||
|
||||
#define getuid ipcom_getuid
|
||||
#define geteuid ipcom_getuid
|
||||
#define getgid ipcom_getuid
|
||||
#define getegid ipcom_getuid
|
||||
|
||||
#define access(a1,a2) ipcom_access(a1,a2)
|
||||
|
||||
#define sleep(a1) ipcom_sleep(a1)
|
||||
|
||||
#define select(a1,a2,a3,a4,a5) ipcom_socketselect(a1,a2,a3,a4,a5)
|
||||
|
||||
extern unsigned int alarm (unsigned int);
|
||||
|
||||
#ifdef NETSNMP_INTERPEAK
|
||||
#define dup(o) ipnetsnmp_dup(o)
|
||||
IP_PUBLIC int ipnetsnmp_dup(int oldfd);
|
||||
|
||||
#define fork ipnetsnmp_fork
|
||||
IP_PUBLIC pid_t ipnetsnmp_fork(void);
|
||||
|
||||
#define pipe(f) ipnetsnmp_pipe(f)
|
||||
IP_PUBLIC int ipnetsnmp_pipe(int fildes[2]);
|
||||
|
||||
#define getdtablesize ipnetsnmp_getdtablesize
|
||||
IP_PUBLIC int ipnetsnmp_getdtablesize(void);
|
||||
|
||||
#define execv(p,a) ipnetsnmp_execv(p,a)
|
||||
IP_PUBLIC int ipnetsnmp_execv(const char *path, char *const argv[]);
|
||||
|
||||
#define usleep(u) ipnetsnmp_usleep(u)
|
||||
IP_PUBLIC void ipnetsnmp_usleep(unsigned long usec);
|
||||
|
||||
#define alarm(s) ipnetsnmp_alarm(s)
|
||||
IP_PUBLIC unsigned int ipnetsnmp_alarm(unsigned int seconds);
|
||||
|
||||
#define setgid(g) ipnetsnmp_setgid(g)
|
||||
IP_PUBLIC int ipnetsnmp_setgid(gid_t gid);
|
||||
|
||||
#define setgroups(s,l) ipnetsnmp_setgroups(s,l)
|
||||
IP_PUBLIC int ipnetsnmp_setgroups(size_t size, const gid_t *list);
|
||||
|
||||
#define setuid(u) ipnetsnmp_setuid(u)
|
||||
IP_PUBLIC int ipnetsnmp_setuid(uid_t uid);
|
||||
|
||||
#define setsid ipnetsnmp_setsid
|
||||
IP_PUBLIC pid_t ipnetsnmp_setsid(void);
|
||||
|
||||
#ifdef close
|
||||
#undef close
|
||||
#endif
|
||||
#define close(a1) ipnetsnmp_close(a1)
|
||||
IP_PUBLIC int ipnetsnmp_close(Ip_fd fd);
|
||||
|
||||
#ifdef write
|
||||
#undef write
|
||||
#endif
|
||||
#define write(a1,a2,a3) ipnetsnmp_write(a1,a2,a3)
|
||||
IP_PUBLIC Ip_ssize_t ipnetsnmp_write(Ip_fd fd, const void *buf, Ip_size_t nbytes);
|
||||
|
||||
#ifdef read
|
||||
#undef read
|
||||
#endif
|
||||
#define read(a1,a2,a3) ipnetsnmp_read(a1,a2,a3)
|
||||
IP_PUBLIC Ip_ssize_t ipnetsnmp_read(Ip_fd fd, void *buf, Ip_size_t nbytes);
|
||||
#endif /* #ifdef NETSNMP_INTERPEAK */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user