CNDP 22.08.0
Loading...
Searching...
No Matches
cnet_stk.h File Reference
#include <sys/queue.h>
#include <pthread.h>
#include <cne_atomic.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/select.h>
#include <unistd.h>
#include <bsd/sys/bitstring.h>
#include <cne_system.h>
#include <cne_vec.h>
#include <hmap.h>
#include <cne_timer.h>
#include "cne_common.h"
#include "cne_per_thread.h"
#include "cnet.h"
#include "cnet_const.h"
#include "mempool.h"
#include "pktmbuf.h"

Go to the source code of this file.

Enumerations

enum  { TCP_TIMEOUT_ENABLED = 0x00000001 , RFC1323_TSTAMP_ENABLED = 0x00004000 , RFC1323_SCALE_ENABLED = 0x00008000 }

Functions

CNDP_API int cnet_stk_initialize (struct cnet *cnet)
 Initialize the stack instance.
CNDP_API int cnet_stk_stop (void)
 Stop the stack instance and free resources.

Detailed Description

CNET Stack instance routines and constants.

Definition in file cnet_stk.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TCP_TIMEOUT_ENABLED 

Enable TCP Timeouts

RFC1323_TSTAMP_ENABLED 

Enable RFC1323 Timestamp

RFC1323_SCALE_ENABLED 

Enable RFC1323 window scaling

Definition at line 74 of file cnet_stk.h.

Function Documentation

◆ cnet_stk_initialize()

CNDP_API int cnet_stk_initialize ( struct cnet * cnet)

Initialize the stack instance.

Parameters
cnetThe pointer to the cnet structure.
Returns
-1 on error or 0 on success.
Examples
examples/cnet-graph/cnet-graph.c, and examples/cnet-quic/cnet-quic.c.

◆ cnet_stk_stop()

CNDP_API int cnet_stk_stop ( void )

Stop the stack instance and free resources.

Returns
-1 on error or 0 on success