wvNetLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:31k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* wvNetLib.h - header file for WindView networking events */
  2. /* Copyright 1984 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,20feb01,ham  added declaration of wvNetInit() (SPR #63241).
  7. 01a,12jan00,spm  written
  8. */
  9. #ifndef __INCwvNetLibh
  10. #define __INCwvNetLibh
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include "private/eventP.h"  /* Macros for testing WindView status. */
  15. #include "private/wvNetEventP.h"  /* Macros to generate networking events. */
  16. typedef struct eventmask
  17.     {
  18.     UCHAR bitmap [8];     /* Map indicating selection status of events. */
  19.     }
  20. EVENT_MASK;
  21. IMPORT UCHAR wvNetLevel;
  22. IMPORT UCHAR wvNetFilterId;
  23. IMPORT EVENT_MASK * pWvNetEventMap;
  24. #define WV_NET_ID  0x30  /*  
  25.                                  * Arbitrary 8-bit prefix for 
  26.                                  * network subsystem events.
  27.                                  */
  28. /* 
  29.  * Class definitions - move to private/eventP.h when WindView 2.0 changes
  30.  * are visible with  tor2_0_x cspec. 
  31.  */
  32. #define WV_NET_CORE_CLASS 0x00000008  /* Core network events */
  33. #define WV_NET_AUX_CLASS 0x00000010  /* Auxiliary network events */
  34. #define NET_CORE_EVENT WV_NET_CORE_CLASS
  35. #define NET_AUX_EVENT WV_NET_AUX_CLASS
  36. /* 
  37.  * The WV_BLOCK_START macro prevents wasted cycles by determining if
  38.  * WindView is running and if the given class has been selected. It
  39.  * provides a header before any code which reports network events to
  40.  * WindView. The classId is either NET_CORE_EVENT or NET_AUX_EVENT.
  41.  */
  42. #define WV_BLOCK_START(classId)    
  43.     if (ACTION_IS_SET)    
  44.         {    
  45.         if (WV_EVTCLASS_IS_SET (classId | WV_ON))    
  46.             {
  47. /*
  48.  * The WV_BLOCK_END provides a footer for all code which reports network
  49.  * events to WindView. It closes the open scopes caused by WV_BLOCK_START.
  50.  * The classId parameter is not used, but is included for symmetry.
  51.  */
  52. #define WV_BLOCK_END(classId)    
  53.             }    
  54.         }
  55. /*
  56.  * The WV_NET_ADDR_FILTER_TEST and WV_NET_PORT_FILTER_TEST macros will check 
  57.  * the given data against predefined address or port numbers by calling the
  58.  * appropriate routine. Each macro is only valid within a test conditional.
  59.  */
  60. #define WV_NET_ADDR_FILTER_TEST(filterType,targetType,srcAddr,dstAddr) 
  61.     wvNetAddressFilterTest (filterType, targetType, srcAddr, dstAddr)
  62. #define WV_NET_PORT_FILTER_TEST(filterType, srcPort, dstPort) 
  63.     wvNetPortFilterTest (filterType, srcPort, dstPort)
  64. /* 
  65.  * The WV_NET_EVENT_SET macro constructs a WindView event identifier using 
  66.  * the following structure:
  67.  *
  68.  * <Component ID>:<Module ID>:<Level ID>:<Status>:<Filter ID>:<Event Tag>
  69.  *    (8 bits)      (8 bits)   (4 bits)  (2 bits)   (2 bits)   (8 bits)
  70.  *
  71.  * The first 20 bits are intended for use when instrumenting any VxWorks
  72.  * module. The three fields indicate the VxWorks subsystem, library, and 
  73.  * event priority values. The component ID is a fixed value for all networking 
  74.  * code, and the remaining two fields use the constants defined below. The 
  75.  * final 12 bits apply specifically to networking events. The first two fields
  76.  * encode the transmission direction and packet filter for the event, if 
  77.  * applicable. The packet filter type is assigned using a local variable
  78.  * defined within each module. The final field is a unique identifier for 
  79.  * each event within a given module. Currently, this organization of event 
  80.  * identifiers is ignored by the host-based parser, but it may be used for 
  81.  * refined event filtering someday.
  82.  *
  83.  * The resulting event identifier is stored in the ULONG variable wvNetEventId.
  84.  * It is only valid in a scope where that variable exists. The macro also 
  85.  * references variables for the "Module ID" and "Filter ID" fields so that the 
  86.  * parameters only supply values for the event priority, transmission 
  87.  * direction and event tag, all of which change frequently.
  88.  */
  89. #define WV_NET_EVENT_SET(eventLevel,status,tag)    
  90.     wvNetEventId = (WV_NET_ID << 24) | (wvNetModuleId << 16) 
  91.                    | (eventLevel << 12) | (status << 10) 
  92.                    | (wvNetLocalFilter << 8) | tag
  93. /* 
  94.  * The WV_NET_MARKER_SET macro constructs identifiers for events which do
  95.  * not involve data transfer. It is a special case of the WV_NET_EVENT_SET
  96.  * macro which omits one parameter since the transmission direction (i.e. - 
  97.  * status) field is always 0.
  98.  */
  99. #define WV_NET_MARKER_SET(eventLevel,tag)    
  100.     wvNetEventId = (WV_NET_ID << 24) | (wvNetModuleId << 16) 
  101.                    | (eventLevel << 12) | (wvNetLocalFilter << 8) | tag
  102. #define WV_NET_NONE  0  /* Placeholder for any unused event fields. */
  103. /* 8-bit component identifiers (unused alternatives to WV_NET_ID). */
  104. #define WV_NET_CORE_BLOCK  0  /* Unscalable network processing. */
  105. #define WV_NET_ICMP_BLOCK  1  /* ICMP protocol */
  106. #define WV_NET_IGMP_BLOCK  2  /* IGMP protocol */
  107. #define WV_NET_UDP_BLOCK  3  /* UDP protocol */
  108. #define WV_NET_TCP_BLOCK  4  /* TCP protocol */
  109. /* 8-bit module identifiers */
  110.     /* module identifiers for netinet directory */
  111. #define WV_NET_IF_MODULE  0  /* if.c source file */
  112. #define WV_NET_IFETHER_MODULE  1  /* if_ether.c source file */
  113. #define WV_NET_IFSUBR_MODULE  2  /* if_subr.c source file */
  114. #define WV_NET_IGMP_MODULE  3  /* igmp.c source file */
  115. #define WV_NET_IN_MODULE  4  /* in.c source file */
  116. #define WV_NET_INCKSUM_MODULE  5  /* in_cksum.c source file */
  117. #define WV_NET_INPCB_MODULE  6  /* in_pcb.c source file */
  118. #define WV_NET_INPROTO_MODULE  7  /* in_proto.c source file */
  119. #define WV_NET_IPICMP_MODULE  8  /* ip_icmp.c source file */
  120. #define WV_NET_IPINPUT_MODULE  9  /* ip_input.c source file */
  121. #define WV_NET_IPMROUTE_MODULE  10  /* ip_mroute.c source file */
  122. #define WV_NET_IPOUTPUT_MODULE  11  /* ip_output.c source file */
  123. #define WV_NET_RADIX_MODULE  12  /* radix.c source file */
  124. #define WV_NET_RAWCB_MODULE  13  /* raw_cb.c source file */
  125. #define WV_NET_RAWIP_MODULE  14  /* raw_ip.c source file */
  126. #define WV_NET_RAWREQ_MODULE  15  /* raw_usrreq.c source file */
  127. #define WV_NET_ROUTE_MODULE  16  /* route.c source file */
  128. #define WV_NET_RTSOCK_MODULE  17  /* rtsock.c source file */
  129. #define WV_NET_SLCOMP_MODULE  18  /* sl_compress.c source file */
  130. #define WV_NET_SYSSOCK_MODULE  19  /* sys_socket.c source file */
  131. #define WV_NET_TCPDEBUG_MODULE  20  /* tcp_debug.c source file */
  132. #define WV_NET_TCPINPUT_MODULE  21  /* tcp_input.c source file */
  133. #define WV_NET_TCPOUT_MODULE  22  /* tcp_output.c source file */
  134. #define WV_NET_TCPSUBR_MODULE  23  /* tcp_subr.c source file */
  135. #define WV_NET_TCPTIMER_MODULE  24  /* tcp_timer.c source file */
  136. #define WV_NET_TCPREQ_MODULE  25  /* tcp_usrreq.c source file */
  137. #define WV_NET_UDPREQ_MODULE  26  /* udp_usrreq.c source file */
  138. #define WV_NET_UIDOM_MODULE  27  /* uipc_dom.c source file */
  139. #define WV_NET_UIMBUF_MODULE  28  /* uipc_mbuf.c source file */
  140. #define WV_NET_UISOCK_MODULE  29  /* uipc_sock.c source file */
  141. #define WV_NET_UISOCK2_MODULE  30  /* uipc_sock2.c source file */
  142. #define WV_NET_UNIXLIB_MODULE  31  /* unixLib.c source file */
  143.     /* module identifiers for netwrs directory */
  144. #define WV_NET_IPPROTO_MODULE  32  /* ipProto.c source file */
  145. /* 
  146.  * 4-bit level identifiers for event priority. The user can block
  147.  * all event reporting even if WindView is active and a network class
  148.  * is set by specifying the WV_NET_NONE constant in a call to the
  149.  * wvNetLevelSet() routine. That "priority" is not used by any events.
  150.  */
  151. #define WV_NET_EMERGENCY  1
  152. #define WV_NET_ALERT  2
  153. #define WV_NET_CRITICAL  3
  154. #define WV_NET_ERROR  4
  155. #define WV_NET_WARNING  5
  156. #define WV_NET_NOTICE  6
  157. #define WV_NET_INFO  7
  158. #define WV_NET_VERBOSE  8
  159. /* Data transfer status (WV_NET_NONE is used if not applicable). */
  160. #define WV_NET_SEND  1
  161. #define WV_NET_RECV  2
  162. /* OSI protocol layer for event (WV_NET_NONE is used for other processing). */
  163. #define WV_NET_NETWORK  1
  164. #define WV_NET_TRANSPORT  2
  165. #define WV_NET_SESSION  3
  166. #define WV_NET_APP  4
  167. /* Packet filter for event (or WV_NET_NONE if unfiltered). */
  168. #define WV_NET_SADDR_FILTER  1 /* Source address comparison */
  169. #define WV_NET_DADDR_FILTER  2  /* Destination address comparison */
  170. #define WV_NET_SPORT_FILTER  3  /* Source port comparison */
  171. #define WV_NET_DPORT_FILTER  4  /* Destination port comparison */
  172. #define WV_NET_SOCK_FILTER  5  /* Socket value comparison */
  173. /* function declarations */
  174. #if defined(__STDC__) || defined(__cplusplus)
  175. extern void wvNetInit (void);
  176. extern void  wvNetEnable (int);
  177. extern void  wvNetDisable (void);
  178. #else /* __STDC__ */
  179. extern void wvNetInit ();
  180. extern void  wvNetEnable ();
  181. extern void  wvNetDisable ();
  182. #endif /* __STDC__ */
  183. /* 
  184.  * Individual Events. All events contain the integer parameter 
  185.  * wvNetEventId as their first argument. Additional parameters, 
  186.  * if any, are listed with each event.
  187.  */
  188. /* The following events are defined in if.c */
  189. #define WV_NETEVENT_IFINIT_START 20000      /* ID: 0x30008008 */
  190. #define WV_NETEVENT_IFRESET_START 20001     /* ID: 0x30008009 */
  191. #define WV_NETEVENT_IFATTACH_START 20002    /* ID: 0x3000800a */
  192.     /* Param:
  193.      *   struct ifnet * pIf
  194.      */
  195. #define WV_NETEVENT_IFDETACH_START 20003    /* ID: 0x3000800b */
  196.     /* Param:
  197.      *   struct ifnet * pIf
  198.      */
  199. #define WV_NETEVENT_IFAFREE_PANIC 20004    /* 0x30001001 */
  200. #define WV_NETEVENT_LINKRTREQ_FAIL 20005 /* ID: 0x30005005 */
  201. #define WV_NETEVENT_IFDOWN_START 20006   /* ID: 0x3000800c */
  202.     /* UINT32 pIf */
  203. #define WV_NETEVENT_IFUP_START 20007     /* ID: 0x3000800d */
  204.     /* UINT32 pIf */
  205. #define WV_NETEVENT_IFWATCHDOG 20008     /* 0x30007006 */
  206.     /* UINT32 pIf */
  207. #define WV_NETEVENT_IFIOCTL_START 20009 /* 0x30007007 */
  208.     /* UINT32 sockFd
  209.     UINT32 command */
  210. #define WV_NETEVENT_IFIOCTL_BADIFNAME 20010 /* 0x30004003 */
  211.     /* UINT32 sockFd
  212.     UINT32 command */
  213. #define WV_NETEVENT_IFIOCTL_NOPROTO 20011   /* 0x30004004 */
  214.     /* UINT32 sockFd
  215.     UINT32 command */
  216. #define WV_NETEVENT_IFPROMISC_START 20012   /* 0x3000800e */
  217.     /* UINT32 pIf
  218.     UINT32 setting */
  219. #define WV_NETEVENT_IFPROMISC_FAIL 20013    /* 0x30003002 */
  220.     /* UINT32 pIf
  221.     UINT32 setting */
  222. /* The following events are defined in if_ether.c */
  223. #define WV_NETEVENT_ARPTIMER_FREE 20014     /* 0x3001700f */
  224. #define WV_NETEVENT_ARPRTREQ_START 20015    /* 0x30018011 */
  225.     /* UINT32 request */
  226. #define WV_NETEVENT_ARPRTREQ_BADGATE 20016  /* 0x30015008 */
  227.     /* UINT32 gateFamily
  228.     UINT32 gateLength */
  229. #define WV_NETEVENT_ARPRTREQ_FAIL 20017     /* 0x30011001 */
  230. #define WV_NETEVENT_ARPREQ_SEND 20018      /* 0x30018012 */
  231. #define WV_NETEVENT_ARPREQ_FAIL 20019       /* 0x30011402 */
  232. #define WV_NETEVENT_ARPRESOLV_START 20020   /* 0x30018013 */
  233.     /* UINT32 destAddr */
  234. #define WV_NETEVENT_ARPLOOK_FAIL 20021      /* 0x30011003 */
  235.     /* UINT32 destAddr */
  236. #define WV_NETEVENT_ARPINTR_START 20022     /* 0x30018014 */
  237. #define WV_NETEVENT_ARPINTR_FAIL 20023      /* 0x300111004 */
  238. #define WV_NETEVENT_ARPIN_START 20024       /* 0x3001680c */
  239. #define WV_NETEVENT_ARPIN_BADADDR 20025     /* 0x30015809 */
  240.     /* UINT32 srcAddr */
  241. #define WV_NETEVENT_ARPIN_BADADDR2 20026    /* 0x3001580a */
  242.     /* UINT32 srcAddr */
  243. #define WV_NETEVENT_ARPIN_BADADDR3 20027    /* 0x3001580b */
  244.     /* UINT32 srcAddr */
  245.    
  246. #define WV_NETEVENT_ARPIN_DELAYEDSEND 20028  /* 0x3001640d */
  247.     /* UINT32 dstAddr */
  248. #define WV_NETEVENT_ARPIN_REPLYSEND 20029    /* 0x3001640e */
  249.     /* UINT32 srcAddr
  250.     UINT32 dstAddr */
  251. #define WV_NETEVENT_ARPTFREE_PANIC 20030     /* 0x30011005 */
  252. #define WV_NETEVENT_ARPIOCTL_NOTSUPP 20031   /* 0x30014007 */
  253.     /* UINT32 wvNetEventId
  254.     UINT32 reqProtoFamily
  255.     UINT32 reqHwFamily */
  256. #define WV_NETEVENT_ARPIOCTL_START 20032     /* 0x30017010 */
  257.     /* UINT32 request */
  258. #define WV_NETEVENT_ARPIOCTL_SEARCHFAIL 20033  /* 0x30013006 */
  259.     /* UINT32 request
  260.     UINT32 ipAddr */
  261. /* The following events are defined in if_subr.c */
  262. #define WV_NETEVENT_ETHEROUT_IFDOWN 20034    /* 0x30023003 */
  263.     /* UINT32 pIf */
  264. #define WV_NETEVENT_ETHEROUT_NOROUTE 20035   /* 0x30023005 */
  265.     /* UINT32 ipAddr */
  266. #define WV_NETEVENT_ETHEROUT_RTREJECT 20036  /* 0x30023006 */
  267. #define WV_NETEVENT_ETHEROUT_NOBUFS 20037    /* 0x30023004 */
  268. #define WV_NETEVENT_ETHEROUT_AFNOTSUPP 20038  /* 0x30024007 */
  269.     /* UINT32 addrFamily */
  270. #define WV_NETEVENT_ETHEROUT_FINISH 20039    /* 0x3002600c */
  271.     /* UINT32 pIf
  272.     UINT32 result */
  273. #define WV_NETEVENT_ETHERIN_START 20040      /* 0x3002600d */
  274.     /* UINT32 pIf */
  275. #define WV_NETEVENT_ETHERIFATTACH_START 20041  /* 0x3002800e */
  276.     /* UINT32 pIf */
  277. #define WV_NETEVENT_ADDMULT_START 20042    /* 0x3002800f */
  278.     /* UINT32 pIf */
  279. #define WV_NETEVENT_ADDMULT_AFNOTSUPP 20043   /* 0x30024008 */
  280.     /* UINT32 addrFamily */
  281. #define WV_NETEVENT_ADDMULT_BADADDR 20044   /* 0x30024009 */
  282.     /* UINT32 pIf */
  283. #define WV_NETEVENT_ADDMULT_NOBUFS 20045    /*  0x30021001 */
  284. #define WV_NETEVENT_DELMULT_START 20046   /* 0x30028010 */
  285.     /* UINT32 pIf */
  286. #define WV_NETEVENT_DELMULT_AFNOTSUPP 20047 /* 0x3002400a */
  287.     /* UINT32 addrFamily */
  288. #define WV_NETEVENT_DELMULT_BADADDR 20048 /* 0x3002400b */
  289.     /* UINT32 pIf */
  290. #define WV_NETEVENT_ETHERATTACH_START 20049  /* 0x30028011 */
  291.     /* UINT32 pIf */
  292. #define WV_NETEVENT_TYPEADD_FAIL 20050 /* 0x30021002 */
  293.     /* UINT32 etherType */
  294. /* The following events are defined in igmp.c */
  295. #define WV_NETEVENT_IGMPINIT_START 20051 /* 0x30038008 */
  296. #define WV_NETEVENT_IGMPIN_SHORTMSG 20052 /* 0x30033802 */
  297. #define WV_NETEVENT_IGMPIN_BADSUM 20053 /* 0x30033803 */
  298. #define WV_NETEVENT_IGMPIN_BADADDR 20054 /* 0x30035804 */
  299.     /* UINT32 igmpType
  300.     UINT32 ipAddr */
  301. #define WV_NETEVENT_IGMPIN_FINISH 20055   /* 0x30036805 */
  302.     /* UINT32 srcAddr
  303.     UINT32 dstAddr */
  304. #define WV_NETEVENT_IGMPJOIN_START 20056  /* 0x30038009 */
  305. #define WV_NETEVENT_IGMPLEAVE_START 20057  /* 0x3003800a */
  306. #define WV_NETEVENT_IGMPFASTTIMER_START 20058 /* 0x30037007 */
  307. #define WV_NETEVENT_IGMPSENDREP_NOBUFS 20059  /* 0x30031001 */
  308. #define WV_NETEVENT_IGMPSENDREP_FINISH 20060  /* 0x30036406 */
  309.     /* UINT32 dstAddr */
  310. /* The following events are defined in in.c */
  311. #define WV_NETEVENT_INCTRL_START 20061  /* 0x30048007 */
  312.     /* UINT32 request */
  313.     
  314. #define WV_NETEVENT_INCTRL_SEARCHFAIL 20062 /* 0x30044004 */
  315.     /* UINT32 request
  316.     UINT32 pIf */
  317. #define WV_NETEVENT_INCTRL_BADSOCK 20063  /* 0x30045006 */
  318.     /* UINT32 request */
  319. #define WV_NETEVENT_INCTRL_PANIC 20064  /* 0x30041001 */
  320.     /* UINT32 request */
  321. #define WV_NETEVENT_INCTRL_NOBUFS 20065 /* 0x30041002 */
  322.     /* UINT32 request */
  323. #define WV_NETEVENT_INCTRL_BADFLAGS 20066 /* 0x30044005 */
  324.     /* UINT32 request
  325.     UINT32 pIf */
  326. #define WV_NETEVENT_INROUTEDEL_START 20067 /* 0x30048008 */
  327.     /* UINT32 pIf */
  328. #define WV_NETEVENT_INIFINIT_START 20068 /* 0x30048009 */
  329.     /* UINT32 pIf */
  330. #define WV_NETEVENT_INIFADDRDEL_START 20069 /* 0x3004800a */
  331. #define WV_NETEVENT_INADDMULT_START 20070   /* 0x3004800b */
  332.     /* UINT32 ipAddr
  333.     UINT32 pIf */
  334. #define WV_NETEVENT_INADDMULT_NOBUFS 20071 /* 0x30041003 */
  335.     /* UINT32 ipAddr
  336.     UINT32 pIf */
  337. #define WV_NETEVENT_INDELMULT_START 20072 /* 0x3004800c */
  338. /* The following events are defined in in_pcb.c */
  339. #define WV_NETEVENT_PCBALLOC_NOBUFS 20073 /* 0x30061001 */
  340.     /* UINT32 sockNum */
  341. #define WV_NETEVENT_PCBBIND_NOADDR 20074 /* 0x30064002 */
  342.     /* UINT32 sockNum */
  343. #define WV_NETEVENT_PCBBIND_BADSOCK 20075 /* 0x30064003 */
  344.     /* UINT32 sockNum
  345.     UINT32 localAddr
  346.     UINT32 localPort */
  347. #define WV_NETEVENT_PCBBIND_BADADDRLEN 20076 /* 0x30064004 */
  348.     /* UINT32 sockNum
  349.     UINT32 addrLen */
  350. #define WV_NETEVENT_PCBBIND_BADADDR 20077 /* 0x30064005 */
  351.     /* UINT32 sockNum
  352.     UINT32 destAddr */
  353. #define WV_NETEVENT_PCBBIND_BADPORT 20078 /* 0x30064006 */
  354.     /* UINT32 sockNum
  355.     UINT32 localPort */
  356. #define WV_NETEVENT_PCBLADDR_BADADDR 20079 /* 0x30064007 */
  357.     /* UINT32 sockNum
  358.     UINT32 addrLen
  359.     UINT32 addrFam
  360.     UINT32 addrPort */
  361. #define WV_NETEVENT_PCBLADDR_BADIF 20080  /* 0x30064008 */
  362.     /* UINT32 sockNum */
  363. #define WV_NETEVENT_PCBCONNECT_BADADDR 20081 /* 0x30064009 */
  364.     /* UINT32 sockNum
  365.     UINT32 destAddr
  366.     UINT32 localAddr
  367.     UINT32 localPort */
  368. #define WV_NETEVENT_TCPTIMER_ROUTEDROP 20082  /* 0x3006500a */
  369. #define WV_NETEVENT_PCBBIND_START 20083  /* 0x3006800b */
  370.     /* UINT32 sockNum */
  371. #define WV_NETEVENT_PCBCONNECT_START 20084 /* 0x3006800c */
  372.     /* UINT32 sockNum */
  373. #define WV_NETEVENT_PCBDISCONN_START 20085  /* 0x3006800d */
  374.     /* UINT32 sockNum */
  375. #define WV_NETEVENT_PCBNOTIFY_START 20086 /* 0x3006800e */
  376.     /* UINT32 request
  377.     UINT32 localAddr
  378.     UINT32 destAddr */
  379. /* The following events are defined in ip_icmp.c */
  380. /*
  381.  * The icmp_error routine might be classified as an emergency event,
  382.  * depending on the type of error detected. ICMP errors which are not 
  383.  * emergencies use the critical category for the identical event.
  384.  */ 
  385. #define WV_NETEVENT_ICMPERR_START 20087    /* 0x30081002 OR 0x30083002 */
  386.     /* UINT32 errType
  387.     UINT32 errCode */
  388. #define WV_NETEVENT_ICMPERR_PANIC 20088    /* 0x30081001 */
  389.     /* UINT32 errType */
  390. #define WV_NETEVENT_ICMPIN_SHORTMSG 20089  /* 0x30083803 */
  391. #define WV_NETEVENT_ICMPIN_BADSUM 20090  /* 0x30083804 */
  392. #define WV_NETEVENT_ICMPIN_BADLEN 20091  /* 0x30083805 */
  393.     /* UINT32 msgLen
  394.     UINT32 ipHdrLen */
  395. #define WV_NETEVENT_ICMPCTRL_BADLEN 20092 /* 0x30084006 */
  396.     /* UINT32 namelen */
  397. #define WV_NETEVENT_ICMPCTRL_BADCMD 20093 /* 0x30084007 */
  398.     /* UINT32 ctrlType */
  399. #define WV_NETEVENT_ICMPIN_START 20094  /* 0x30086808 */
  400. #define WV_NETEVENT_ICMPREFLECT_START 20095 /* 0x30086409 */
  401. #define WV_NETEVENT_ICMPSEND_START 20096 /* 0x3008640a */
  402. #define WV_NETEVENT_ICMPCTRL_START 20097 /* 0x3008700b */
  403.     /* UINT32 ctrlType */
  404. /* The following events are defined in ip_input.c */
  405. #define WV_NETEVENT_IPINIT_PANIC 20098 /* 0x30091001 */
  406. #define WV_NETEVENT_IPIN_PANIC 20099  /* 0x30091802 */
  407. #define WV_NETEVENT_IPIN_SHORTMSG 20100 /* 0x30093803 */
  408. #define WV_NETEVENT_IPIN_BADVERS 20101 /* 0x30093804 */
  409.     /* UINT32 version */
  410. #define WV_NETEVENT_IPIN_BADHLEN 20102 /* 0x30093805 */
  411.     /* UINT32 hdrLength */
  412. #define WV_NETEVENT_IPIN_BADSUM 20103 /* 0x30093806 */
  413. #define WV_NETEVENT_IPIN_BADLEN 20104 /* 0x30093807 */
  414.     /* UINT32 ipLength */
  415. #define WV_NETEVENT_IPIN_BADMBLK 20105 /* 0x30093808 */
  416.     /* UINT32 mblkLength */
  417. #define WV_NETEVENT_IPIN_BADOPT 20106 /* 0x30093809 */
  418.     /* UINT32 errType
  419.     UINT32 errCode */
  420. #define WV_NETEVENT_IPFWD_BADADDR 20107 /* 0x3009380a */
  421.     /* UINT32 dstAddr */
  422. #define WV_NETEVENT_IPCTRL_BADCMDLEN 20108 /* 0x3009400b */
  423.     /* UINT32 namelen */
  424. #define WV_NETEVENT_IPCTRL_BADCMD 20109 /* 0x3009400c */
  425.     /* UINT32 ctrlType */
  426. #define WV_NETEVENT_IPIN_FRAGDROP 20110 /* 0x3009580d */
  427.     /* UINT32 overlapFlag - address of fragment, or 0 if out of memory. */
  428. #define WV_NETEVENT_IPIN_FINISH 20111 /* 0x3009580e */
  429. #define WV_NETEVENT_IPFWD_STATUS 20112 /* 0x3009640f */
  430.     /* UINT32 result */
  431. #define WV_NETEVENT_IPIN_GOODMBLK 20113 /* 0x30097810 */
  432. #define WV_NETEVENT_IPFRAGFREE_START 20114 /* 0x30097011 */
  433. #define WV_NETEVENT_IPTIMER_FRAGFREE 20115 /* 0x30097012 */
  434. #define WV_NETEVENT_IPCTRL_START 20116 /* 0x30097013 */
  435.     /* UINT32 ctrlType */
  436. #define WV_NETEVENT_IPINIT_START 20117 /* 0x30098014 */
  437. /* The following events are defined in ip_mroute.c */
  438. #define WV_NETEVENT_ADDMRT_NOBUFS 20118  /* 0x300a1001 */
  439. #define WV_NETEVENT_IPMRT_NOTINIT 20119 /* 0x300a4002 */
  440. #define WV_NETEVENT_IPMRT_BADCMD 20120  /* 0x300a4003 */
  441.     /* UINT32 request */
  442. #define WV_NETEVENT_ADDVIF_BADINDEX 20121 /* 0x300a4004 */
  443. #define WV_NETEVENT_ADDVIF_BADENTRY 20122 /* 0x300a4005 */
  444.     /* UINT32 localAddr */
  445. #define WV_NETEVENT_ADDVIF_SEARCHFAIL 20123 /* 0x300a4006 */
  446.     /* UINT32 sockNum
  447.     UINT32 destAddr */
  448. #define WV_NETEVENT_ADDVIF_BADFLAGS 20124 /* 0x300a4007 */
  449.     /* UINT32 pIf */
  450. #define WV_NETEVENT_DELVIF_BADINDEX 20125   /* 0x300a4008 */
  451. #define WV_NETEVENT_DELVIF_BADENTRY 20126 /* 0x300a4009 */
  452.     /* UINT32 index */
  453. #define WV_NETEVENT_TUNNEL_STATUS 20127 /* 0x300a640a */
  454.     /* UINT32 result */
  455. #define WV_NETEVENT_PHYINT_STATUS 20128 /* 0x300a640b */
  456.     /* UINT32 result */
  457. #define WV_NETEVENT_IPMRT_START 20129 /* 0x300a700c */
  458.     /* UINT32 request */
  459. /* The following events are defined in ip_output.c */
  460. #define WV_NETEVENT_IPOUT_BADADDR 20130 /* 0x300b3401 */
  461.     /* UINT32 dstAddr */
  462. #define WV_NETEVENT_IPOUT_BADFLAGS 20131 /* 0x300b3402 */
  463.     /* UINT32 dstAddr */
  464. #define WV_NETEVENT_IPOUT_CANTFRAG 20132 /* 0x300b3403 */
  465.     /* UINT32 dstAddr
  466.        UINT32 pIf */
  467. #define WV_NETEVENT_IPOUT_SHORTMSG 20133 /* 0x300b3404 */
  468.     /* UINT32 dstAddr
  469.        UINT32 pIf */
  470. #define WV_NETEVENT_IPOUTCTRL_BADCMD 20134 /* 0x300b3405 */
  471.     /* UINT32 sockNum
  472.        UINT32 request */
  473. #define WV_NETEVENT_IPOUTCTRL_START 20135 /* 0x300b7006 */
  474.     /* UINT32 sockNum
  475.        UINT32 request */
  476. #define WV_NETEVENT_IPMLOOP_START 20136 /* 0x300b7807 */
  477. #define WV_NETEVENT_IPOUT_CACHEMISS 20294 /* 0x300b8408 */
  478. #define WV_NETEVENT_IPOUT_FINISH 20295 /* 0x300b4409 */
  479. #define WV_NETEVENT_IPOUT_SENDALL 20296 /* 0x300b740a */
  480. #define WV_NETEVENT_IPOUT_SENDFRAG 20297 /* 0x300b740b */
  481. /* The following events are defined in radix.c */
  482. #define WV_NETEVENT_RNINIT_PANIC 20137 /* ID: 0x300c1001 */
  483. #define WV_NETEVENT_RNADD_BADMASK 20138 /* ID: 0x300c2002 */
  484. #define WV_NETEVENT_RNADD_NOMASK 20139 /* ID: 0x300c2003 */
  485. #define WV_NETEVENT_RNADD_BADROUTE 20140 /* ID: 0x300c2004 */
  486. #define WV_NETEVENT_RNDEL_BADREFCNT 20141 /* ID: 0x300c2005 */
  487. #define WV_NETEVENT_RNDEL_BADMASK 20142 /* ID: 0x300c2006 */
  488. #define WV_NETEVENT_RNDEL_SEARCHFAIL 20143 /* ID: 0x300c2007 */
  489. #define WV_NETEVENT_RNDEL_KEYSEARCHFAIL 20144 /* ID: 0x300c2008 */
  490. #define WV_NETEVENT_RNDEL_EXTRAMASK 20145 /* ID: 0x300c2009 */
  491. /* The following events are defined in raw_cb.c */
  492. #define WV_NETEVENT_RAWATTACH_NOPCBMEM 20146 /* 0x300d3001 */
  493. #define WV_NETEVENT_RAWATTACH_NOSOCKBUFMEM 20147 /* 0x300d3002 */
  494. #define WV_NETEVENT_RAWBIND_NOIF 20148 /* 0x300d4003 */
  495. #define WV_NETEVENT_RAWATTACH_START 20149 /* 0x300d8004 */
  496. #define WV_NETEVENT_RAWDETACH_START 20150 /* 0x300d8005 */
  497. #define WV_NETEVENT_RAWBIND_START 20151   /* 0x300d8006 */
  498. /* The following events are defined in raw_ip.c */
  499. #define WV_NETEVENT_RAWIPREQ_PANIC 20152 /* 0x300e1001 */
  500. #define WV_NETEVENT_RAWCTLOUT_BADLEVEL 20153 /* 0x300e4002 */
  501. #define WV_NETEVENT_RAWCTLOUT_BADMEM 20154   /* 0x300e4003 */
  502. #define WV_NETEVENT_RAWIPREQ_FAIL 20155   /* 0x300e4004 */
  503. #define WV_NETEVENT_RAWIPIN_NOSOCK 20156 /* 0x300e4805 */
  504. #define WV_NETEVENT_RAWIPIN_LOST 20157 /* 0x300e5806 */
  505. #define WV_NETEVENT_RAWIPIN_START 20158 /* 0x300e6807 */
  506. #define WV_NETEVENT_RAWIPOUT_FINISH 20159   /* 0x300e6408 */
  507. #define WV_NETEVENT_RAWCTLOUT_START 20160  /* 0x300e7009 */
  508. #define WV_NETEVENT_RAWIPREQ_START 20161  /* 0x300e700a */
  509. #define WV_NETEVENT_RAWIPINIT_START 20162 /* 0x300e800b */
  510. /* The following events are defined in raw_usrreq.c */
  511. #define WV_NETEVENT_RAWREQ_PANIC 20163   /* 0x300f1001 */
  512. #define WV_NETEVENT_RAWREQ_FAIL 20164 /* 0x300f4002 */
  513. #define WV_NETEVENT_RAWIN_LOST 20165 /* 0x300f5803 */
  514. #define WV_NETEVENT_RAWIN_START 20166 /* 0x300f6804 */
  515. #define WV_NETEVENT_RAWCTLIN_START 20167 /* 0x300f7005 */
  516. #define WV_NETEVENT_RAWREQ_START 20168 /* 0x300f7006 */
  517. #define WV_NETEVENT_RAWINIT_START 20169 /* 0x300f8007 */
  518. /* The following events are defined in route.c */
  519. #define WV_NETEVENT_RTFREE_PANIC 20170 /* 0x30101001 */
  520. #define WV_NETEVENT_RTREQ_PANIC 20171 /* 0x30101002 */
  521. #define WV_NETEVENT_RTSET_NOBUFS 20172 /* 0x30101003 */
  522. #define WV_NETEVENT_RTFREE_BADREFCNT 20173 /* 0x30102004 */
  523. #define WV_NETEVENT_RTALLOC_SEARCHFAIL 20174 /* 0x30103005 */
  524. #define WV_NETEVENT_RTRESET_BADDEST 20175 /* 0x30103006 */
  525. #define WV_NETEVENT_RTREQ_BADROUTE 20176 /* 0x30103007 */
  526. #define WV_NETEVENT_RTIOCTL_BADREQ 20177 /* 0x30104008 */
  527. #define WV_NETEVENT_RTALLOC_CLONE 20178 /* 0x30107009 */
  528. #define WV_NETEVENT_RTALLOC_SEARCHGOOD 20179 /* 0x3010700a */
  529. #define WV_NETEVENT_RTFREE_START 20180 /* 0x3010700b */
  530. #define WV_NETEVENT_RTIOCTL_START 20181 /* 0x3010700c */
  531. #define WV_NETEVENT_ROUTEINIT_START 20182 /* 0x3010800d */
  532. #define WV_NETEVENT_RTRESET_STATUS 20183 /* 0x3010800e */
  533. #define WV_NETEVENT_RTINIT_START 20184 /* 0x3010800f */
  534. /* The following events are defined in rtsock.c */
  535. #define WV_NETEVENT_RTOUT_BADMSG 20185 /* 0x30111401 */
  536. #define WV_NETEVENT_RTOUT_PANIC 20186 /* 0x30111402 */
  537. #define WV_NETEVENT_COPYDATA_PANIC 20187 /* 0x30111003 */
  538. #define WV_NETEVENT_RTOUTPUT_FAIL 20188 /* 0x30113404 */
  539. #define WV_NETEVENT_RTOUTPUT_START 20189 /* 0x30116405 */
  540. #define WV_NETEVENT_ROUTEREQ_START 20190 /* 0x30117006 */
  541. #define WV_NETEVENT_ROUTEWALK_START 20191 /* 0x30117007 */
  542. #define WV_NETEVENT_RTSOCKINIT_START 20192 /* 0x30118008 */
  543. /* The following events are defined in sys_socket.c */
  544. #define WV_NETEVENT_SOCKIOCTL_START 20193 /* 0x30137001 */
  545. #define WV_NETEVENT_SOCKSELECT_START 20194 /* 0x30137002 */
  546. #define WV_NETEVENT_SOCKUNSELECT_START 20195 /* 0x30137003 */
  547. /* The following events are defined in tcp_input.c */
  548. #define WV_NETEVENT_TCPOOB_PANIC 20196 /* 0x30151801 */
  549. #define WV_NETEVENT_TCPIN_BADSUM 20197 /* 0x30153802 */
  550. #define WV_NETEVENT_TCPIN_BADSEG 20198 /* 0x30153803 */
  551. #define WV_NETEVENT_TCPIN_SEARCHFAIL 20199 /* 0x30155804 */
  552. #define WV_NETEVENT_TCPIN_BADSYNC 20200 /* 0x30155805 */
  553. #define WV_NETEVENT_TCPIN_SENDFAIL 20201 /* 0x30155806 */
  554. #define WV_NETEVENT_TCPIN_START 20202 /* 0x30156807 */
  555. #define WV_NETEVENT_TCPIN_DUPSEG 20203 /* 0x30157808 */
  556. #define WV_NETEVENT_TCPIN_PUREACK 20204 /* 0x30157809 */
  557. #define WV_NETEVENT_TCPIN_PUREDATA 20205 /* 0x3015780a */
  558. #define WV_NETEVENT_TCPIN_ACCEPT 20206 /* 0x3015780b */
  559. #define WV_NETEVENT_TCPIN_CONNECT 20207 /* 0x3015780c */
  560. #define WV_NETEVENT_TCPIN_DATACLOSED 20208 /* 0x3015780d */
  561. #define WV_NETEVENT_TCPIN_RESET 20209 /* 0x3015780e */
  562. #define WV_NETEVENT_TCPIN_SENDCLOSED 20210 /* 0x3015780f */
  563. #define WV_NETEVENT_TCPIN_CLOSEWAIT 20211 /* 0x30157810 */
  564. #define WV_NETEVENT_TCPIN_RECVCLOSED 20212 /* 0x30157811 */
  565. #define WV_NETEVENT_TCPIN_CLOSING 20213 /* 0x30157812 */
  566. #define WV_NETEVENT_TCPIN_CLOSE_RESTART 20214 /* 0x30157813 */
  567. #define WV_NETEVENT_TCPIN_DUPDATA 20215 /* 0x30158814 */
  568. #define WV_NETEVENT_TCPIN_SHORTSEG 20216 /* 0x30158815 */
  569. /* The following events are defined in tcp_output.c */
  570. #define WV_NETEVENT_TCPOUT_HDRPANIC 20217 /* 0x30161401 */
  571. #define WV_NETEVENT_TCPOUT_PANIC 20218 /* 0x30161402 */
  572. #define WV_NETEVENT_TCPOUT_FINISH 20219 /* 0x30166403 */
  573. /* The following events are defined in tcp_subr.c */
  574. #define WV_NETEVENT_TCPINIT_HDRPANIC 20220 /* 0x30171001 */
  575. #define WV_NETEVENT_TCPRESPOND_START 20221 /* 0x30176402 */
  576. #define WV_NETEVENT_TCPDROP_START 20222 /* 0x30177003 */
  577. #define WV_NETEVENT_TCPCLOSE_START 20223 /* 0x30177004 */
  578. #define WV_NETEVENT_TCPNOTIFY_IGNORE 20224 /* 0x30177005 */
  579. #define WV_NETEVENT_TCPNOTIFY_KILL 20225 /* 0x30177006 */ 
  580. #define WV_NETEVENT_TCPNOTIFY_ERROR 20226 /* 0x30177005 */
  581. #define WV_NETEVENT_TCPCTLIN_START 20227 /* 0x30177008 */
  582. #define WV_NETEVENT_TCPINIT_START 20228 /* 0x30178009 */ 
  583. /* The following events are defined in tcp_subr.c */
  584. #define WV_NETEVENT_TCPFASTTIMER_START 20229 /* 0x30177001 */ 
  585. #define WV_NETEVENT_TCPSLOWTIMER_START 20230 /* 0x30177002 */ 
  586. #define WV_NETEVENT_TCPTIMER_START 20231 /* 0x30188003 */ 
  587. /* The following events are defined in tcp_usrreq.c */
  588. #define WV_NETEVENT_TCPREQ_PANIC 20232 /* 0x30191001 */ 
  589. #define WV_NETEVENT_TCPCTLOUT_NOPCB 20233 /* 0x30193002 */ 
  590. #define WV_NETEVENT_TCPATTACH_NOBUFS 20234 /* 0x30193003 */ 
  591. #define WV_NETEVENT_TCPREQ_BADMEM 20235 /* 0x30194004 */ 
  592. #define WV_NETEVENT_TCPREQ_NOPCB 20236 /* 0x30194005 */ 
  593. #define WV_NETEVENT_TCPREQ_FAIL 20237 /* 0x30194006 */ 
  594. #define WV_NETEVENT_TCPCTLOUT_START 20238 /* 0x30197007 */ 
  595. #define WV_NETEVENT_TCPREQ_START 20239 /* 0x30197008 */ 
  596. #define WV_NETEVENT_TCPATTACH_START 20240 /* 0x30198009 */ 
  597. #define WV_NETEVENT_TCPDISCONN_START 20241 /* 0x3019800a */ 
  598. /* The following events are defined in udp_usrreq.c */
  599. #define WV_NETEVENT_UDPREQ_PANIC 20242 /* 0x301a1001 */ 
  600. #define WV_NETEVENT_UDPOUT_FAIL 20243 /* 0x301a4402 */ 
  601. #define WV_NETEVENT_UDPREQ_NOPCB 20244 /* 0x301a4003 */ 
  602. #define WV_NETEVENT_UDPIN_SHORTPKTHDR 20245 /* 0x301a5804 */ 
  603. #define WV_NETEVENT_UDPIN_BADLEN 20246 /* 0x301a5805 */ 
  604. #define WV_NETEVENT_UDPIN_BADSUM 20247 /* 0x301a5806 */ 
  605. #define WV_NETEVENT_UDPIN_FULLSOCK 20248 /* 0x301a5807 */ 
  606. #define WV_NETEVENT_UDPIN_SEARCHFAIL 20249 /* 0x301a5808 */ 
  607. #define WV_NETEVENT_UDPIN_NOPORT 20250 /* 0x301a5809 */ 
  608. #define WV_NETEVENT_UDPIN_START 20251 /* 0x301a680a */ 
  609. #define WV_NETEVENT_UDPOUT_FINISH 20252 /* 0x301a640b */ 
  610. #define WV_NETEVENT_UDPNOTIFY_START 20253 /* 0x301a700c */ 
  611. #define WV_NETEVENT_UDPCTLIN_START 20254 /* 0x301a700d */ 
  612. #define WV_NETEVENT_UDPREQ_START 20255 /* 0x301a700e */ 
  613. #define WV_NETEVENT_UDPCTRL_START 20256 /* 0x301a700f */ 
  614. #define WV_NETEVENT_UDPINIT_START 20257 /* 0x301a8010 */ 
  615. #define WV_NETEVENT_UDPIN_CACHEMISS 20258 /* 0x301a8811 */ 
  616. #define WV_NETEVENT_UDPIN_PCBGOOD 20293 /* 0x301a7812 */ 
  617. /* The following events are defined in uipc_mbuf.c */
  618. #define WV_NETEVENT_POOLINIT_PANIC 20259 /* 0x301c1001 */ 
  619. #define WV_NETEVENT_MEMINIT_PANIC 20260 /* 0x301c1002 */ 
  620. #define WV_NETEVENT_DEVMEM_PANIC 20261 /* 0x301c1003 */ 
  621. #define WV_NETEVENT_MEMCOPY_PANIC 20262 /* 0x301c1004 */ 
  622. #define WV_NETEVENT_MEMFREE_PANIC 20263 /* 0x301c1005 */ 
  623. /* The following events are defined in uipc_sock.c */
  624. #define WV_NETEVENT_SOFREE_PANIC 20264 /* 0x301d1001 */ 
  625. #define WV_NETEVENT_SOCLOSE_PANIC 20265 /* 0x301d1002 */ 
  626. #define WV_NETEVENT_SOACCEPT_PANIC 20266 /* 0x301d1003 */ 
  627. #define WV_NETEVENT_SOSEND_FAIL 20267 /* 0x301d3404 */ 
  628. #define WV_NETEVENT_SORECV_FAIL 20268 /* 0x301d3805 */ 
  629. #define WV_NETEVENT_SOCREATE_SEARCHFAIL 20269 /* 0x301d4006 */ 
  630. #define WV_NETEVENT_SOCREATE_BADTYPE 20270 /* 0x301d4007 */ 
  631. #define WV_NETEVENT_SOCONNECT_BADSOCK 20271 /* 0x301d4008 */ 
  632. #define WV_NETEVENT_SODISCONN_STATUS 20272 /* 0x301d4009 */ 
  633. #define WV_NETEVENT_SOCLOSE_WAIT 20273 /* 0x301d700a */ 
  634. #define WV_NETEVENT_SOCREATE_START 20274 /* 0x301d800b */ 
  635. #define WV_NETEVENT_SOBIND_START 20275 /* 0x301d800c */ 
  636. #define WV_NETEVENT_SOLISTEN_START 20276 /* 0x301d800d */ 
  637. #define WV_NETEVENT_SOFREE_START 20277 /* 0x301d800e */ 
  638. #define WV_NETEVENT_SOCLOSE_START 20278 /* 0x301d800f */ 
  639. #define WV_NETEVENT_SOABORT_START 20279 /* 0x301d8010 */ 
  640. #define WV_NETEVENT_SOACCEPT_START 20280 /* 0x301d8011 */ 
  641. #define WV_NETEVENT_SOCONNECT_START 20281 /* 0x301d8012 */ 
  642. #define WV_NETEVENT_SOCONNECT2_START 20282 /* 0x301d8013 */ 
  643. #define WV_NETEVENT_SOSEND_FINISH 20283 /* 0x301d8014 */ 
  644. #define WV_NETEVENT_SORECV_FINISH 20284 /* 0x301d8015 */ 
  645. #define WV_NETEVENT_SOSHUTDOWN_START 20285 /* 0x301d8016 */ 
  646. /* The following events are defined in uipc_sock2.c */
  647. #define WV_NETEVENT_SBAPPENDADDR_PANIC 20286 /* 0x301e1801 */ 
  648. #define WV_NETEVENT_SBAPPENDCTRL_PANIC 20287 /* 0x301e1002 */ 
  649. #define WV_NETEVENT_SBFLUSH_PANIC 20288 /* 0x301e1003 */ 
  650. #define WV_NETEVENT_SBDROP_PANIC 20289 /* 0x301e1004 */ 
  651. #define WV_NETEVENT_SBWAIT_SLEEP 20290 /* 0x301e7005 */ 
  652. #define WV_NETEVENT_SBWAKEUP_START 20291 /* 0x301e7006 */ 
  653. /* The following events are defined in unixLib.c */
  654. #define WV_NETEVENT_HASHINIT_PANIC 20292 /* 0x301f1001 */ 
  655. /* end of VxWorks networking events */
  656. #ifdef __cplusplus
  657. }
  658. #endif
  659. #endif /* __INCwvNetLibh */