]> The Tcpdump Group git mirrors - tcpdump/commit
Before subtracting a value from a prefix length, make sure the prefix
authorguy <guy>
Sun, 16 Oct 2005 18:14:55 +0000 (18:14 +0000)
committerguy <guy>
Sun, 16 Oct 2005 18:14:55 +0000 (18:14 +0000)
commit9e349e88a7d4e33ba0afa66b1203b1ee84c62316
tree53efde5c6f475debeb6a6b1851d52322aa38c075
parent02c692dc728872bc0c13fe8073c3dc799355c4b8
Before subtracting a value from a prefix length, make sure the prefix
length is >= the value.  (In theory, if that check isn't done, the
prefix length will overflow, and, as it's unsigned, that'd make it very
large, and rejected by the other sanity check - but it's cleaner to
check explicitly.)

In decode_rt_routing_info(), fix the checks for the prefix length -
according to draft-marques-ppvpn-rt-constrain-01, the default route
target has a 0-length prefix, and all others have a length between 32
and 96.
print-bgp.c