Go to the source code of this file.
|
static void | snap_header_set_protocol (snap_header_t *h, snap_oui_and_protocol_t *p) |
|
static u32 | snap_header_get_oui (snap_header_t *h) |
|
static snap_protocol_info_t * | snap_get_protocol_info (snap_main_t *sm, snap_header_t *h) |
|
void | snap_register_input_protocol (vlib_main_t *vm, char *name, u32 ieee_oui, u16 protocol, u32 node_index) |
|
void | snap_set_adjacency (vnet_rewrite_header_t *rw, uword max_data_bytes, u32 ieee_oui, u16 protocol) |
|
static void | snap_setup_node (vlib_main_t *vm, u32 node_index) |
|
Value:_ (0x000000, ethernet) \
_ (0x00000c, cisco)
Definition at line 46 of file snap.h.
#define foreach_snap_cisco_protocol |
Value:_ (0x0102, drip) \
_ (0x0104, port_aggregation_protocol) \
_ (0x0105, mls_hello) \
_ (0x010b, per_vlan_spanning_tree) \
_ (0x010c, vlan_bridge) \
_ (0x0111, unidirectional_link_detection) \
_ (0x2000, cdp) \
_ (0x2001, cgmp) \
_ (0x2003, vtp) \
_ (0x2004, dtp) \
_ (0x200a, stp_uplink_fast)
Definition at line 57 of file snap.h.
#define foreach_snap_error |
Value:_ (NONE, "no error") \
_ (UNKNOWN_PROTOCOL, "unknown oui/snap protocol")
Definition at line 123 of file snap.h.
Enumerator |
---|
foreach_ieee_oui |
|
Definition at line 50 of file snap.h.
Enumerator |
---|
foreach_snap_cisco_protocol |
|
Definition at line 70 of file snap.h.
void snap_register_input_protocol |
( |
vlib_main_t * |
vm, |
|
|
char * |
name, |
|
|
u32 |
ieee_oui, |
|
|
u16 |
protocol, |
|
|
u32 |
node_index |
|
) |
| |
void snap_set_adjacency |
( |
vnet_rewrite_header_t * |
rw, |
|
|
uword |
max_data_bytes, |
|
|
u32 |
ieee_oui, |
|
|
u16 |
protocol |
|
) |
| |