bgp_mvpn_6_and_7 && bgp_pmsi_tunnel-oobr && bgp_vpn_rt-oobr: All contained illegal prefix lengths in the withdrawn routes section, ie > than 32 for ipv4, so I modified the .pcap files to have legal prefixs so that the BGP wasn't truncated and updated the withdrawn routes in the test.out
withdrawn_routes_len = EXTRACT_16BITS(p);
p += 2;
length -= 2;
- if (withdrawn_routes_len) {
+ if (withdrawn_routes_len > 1) {
ND_TCHECK2(p[0], withdrawn_routes_len);
if (length < withdrawn_routes_len)
goto trunc;
- if (withdrawn_routes_len < 2)
- goto trunc;
ND_PRINT((ndo, "\n\t Withdrawn routes:"));
add_path = check_add_path(p, withdrawn_routes_len, 32);
withdrawn_routes_len -= wpfx;
}
}
- }
+ } else {
+ p += withdrawn_routes_len;
+ length -= withdrawn_routes_len;
+ }
ND_TCHECK2(p[0], 2);
if (length < 2)
IP (tos 0xc, ttl 254, id 21263, offset 0, flags [rsvd], proto TCP (6), length 517, bad cksum 8e15 (->99c9)!)
241.0.93.20.179 > 255.247.0.1.200: Flags [none], seq 2146691977:2146692450, win 56026, options [unknown-161,eol], length 473: BGP
Update Message (2), length: 45
- Withdrawn routes: 3 bytes
+ Withdrawn routes:
+ 255.123.0.0/16
Attribute Set (128), length: 7, Flags [OTPE+f]:
Origin AS: 148
Multi-Protocol Reach NLRI (14), length: 71, Flags [T+6]:
IP (tos 0x0, ttl 254, id 40207, offset 0, flags [+, DF, rsvd], proto TCP (6), length 296, bad cksum 8e15 (->3eaa)!)
241.0.32.19.179 > 239.0.0.1.0: Flags [none], seq 2146695561:2146695813, win 56026, options [unknown-161,eol], length 252: BGP
Update Message (2), length: 45
- Withdrawn routes: 3 bytes
+ Withdrawn routes:
+ 24.13.0.0/16
Attribute Set (128), length: 7, Flags [OTPE+f]:
Origin AS: 4067
Origin (1), length: 1EGP
IP (tos 0xc, ttl 254, id 21263, offset 0, flags [rsvd], proto TCP (6), length 60165, bad cksum 8e15 (->9eb8)!)
241.0.128.19.179 > 239.8.0.1.0: Flags [none], seq 2146695561:2146755682, win 56026, options [unknown-161,eol], length 60121: BGP
Update Message (2), length: 45
- Withdrawn routes: 3 bytes
+ Withdrawn routes:
+ 255.144.0.0/12
Attribute Set (128), length: 7, Flags [OTPE+f]:
Origin AS: 0
Multi-Protocol Unreach NLRI (15), length: 227, Flags [T+6]:
Route-Type: Unknown (0), length: 0[|BGP] [|BGP]
Update Message (2), length: 45[|BGP] [|BGP]
Update Message (2), length: 45
- Withdrawn routes: 3 bytes
+ Withdrawn routes:
+ 255.112.0.0/12
Attribute Set (128), length: 7, Flags [OTPE+f]:
Origin AS: 0
Multi-Protocol Reach NLRI (14), length: 227, Flags [T+6]:
End-of-Rib Marker (empty NLRI)
0x0000: 0001 80
Update Message (2), length: 30
- Withdrawn routes: 1 bytes
Unknown Attribute (0), length: 3, Flags [+f]:
no Attribute 0 decoder
0x0000: 0001 05[|BGP]