Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/tcpdump/print-eigrp.c
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | static const struct tok eigrp_ext_proto_id_values[] = { | ||||
{ 0x08, "EGP" }, | { 0x08, "EGP" }, | ||||
{ 0x09, "BGP" }, | { 0x09, "BGP" }, | ||||
{ 0x0a, "IDRP" }, | { 0x0a, "IDRP" }, | ||||
{ 0x0b, "Connected" }, | { 0x0b, "Connected" }, | ||||
{ 0, NULL} | { 0, NULL} | ||||
}; | }; | ||||
void | void | ||||
eigrp_print(netdissect_options *ndo, register const u_char *pptr, register u_int len) { | eigrp_print(netdissect_options *ndo, register const u_char *pptr, register u_int len) | ||||
{ | |||||
const struct eigrp_common_header *eigrp_com_header; | const struct eigrp_common_header *eigrp_com_header; | ||||
const struct eigrp_tlv_header *eigrp_tlv_header; | const struct eigrp_tlv_header *eigrp_tlv_header; | ||||
const u_char *tptr,*tlv_tptr; | const u_char *tptr,*tlv_tptr; | ||||
u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; | u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; | ||||
uint8_t prefix[4]; | uint8_t prefix[4]; | ||||
union { | union { | ||||
const struct eigrp_tlv_general_parm_t *eigrp_tlv_general_parm; | const struct eigrp_tlv_general_parm_t *eigrp_tlv_general_parm; | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |