case OSPF_TYPE_LS_ACK:
lshp = op->ospf_lsa.lsa_lshdr;
- while (ospf_print_lshdr(ndo, lshp) != -1) {
+ while ((const u_char *)lshp < dataend) {
+ ospf_print_lshdr(ndo, lshp);
++lshp;
}
break;
# OSPF tests
ospf-gmpls ospf-gmpls.pcap ospf-gmpls.out -v
ospf-nssa-bitnt ospf-nssa-bitnt.pcap ospf-nssa-bitnt.out -v
+ospf-ack ospf-ack.pcap ospf-ack.out -v
ospf3_ah-vv OSPFv3_with_AH.pcap ospf3_ah-vv.out -v -v
ospf3_auth-vv ospf3_auth.pcapng ospf3_auth-vv.out -v -v
ospf3_bc-vv OSPFv3_broadcast_adjacency.pcap ospf3_bc-vv.out -v -v
--- /dev/null
+ 1 21:01:51.417510 IP (tos 0xc0, ttl 1, id 7082, offset 0, flags [DF], proto OSPF (89), length 84)
+ 1.0.1.2 > 224.0.0.5: OSPFv2, LS-Ack, length 64
+ Router-ID 2.2.2.2, Area 0.0.0.1, Authentication Type: none (0)
+ Advertising Router 1.1.1.1, seq 0x80000002, age 46s, length 16
+ Router LSA (1), LSA-ID: 1.1.1.1
+ Options: [External, Demand Circuit]
+ Advertising Router 1.1.1.1, seq 0x80000001, age 43s, length 8
+ Summary LSA (3), LSA-ID: 1.0.0.0
+ Options: [External, Demand Circuit]