| 
    CNDP
    22.08.0
    
   | 
 
#include <sys/types.h>#include <unistd.h>#include <libgen.h>#include <cne_prefetch.h>#include <cne_log.h>#include <errno.h>Go to the source code of this file.
Macros | |
| #define | PROTO_DEFAULT_MBUF_COUNT 1024 | 
| #define | _IPPORT_RESERVED 49152 | 
| #define | __cnet_no_return __attribute__((__no_return__)) | 
| #define | __cnet_attribute(...) __attribute__((__VA_ARGS__)) | 
Typedefs | |
| typedef int(* | proto_input_t) (struct netif *netif, struct pktmbuf_s **vec) | 
Enumerations | |
| enum | { CNET_NETLINK_PRIO = (CNET_PRIORITY_1 + 0) , CNET_STK_PRIO = (CNET_PRIORITY_1 + 1) , CNET_PROTOSW_PRIO = (CNET_PRIORITY_1 + 2) , CNET_IPV4_PRIO = (CNET_PRIORITY_2 + 0) , CNET_IPV6_PRIO = (CNET_PRIORITY_2 + 1) , CNET_ND_PRIO = (CNET_PRIORITY_2 + 2) , CNET_ICMP_PRIO = (CNET_PRIORITY_3 + 0) , CNET_ICMP6_PRIO = (CNET_PRIORITY_3 + 1) , CNET_RARP_PRIO = (CNET_PRIORITY_3 + 2) , CNET_PCB_PRIO = (CNET_PRIORITY_4 + 0) , CNET_UDP_PRIO = (CNET_PRIORITY_4 + 1) , CNET_TCP_PRIO = (CNET_PRIORITY_4 + 2) , CNET_RAW_PRIO = (CNET_PRIORITY_4 + 3) , CNET_CHNL_PRIO = (CNET_PRIORITY_5 + 0) , CNET_RAW_CHNL_PRIO = (CNET_PRIORITY_5 + 1) , CNET_UDP_CHNL_PRIO = (CNET_PRIORITY_5 + 2) , CNET_TCP_CHNL_PRIO = (CNET_PRIORITY_5 + 3) , CNET_ICMP_CHNL_PRIO = (CNET_PRIORITY_5 + 4) , CNET_ICMP6_CHNL_PRIO = (CNET_PRIORITY_5 + 5) , CNET_UTILS_PRIO = (CNET_PRIORITY_9 + 0) , CNET_CFG_PRIO = (CNET_PRIORITY_10) } | 
| enum | { _SELREAD , _SELWRITE , _SELEXCEPT } | 
Functions | |
| static int | __errno_set (int errorValue) | 
| static void * | __errno_set_null (int errorValue) | 
CNET Constant values.
Definition in file cnet_const.h.
| #define PROTO_DEFAULT_MBUF_COUNT 1024 | 
Default UDP/TCP mbuf count
Definition at line 33 of file cnet_const.h.
| #define _IPPORT_RESERVED 49152 | 
Starting Ephemeral Port value
Definition at line 34 of file cnet_const.h.
| #define __cnet_no_return __attribute__((__no_return__)) | 
short definition to set a function does not return
Definition at line 39 of file cnet_const.h.
| #define __cnet_attribute | ( | ... | ) | __attribute__((__VA_ARGS__)) | 
short definition to define any attribute value(s)
Definition at line 44 of file cnet_const.h.
| typedef int(* proto_input_t) (struct netif *netif, struct pktmbuf_s **vec) | 
List of protocol input funcs
Definition at line 126 of file cnet_const.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| CNET_NETLINK_PRIO | Per stack instance priorities  | 
Definition at line 73 of file cnet_const.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| _SELREAD | Select read flag  | 
| _SELWRITE | Select write flag  | 
| _SELEXCEPT | Select exception flag  | 
Definition at line 143 of file cnet_const.h.
      
  | 
  inlinestatic | 
This routine sets the system 'errno' value.
RETURNS: OK, or ERROR if errno is set to a non-zero value.
ERRNO: N/A
Definition at line 181 of file cnet_const.h.
      
  | 
  inlinestatic | 
This routine sets the system 'errno' value.
RETURNS: NULL
ERRNO: N/A
Definition at line 194 of file cnet_const.h.