If "-n" is specified along with "-e", print the address family value as
"AF <n>" for DLT_NULL captures.

Print the packet length for DLT_NULL captures when "-e" is specified
(somebody complained on "freebsd-isp" about the lack of any packet
length from tcpdump when capturing traffic on a "tunX" device).

Make sure we always print the packet length on PPP when "-e" is
specified (the person in question also complained that the packet length
disappeared between FreeBSD 2.2.8 and FreeBSD 3.4, which was the result
of a new "print-ppp.c" that didn't print the length).
2 files changed
tree: b69b23b311134a409462a3113602e6d074a42bd6
  1. lbl/
  2. linux-include/
  3. missing/
  4. .cvsignore
  5. acconfig.h
  6. aclocal.m4
  7. addrtoname.c
  8. addrtoname.h
  9. ah.h
  10. appletalk.h
  11. atime.awk
  12. bootp.h
  13. CHANGES
  14. chdlc.h
  15. config.guess
  16. config.h.in
  17. config.sub
  18. configure
  19. configure.in
  20. CREDITS
  21. decnet.h
  22. dhcp6.h
  23. dhcp6opt.h
  24. esp.h
  25. ether.h
  26. ethertype.h
  27. extract.h
  28. fddi.h
  29. FILES
  30. gmt2local.c
  31. gmt2local.h
  32. icmp6.h
  33. igrp.h
  34. INSTALL
  35. install-sh
  36. interface.h
  37. ip.h
  38. ip6.h
  39. ipsec_doi.h
  40. ipx.h
  41. isakmp.h
  42. l2tp.h
  43. lane.h
  44. LICENSE
  45. llc.h
  46. machdep.c
  47. machdep.h
  48. Makefile-devel-adds
  49. Makefile.in
  50. makemib
  51. mib.h
  52. mkdep
  53. nameser.h
  54. netbios.h
  55. nfs.h
  56. nfsfh.h
  57. ntp.h
  58. oakley.h
  59. ospf.h
  60. ospf6.h
  61. packetdat.awk
  62. parsenfsfh.c
  63. ppp.h
  64. print-ah.c
  65. print-arp.c
  66. print-ascii.c
  67. print-atalk.c
  68. print-atm.c
  69. print-bgp.c
  70. print-bootp.c
  71. print-bxxp.c
  72. print-cdp.c
  73. print-chdlc.c
  74. print-cip.c
  75. print-cnfp.c
  76. print-decnet.c
  77. print-dhcp6.c
  78. print-domain.c
  79. print-dvmrp.c
  80. print-egp.c
  81. print-esp.c
  82. print-ether.c
  83. print-fddi.c
  84. print-frag6.c
  85. print-gre.c
  86. print-icmp.c
  87. print-icmp6.c
  88. print-igmp.c
  89. print-igrp.c
  90. print-ip.c
  91. print-ip6.c
  92. print-ip6opts.c
  93. print-ipcomp.c
  94. print-ipx.c
  95. print-isakmp.c
  96. print-isoclns.c
  97. print-krb.c
  98. print-l2tp.c
  99. print-lane.c
  100. print-lcp.c
  101. print-llc.c
  102. print-mobile.c
  103. print-netbios.c
  104. print-nfs.c
  105. print-ntp.c
  106. print-null.c
  107. print-ospf.c
  108. print-ospf6.c
  109. print-pim.c
  110. print-ppp.c
  111. print-pppoe.c
  112. print-radius.c
  113. print-raw.c
  114. print-rip.c
  115. print-ripng.c
  116. print-rt6.c
  117. print-rx.c
  118. print-sl.c
  119. print-smb.c
  120. print-snmp.c
  121. print-stp.c
  122. print-sunrpc.c
  123. print-tcp.c
  124. print-telnet.c
  125. print-tftp.c
  126. print-timed.c
  127. print-token.c
  128. print-udp.c
  129. print-vjc.c
  130. print-vrrp.c
  131. print-wb.c
  132. README
  133. route6d.h
  134. rx.h
  135. savestr.c
  136. savestr.h
  137. send-ack.awk
  138. setsignal.c
  139. setsignal.h
  140. slcompress.h
  141. slip.h
  142. smb.h
  143. smbutil.c
  144. stime.awk
  145. strcasecmp.c
  146. tcp.h
  147. tcpdump.1
  148. tcpdump.c
  149. timed.h
  150. TODO
  151. token.h
  152. udp.h
  153. util.c
  154. VERSION
  155. vfprintf.c