diff options
Diffstat (limited to 'pcap/namedb.h')
-rw-r--r-- | pcap/namedb.h | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/pcap/namedb.h b/pcap/namedb.h index d3a343225f04..73fb40a4cf3f 100644 --- a/pcap/namedb.h +++ b/pcap/namedb.h @@ -43,7 +43,10 @@ extern "C" { * XXX this stuff doesn't belong in this interface, but this * library already must do name to address translation, so * on systems that don't have support for /etc/ethers, we - * export these hooks since they'll + * export these hooks since they're already being used by + * some applications (such as tcpdump) and already being + * marked as exported in some OSes offering libpcap (such + * as Debian). */ struct pcap_etherent { u_char addr[6]; @@ -52,21 +55,21 @@ struct pcap_etherent { #ifndef PCAP_ETHERS_FILE #define PCAP_ETHERS_FILE "/etc/ethers" #endif -struct pcap_etherent *pcap_next_etherent(FILE *); -u_char *pcap_ether_hostton(const char*); -u_char *pcap_ether_aton(const char *); +PCAP_API struct pcap_etherent *pcap_next_etherent(FILE *); +PCAP_API u_char *pcap_ether_hostton(const char*); +PCAP_API u_char *pcap_ether_aton(const char *); -bpf_u_int32 **pcap_nametoaddr(const char *); +PCAP_API bpf_u_int32 **pcap_nametoaddr(const char *); #ifdef INET6 -struct addrinfo *pcap_nametoaddrinfo(const char *); +PCAP_API struct addrinfo *pcap_nametoaddrinfo(const char *); #endif -bpf_u_int32 pcap_nametonetaddr(const char *); +PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *); -int pcap_nametoport(const char *, int *, int *); -int pcap_nametoportrange(const char *, int *, int *, int *); -int pcap_nametoproto(const char *); -int pcap_nametoeproto(const char *); -int pcap_nametollc(const char *); +PCAP_API int pcap_nametoport(const char *, int *, int *); +PCAP_API int pcap_nametoportrange(const char *, int *, int *, int *); +PCAP_API int pcap_nametoproto(const char *); +PCAP_API int pcap_nametoeproto(const char *); +PCAP_API int pcap_nametollc(const char *); /* * If a protocol is unknown, PROTO_UNDEF is returned. * Also, pcap_nametoport() returns the protocol along with the port number. @@ -75,11 +78,6 @@ int pcap_nametollc(const char *); */ #define PROTO_UNDEF -1 -/* XXX move these to pcap-int.h? */ -int __pcap_atodn(const char *, bpf_u_int32 *); -int __pcap_atoin(const char *, bpf_u_int32 *); -u_short __pcap_nametodnaddr(const char *); - #ifdef __cplusplus } #endif |