FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
osi.h File Reference
+ Include dependency graph for osi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  osi_header_t
 
struct  osi_protocol_info_t
 
struct  osi_main_t
 

Macros

#define foreach_osi_protocol
 
#define foreach_osi_error
 

Enumerations

enum  osi_protocol_t { foreach_osi_protocol }
 
enum  osi_error_t { OSI_N_ERROR }
 

Functions

static osi_protocol_info_tosi_get_protocol_info (osi_main_t *m, osi_protocol_t protocol)
 
void osi_register_input_protocol (osi_protocol_t protocol, u32 node_index)
 

Variables

osi_main_t osi_main
 
format_function_t format_osi_protocol
 
format_function_t format_osi_header
 
format_function_t format_osi_header_with_length
 
unformat_function_t unformat_osi_protocol
 
unformat_function_t unformat_osi_header
 
unformat_function_t unformat_pg_osi_header
 

Macro Definition Documentation

◆ foreach_osi_error

#define foreach_osi_error
Value:
_ (NONE, "no error") \
_ (UNKNOWN_PROTOCOL, "unknown osi protocol")

Definition at line 96 of file osi.h.

◆ foreach_osi_protocol

#define foreach_osi_protocol
Value:
_ (null, 0x0) \
_ (x_29, 0x01) \
_ (x_633, 0x03) \
_ (q_931, 0x08) \
_ (q_933, 0x08) \
_ (q_2931, 0x09) \
_ (q_2119, 0x0c) \
_ (snap, 0x80) \
_ (clnp, 0x81) \
_ (esis, 0x82) \
_ (isis, 0x83) \
_ (idrp, 0x85) \
_ (x25_esis, 0x8a) \
_ (iso10030, 0x8c) \
_ (iso11577, 0x8d) \
_ (ip6, 0x8e) \
_ (compressed, 0xb0) \
_ (sndcf, 0xc1) \
_ (ip4, 0xcc) \
_ (ppp, 0xcf)

Definition at line 45 of file osi.h.

Enumeration Type Documentation

◆ osi_error_t

Enumerator
OSI_N_ERROR 

Definition at line 100 of file osi.h.

◆ osi_protocol_t

Enumerator
foreach_osi_protocol 

Definition at line 67 of file osi.h.

Function Documentation

◆ osi_get_protocol_info()

static osi_protocol_info_t* osi_get_protocol_info ( osi_main_t m,
osi_protocol_t  protocol 
)
inlinestatic

Definition at line 122 of file osi.h.

+ Here is the caller graph for this function:

◆ osi_register_input_protocol()

void osi_register_input_protocol ( osi_protocol_t  protocol,
u32  node_index 
)

Definition at line 312 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ format_osi_header

format_function_t format_osi_header

Definition at line 134 of file osi.h.

◆ format_osi_header_with_length

format_function_t format_osi_header_with_length

Definition at line 135 of file osi.h.

◆ format_osi_protocol

format_function_t format_osi_protocol

Definition at line 133 of file osi.h.

◆ osi_main

osi_main_t osi_main

Definition at line 44 of file osi.c.

◆ unformat_osi_header

unformat_function_t unformat_osi_header

Definition at line 141 of file osi.h.

◆ unformat_osi_protocol

unformat_function_t unformat_osi_protocol

Definition at line 138 of file osi.h.

◆ unformat_pg_osi_header

unformat_function_t unformat_pg_osi_header

Definition at line 142 of file osi.h.

ip4
vl_api_ip4_address_t ip4
Definition: one.api:376
ip6
vl_api_ip6_address_t ip6
Definition: one.api:424