]>
The Tcpdump Group git mirrors - tcpdump/blob - tcpdump-stdinc.h
3 * Politecnico di Torino. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and
9 * this paragraph in its entirety in the documentation or other materials
10 * provided with the distribution, and (3) all advertising materials mentioning
11 * features or use of this software display the following acknowledgement:
12 * ``This product includes software developed by the Politecnico
13 * di Torino, and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
33 #define errno (*_errno())
35 #define INET_ADDRSTRLEN 16
36 #define INET6_ADDRSTRLEN 46
38 #endif /* __MINGW32__ */
41 typedef char* caddr_t
;
44 #define MAXHOSTNAMELEN 64
45 #define NI_MAXHOST 1025
46 #define IPPROTO_EGP 8 /* Exterior Gateway Protocol */
47 #define snprintf _snprintf
48 #define vsnprintf _vsnprintf
49 #define RETSIGTYPE void
52 #define isascii __isascii
53 #define toascii __toascii
58 #define O_RDONLY _O_RDONLY
68 #include <sys/socket.h>
69 #include <sys/param.h>
70 #include <sys/types.h>
73 #include <netinet/in.h>
75 #include <sys/ioctl.h>
78 #ifdef HAVE_SYS_SOCKIO_H
79 #include <sys/sockio.h>
80 #include <arpa/inet.h>
81 #endif /* HAVE_SYS_SOCKIO_H */