If we don't have any of the pcap_datalink_XXX_to_YYY routines,
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Dec 2008 23:22:12 +0000 (23:22 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Dec 2008 23:22:12 +0000 (23:22 +0000)
commitfd4044b5c52f7bb52d0be686b3c71ac7c13e7452
treef00a2c2ae7e82a836604c63a2fd177bc53510fa1
parent60df596edbc60d27dc548bc783ead3f67912a68a
If we don't have any of the pcap_datalink_XXX_to_YYY routines,
substitute our own (I wrote them all, so I can steal them from the
BSD-licensed libpcap if I want :-)).  This means that
linktype_name_to_val() and linktype_val_to_name() are always available,
and we don't need to #ifdef use of them.

Use pcap_datalink_val_to_description() to get the description for a
particular DLT_ value, rather than mapping the DLT_ value to a
WTAP_ENCAP_ value and getting the description for the latter.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27074 f5534014-38df-0310-8fa8-9805f1628bb7
acinclude.m4
capture-pcap-util.c
capture-pcap-util.h
capture_opts.c
capture_sync.c
rawshark.c