Changeset 1453435 for libpacketdump/ospf2_1.c
- Timestamp:
- 01/06/12 16:43:16 (11 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
- cb64286
- Parents:
- f46f7f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/ospf2_1.c
re224862 r1453435 10 10 11 11 libtrace_ospf_hello_v2_t *hello = (libtrace_ospf_hello_v2_t *)packet; 12 12 struct in_addr *neigh; 13 13 14 if (len < 4) 14 15 return; … … 53 54 return; 54 55 55 printf(" OSPF Hello: Designated Router :%s\n", inet_ntoa(hello->designated));56 printf(" OSPF Hello: Designated Router %s\n", inet_ntoa(hello->designated)); 56 57 57 58 if (len < 20) 58 59 return; 59 60 60 printf(" OSPF Hello: Backup Designated Router :%s\n", inet_ntoa(hello->backup));61 printf(" OSPF Hello: Backup Designated Router %s\n", inet_ntoa(hello->backup)); 61 62 62 if (len < 24) 63 return; 64 65 printf(" OSPF Hello: Neighbour: %s\n", inet_ntoa(hello->backup)); 63 neigh = (struct in_addr *)(packet + sizeof(libtrace_ospf_hello_v2_t)); 64 len -= sizeof(libtrace_ospf_hello_v2_t); 65 while (len >= 4) { 66 printf(" OSPF Hello: Neighbour %s\n", inet_ntoa(*neigh)); 67 neigh++; 68 len -= sizeof(struct in_addr); 69 } 70 71 66 72 67 73 return;
Note: See TracChangeset
for help on using the changeset viewer.