diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-02-17 02:18:48 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-02-17 02:18:48 +0000 |
commit | 79053183c54a7e0efc29b656a47deff19f0dee2c (patch) | |
tree | 8dd5dd504a3c13ed7cd5cd018bca2736e2bb1467 /capture-pcap-util.c | |
parent | 58d9f6c3b1e8ed8cc914e6f3d5af87c3e12a2ff3 (diff) | |
download | wireshark-79053183c54a7e0efc29b656a47deff19f0dee2c.tar.gz wireshark-79053183c54a7e0efc29b656a47deff19f0dee2c.tar.bz2 wireshark-79053183c54a7e0efc29b656a47deff19f0dee2c.zip |
remove dependencies to pcap.h, so getting an idea what needs to be done by dumpcap in addition to the things already done now
various dumpcap related code cleanup: mainly #include's and capture engine related stuff
svn path=/trunk/; revision=17327
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r-- | capture-pcap-util.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c index db32cfb4c7..c52e8cf95d 100644 --- a/capture-pcap-util.c +++ b/capture-pcap-util.c @@ -430,4 +430,20 @@ set_pcap_linktype(pcap_t *pch, char *devname #endif } + +#ifdef HAVE_PCAP_DATALINK_VAL_TO_NAME +const char * +linktype_val_to_name(int dlt) +{ + return pcap_datalink_val_to_name(dlt); +} +#endif + +#ifdef HAVE_PCAP_DATALINK_NAME_TO_VAL +int linktype_name_to_val(const char *linktype) +{ + return pcap_datalink_name_to_val(linktype); +} +#endif + #endif /* HAVE_LIBPCAP */ |