diff options
Diffstat (limited to 'contrib/tcpdump/win32/Include/inetprivate.h')
-rw-r--r-- | contrib/tcpdump/win32/Include/inetprivate.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/tcpdump/win32/Include/inetprivate.h b/contrib/tcpdump/win32/Include/inetprivate.h new file mode 100644 index 0000000..1052acf --- /dev/null +++ b/contrib/tcpdump/win32/Include/inetprivate.h @@ -0,0 +1,40 @@ +#include <sys/types.h> +#include <string.h> +#include <unistd.h> +#include <stdlib.h> +#include <ctype.h> +#include <net/netdb.h> +#include <stdio.h> +#include <errno.h> +//#include <net/inet.h> +#include <arpa/nameser.h> +//#include <resolv.h> + +#include <net/if.h> + +extern void _sethtent(int f); +extern void _endhtent(void); +extern struct hostent *_gethtent(void); +extern struct hostent *_gethtbyname(const char *name); +extern struct hostent *_gethtbyaddr(const char *addr, int len, + int type); +extern int _validuser(FILE *hostf, const char *rhost, + const char *luser, const char *ruser, int baselen); +extern int _checkhost(const char *rhost, const char *lhost, int len); +#if 0 +extern void putlong(u_long l, u_char *msgp); +extern void putshort(u_short l, u_char *msgp); +extern u_int32_t _getlong(register const u_char *msgp); +extern u_int16_t _getshort(register const u_char *msgp); +extern void p_query(char *msg); +extern void fp_query(char *msg, FILE *file); +extern char *p_cdname(char *cp, char *msg, FILE *file); +extern char *p_rr(char *cp, char *msg, FILE *file); +extern char *p_type(int type); +extern char * p_class(int class); +extern char *p_time(u_long value); +#endif +extern char * hostalias(const char *name); +extern void sethostfile(char *name); +extern void _res_close (void); +extern void ruserpass(const char *host, char **aname, char **apass); |