diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-12-21 23:22:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-12-21 23:22:12 +0000 |
commit | 44f8cae6ab2dbcd4a0f79476dbdec084788be9f4 (patch) | |
tree | f00a2c2ae7e82a836604c63a2fd177bc53510fa1 /capture-pcap-util.h | |
parent | 4692f6cae7f3b7c41ad1374a60a5a5d403ff4632 (diff) | |
download | wireshark-44f8cae6ab2dbcd4a0f79476dbdec084788be9f4.tar.gz |
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.
svn path=/trunk/; revision=27074
Diffstat (limited to 'capture-pcap-util.h')
-rw-r--r-- | capture-pcap-util.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/capture-pcap-util.h b/capture-pcap-util.h index 6591711be2..9d91387b26 100644 --- a/capture-pcap-util.h +++ b/capture-pcap-util.h @@ -100,12 +100,8 @@ int get_pcap_linktype(pcap_t *pch, const char *devname); const char *set_pcap_linktype(pcap_t *pch, char *devname, int dlt); -#ifdef HAVE_PCAP_DATALINK_VAL_TO_NAME const char *linktype_val_to_name(int dlt); -#endif -#ifdef HAVE_PCAP_DATALINK_NAME_TO_VAL int linktype_name_to_val(const char *linktype); -#endif #ifdef __cplusplus } |