Changeset 1de522d for libpacketdump
- Timestamp:
- 11/14/17 17:20:06 (3 years ago)
- Branches:
- cachetimestamps, develop, dpdk-ndag, etsilive, master, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- ccef50c
- Parents:
- e8db2d4
- Location:
- libpacketdump
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/ospf2_1001.c
ree6e802 r1de522d 33 33 DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len) { 34 34 unsigned char *link_ptr = NULL; 35 libtrace_ospf_link_v2_t *link ;35 libtrace_ospf_link_v2_t *link = NULL; 36 36 uint32_t link_len; 37 37 libtrace_ospf_router_lsa_v2_t *hdr; … … 58 58 return; 59 59 while (trace_get_next_ospf_link_v2(&link_ptr, &link, &len, &link_len) > 0) { 60 if (!link) { 61 break; 62 } 60 63 printf(" OSPF Router Link: Id %s ", inet_ntoa(link->link_id)); 61 64 printf("Data %s\n", inet_ntoa(link->link_data)); -
libpacketdump/ospf2_4.c
ree6e802 r1de522d 34 34 DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len) { 35 35 libtrace_ospf_ls_update_t *update = (libtrace_ospf_ls_update_t *)packet; 36 unsigned char *lsa_ptr ;37 uint8_t lsa_type ;38 libtrace_ospf_lsa_v2_t *lsa_hdr ;39 unsigned char *lsa_body ;36 unsigned char *lsa_ptr = NULL; 37 uint8_t lsa_type = 0; 38 libtrace_ospf_lsa_v2_t *lsa_hdr = NULL; 39 unsigned char *lsa_body = NULL; 40 40 int i = 0; 41 41 int max_lsas = 0; 42 42 uint32_t rem = len; 43 uint16_t lsa_length ;43 uint16_t lsa_length = 0; 44 44 45 45
Note: See TracChangeset
for help on using the changeset viewer.