Clean up option-walking code.

Loop as long as the remaining option list length is not zero, even if
that means we try to process the remaining options if the remaining
length is 1, so that if the option length is bogus, we'll report it.

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