Changeset 387d299 for libpacketdump/ip_89.c
- Timestamp:
- 07/04/14 11:37:25 (7 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- d14e23d
- Parents:
- 9ad7a35
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/ip_89.c
re224862 r387d299 10 10 static void dump_ospf_v2_header(libtrace_ospf_v2_t *hdr, unsigned len) { 11 11 12 printf(" OSPF Header: Version %u Type %u ",13 hdr->ospf_v, hdr->type);12 DISPLAY(hdr, ospf_v, " OSPF Header: Version %u"); 13 DISPLAY(hdr, type, " Type %u "); 14 14 switch(hdr->type) { 15 15 case TRACE_OSPF_HELLO: … … 29 29 break; 30 30 } 31 printf("\n"); 31 32 32 printf("\n OSPF Header: Length %u \n", ntohs(hdr->len)); 33 printf(" OSPF Header: Router Id %s ", inet_ntoa(hdr->router)); 34 printf("Area Id %s\n", inet_ntoa(hdr->area)); 35 printf(" OSPF Header: Checksum %u Auth Type %u\n", ntohs(hdr->sum), 36 ntohs(hdr->au_type)); 37 38 printf(" OSPF Header: Auth Key ID %u Auth Data Len %u\n", 39 hdr->au_key_id, hdr->au_data_len); 40 printf(" OSPF Header: Auth Crypto Seq %u\n", ntohl(hdr->au_seq_num)); 41 33 DISPLAYS(hdr, ospf_len, "OSPF Header: Length %u \n"); 34 DISPLAYIP(hdr, router, " OSPF Header: Router Id %s "); 35 DISPLAYIP(hdr, area, "Area Id %s\n"); 36 DISPLAYS(hdr, sum, " OSPF Header: Checksum %u "); 37 DISPLAYS(hdr, au_type, "Auth Type %u\n"); 38 DISPLAY(hdr, au_key_id, " OSPF Header: Auth Key ID %u "); 39 DISPLAY(hdr, au_data_len, "Auth Data Len %u\n"); 40 DISPLAYL(hdr, au_seq_num, " OSPF Header: Auth Crypto Seq %u\n"); 42 41 43 42 }
Note: See TracChangeset
for help on using the changeset viewer.