o for gre version 1, correctly check if kp (key present) is unset.
o remove trailing spaces for better output.
o print sequence, acknowledge and callid as unsigned, and remove key
from version 1 since it's actually the payload length (not including
the gre header).

from openbsd
1 file changed
tree: e575640141cbe06f16d5b565b05748d8d7dd9af6
  1. lbl/
  2. missing/
  3. win32/
  4. .cvsignore
  5. acconfig.h
  6. aclocal.m4
  7. addrtoname.c
  8. addrtoname.h
  9. ah.h
  10. appletalk.h
  11. arcnet.h
  12. atime.awk
  13. atm.h
  14. atmuni31.h
  15. bootp.h
  16. bpf_dump.c
  17. CHANGES
  18. chdlc.h
  19. config.guess
  20. config.h.in
  21. config.sub
  22. configure
  23. configure.in
  24. CREDITS
  25. decnet.h
  26. esp.h
  27. ether.h
  28. ethertype.h
  29. extract.h
  30. fddi.h
  31. FILES
  32. gmt2local.c
  33. gmt2local.h
  34. icmp6.h
  35. ieee802_11.h
  36. igrp.h
  37. INSTALL
  38. install-sh
  39. interface.h
  40. ip.h
  41. ip6.h
  42. ipfc.h
  43. ipsec_doi.h
  44. ipx.h
  45. isakmp.h
  46. l2tp.h
  47. lane.h
  48. LICENSE
  49. llc.h
  50. machdep.c
  51. machdep.h
  52. Makefile-devel-adds
  53. Makefile.in
  54. makemib
  55. mib.h
  56. mkdep
  57. nameser.h
  58. netbios.h
  59. nfs.h
  60. nfsfh.h
  61. ntp.h
  62. oakley.h
  63. ospf.h
  64. ospf6.h
  65. packetdat.awk
  66. parsenfsfh.c
  67. PLATFORMS
  68. ppp.h
  69. print-802_11.c
  70. print-ah.c
  71. print-arcnet.c
  72. print-arp.c
  73. print-ascii.c
  74. print-atalk.c
  75. print-atm.c
  76. print-beep.c
  77. print-bgp.c
  78. print-bootp.c
  79. print-cdp.c
  80. print-chdlc.c
  81. print-cip.c
  82. print-cnfp.c
  83. print-decnet.c
  84. print-dhcp6.c
  85. print-domain.c
  86. print-dvmrp.c
  87. print-egp.c
  88. print-esp.c
  89. print-ether.c
  90. print-fddi.c
  91. print-fr.c
  92. print-frag6.c
  93. print-gre.c
  94. print-hsrp.c
  95. print-icmp.c
  96. print-icmp6.c
  97. print-igmp.c
  98. print-igrp.c
  99. print-ip.c
  100. print-ip6.c
  101. print-ip6opts.c
  102. print-ipcomp.c
  103. print-ipfc.c
  104. print-ipx.c
  105. print-isakmp.c
  106. print-isoclns.c
  107. print-krb.c
  108. print-l2tp.c
  109. print-lane.c
  110. print-llc.c
  111. print-lwres.c
  112. print-mobile.c
  113. print-mobility.c
  114. print-mpls.c
  115. print-msdp.c
  116. print-netbios.c
  117. print-nfs.c
  118. print-ntp.c
  119. print-null.c
  120. print-ospf.c
  121. print-ospf6.c
  122. print-pflog.c
  123. print-pim.c
  124. print-ppp.c
  125. print-pppoe.c
  126. print-pptp.c
  127. print-radius.c
  128. print-raw.c
  129. print-rip.c
  130. print-ripng.c
  131. print-rsvp.c
  132. print-rt6.c
  133. print-rx.c
  134. print-sctp.c
  135. print-sl.c
  136. print-sll.c
  137. print-smb.c
  138. print-snmp.c
  139. print-stp.c
  140. print-sunatm.c
  141. print-sunrpc.c
  142. print-tcp.c
  143. print-telnet.c
  144. print-tftp.c
  145. print-timed.c
  146. print-token.c
  147. print-udp.c
  148. print-vjc.c
  149. print-vrrp.c
  150. print-wb.c
  151. print-zephyr.c
  152. README
  153. Readme.Win32
  154. route6d.h
  155. rx.h
  156. sctpConstants.h
  157. sctpHeader.h
  158. send-ack.awk
  159. setsignal.c
  160. setsignal.h
  161. slcompress.h
  162. slip.h
  163. sll.h
  164. smb.h
  165. smbutil.c
  166. stime.awk
  167. strcasecmp.c
  168. tcp.h
  169. tcpdump-stdinc.h
  170. tcpdump.1
  171. tcpdump.c
  172. telnet.h
  173. timed.h
  174. TODO
  175. token.h
  176. udp.h
  177. util.c
  178. VERSION
  179. vfprintf.c