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.
1 file changed
tree: 53efde5c6f475debeb6a6b1851d52322aa38c075
  1. lbl/
  2. missing/
  3. tests/
  4. win32/
  5. .cvsignore
  6. acconfig.h
  7. aclocal.m4
  8. addrtoname.c
  9. addrtoname.h
  10. ah.h
  11. aodv.h
  12. appletalk.h
  13. arcnet.h
  14. atime.awk
  15. atm.h
  16. atmuni31.h
  17. bgp.h
  18. bootp.h
  19. bpf_dump.c
  20. CHANGES
  21. chdlc.h
  22. config.guess
  23. config.h.in
  24. config.sub
  25. configure
  26. configure.in
  27. cpack.c
  28. cpack.h
  29. CREDITS
  30. dccp.h
  31. decnet.h
  32. decode_prefix.h
  33. enc.h
  34. esp.h
  35. ether.h
  36. ethertype.h
  37. extract.h
  38. fddi.h
  39. FILES
  40. gmpls.c
  41. gmpls.h
  42. gmt2local.c
  43. gmt2local.h
  44. icmp6.h
  45. ieee802_11.h
  46. ieee802_11_radio.h
  47. igrp.h
  48. INSTALL
  49. install-sh
  50. interface.h
  51. ip.h
  52. ip6.h
  53. ipfc.h
  54. ipproto.c
  55. ipproto.h
  56. ipsec_doi.h
  57. ipx.h
  58. isakmp.h
  59. l2tp.h
  60. l2vpn.c
  61. l2vpn.h
  62. lane.h
  63. LICENSE
  64. llc.h
  65. machdep.c
  66. machdep.h
  67. Makefile-devel-adds
  68. Makefile.in
  69. makemib
  70. mib.h
  71. mkdep
  72. mpls.h
  73. nameser.h
  74. netbios.h
  75. netdissect.h
  76. nfs.h
  77. nfsfh.h
  78. nlpid.c
  79. nlpid.h
  80. ntp.h
  81. oakley.h
  82. ospf.h
  83. ospf6.h
  84. oui.c
  85. oui.h
  86. packetdat.awk
  87. parsenfsfh.c
  88. pcap-missing.h
  89. pcap_dump_ftell.c
  90. pf.h
  91. PLATFORMS
  92. pmap_prot.h
  93. ppp.h
  94. print-802_11.c
  95. print-ah.c
  96. print-aodv.c
  97. print-ap1394.c
  98. print-arcnet.c
  99. print-arp.c
  100. print-ascii.c
  101. print-atalk.c
  102. print-atm.c
  103. print-beep.c
  104. print-bfd.c
  105. print-bgp.c
  106. print-bootp.c
  107. print-cdp.c
  108. print-chdlc.c
  109. print-cip.c
  110. print-cnfp.c
  111. print-dccp.c
  112. print-decnet.c
  113. print-dhcp6.c
  114. print-domain.c
  115. print-dvmrp.c
  116. print-eap.c
  117. print-egp.c
  118. print-eigrp.c
  119. print-enc.c
  120. print-esp.c
  121. print-ether.c
  122. print-fddi.c
  123. print-fr.c
  124. print-frag6.c
  125. print-gre.c
  126. print-hsrp.c
  127. print-icmp.c
  128. print-icmp6.c
  129. print-igmp.c
  130. print-igrp.c
  131. print-ip.c
  132. print-ip6.c
  133. print-ip6opts.c
  134. print-ipcomp.c
  135. print-ipfc.c
  136. print-ipx.c
  137. print-isakmp.c
  138. print-isoclns.c
  139. print-juniper.c
  140. print-krb.c
  141. print-l2tp.c
  142. print-lane.c
  143. print-ldp.c
  144. print-llc.c
  145. print-lmp.c
  146. print-lspping.c
  147. print-lwres.c
  148. print-mobile.c
  149. print-mobility.c
  150. print-mpls.c
  151. print-msdp.c
  152. print-netbios.c
  153. print-nfs.c
  154. print-ntp.c
  155. print-null.c
  156. print-ospf.c
  157. print-ospf6.c
  158. print-pflog.c
  159. print-pgm.c
  160. print-pim.c
  161. print-ppp.c
  162. print-pppoe.c
  163. print-pptp.c
  164. print-radius.c
  165. print-raw.c
  166. print-rip.c
  167. print-ripng.c
  168. print-rsvp.c
  169. print-rt6.c
  170. print-rx.c
  171. print-sctp.c
  172. print-sip.c
  173. print-sl.c
  174. print-sll.c
  175. print-slow.c
  176. print-smb.c
  177. print-snmp.c
  178. print-stp.c
  179. print-sunatm.c
  180. print-sunrpc.c
  181. print-symantec.c
  182. print-syslog.c
  183. print-tcp.c
  184. print-telnet.c
  185. print-tftp.c
  186. print-timed.c
  187. print-token.c
  188. print-udp.c
  189. print-vjc.c
  190. print-vrrp.c
  191. print-wb.c
  192. print-zephyr.c
  193. README
  194. Readme.Win32
  195. route6d.h
  196. rpc_auth.h
  197. rpc_msg.h
  198. rx.h
  199. sctpConstants.h
  200. sctpHeader.h
  201. send-ack.awk
  202. setsignal.c
  203. setsignal.h
  204. slcompress.h
  205. slip.h
  206. sll.h
  207. smb.h
  208. smbutil.c
  209. stime.awk
  210. strcasecmp.c
  211. tcp.h
  212. tcpdump-stdinc.h
  213. tcpdump.1
  214. tcpdump.c
  215. telnet.h
  216. timed.h
  217. TODO
  218. token.h
  219. udp.h
  220. util.c
  221. VERSION
  222. vfprintf.c