Get rid of the PCAP_ENCAP_ values - if an application uses them, that
application won't build with any other version of libpcap, which means
that a lot of applications won't use them.  In addition,
"pcap_linktype()" needs to return DLT_ values, so that platforms that
build libpcap as a shared library won't break binary compatibility if
they update to this version of libpcap.

Instead, we map from DLT_ values to LINKTYPE_ values when writing
savefiles, and map from LINKTYPE_ values to DLT_ values when reading
savefiles, so that savefiles don't have platform-dependent DLT_ values
in the header as the link type, they have platform-independent LINKTYPE_
values.

This means we don't need to make DLT_ATM_RFC1483, DLT_RAW, etc. have
platform-independent values starting at 100 - only the values in the
savefile header need to be like that.
1 file changed
tree: 59fc63a43fbadad4bebfa72edcbfe9f3f18694fd
  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-igrp.c
  89. print-ip.c
  90. print-ip6.c
  91. print-ip6opts.c
  92. print-ipcomp.c
  93. print-ipx.c
  94. print-isakmp.c
  95. print-isoclns.c
  96. print-krb.c
  97. print-l2tp.c
  98. print-lane.c
  99. print-lcp.c
  100. print-llc.c
  101. print-mobile.c
  102. print-netbios.c
  103. print-nfs.c
  104. print-ntp.c
  105. print-null.c
  106. print-ospf.c
  107. print-ospf6.c
  108. print-pim.c
  109. print-ppp.c
  110. print-pppoe.c
  111. print-radius.c
  112. print-raw.c
  113. print-rip.c
  114. print-ripng.c
  115. print-rt6.c
  116. print-rx.c
  117. print-sl.c
  118. print-smb.c
  119. print-snmp.c
  120. print-stp.c
  121. print-sunrpc.c
  122. print-tcp.c
  123. print-telnet.c
  124. print-tftp.c
  125. print-timed.c
  126. print-token.c
  127. print-udp.c
  128. print-vjc.c
  129. print-vrrp.c
  130. print-wb.c
  131. README
  132. route6d.h
  133. rx.h
  134. savestr.c
  135. savestr.h
  136. send-ack.awk
  137. setsignal.c
  138. setsignal.h
  139. slcompress.h
  140. slip.h
  141. smb.h
  142. smbutil.c
  143. stime.awk
  144. strcasecmp.c
  145. tcp.h
  146. tcpdump.1
  147. tcpdump.c
  148. timed.h
  149. TODO
  150. token.h
  151. udp.h
  152. util.c
  153. VERSION
  154. vfprintf.c