home *** CD-ROM | disk | FTP | other *** search
- /* interface.h */
-
- /*
- * This is quite unusual, but allows bootptest to borrow print-bootp.c
- * from the tcpdump program without any changes whatsoever.
- *
- * This has been tested on SunOS 4.1.3 only.
- */
-
- #ifndef NTOHL
- #define NTOHL(x) x=ntohl(x)
- #define NTOHS(x) x=ntohs(x)
- #define HTONL(x) x=htonl(x)
- #define HTONS(x) x=htons(x)
- #endif
-
- #define inline /*sorry*/
-
- #define getname(p) inet_ntoa(p)
- #define etheraddr_string(p) ether_ntoa(p)
-
- /* We do not really have both Ethernet addresses. */
- #define ESRC(p) (p)
- #define EDST(p) (p)
-
- extern int vflag, tflag;
- extern int thiszone;
-
- extern char *program_name; /* used to generate self-identifying messages */
-
- extern int snaplen;
-
- /* global pointers to beginning and end of current packet (during printing) */
- extern unsigned char *packetp;
- extern unsigned char *snapend;
-
- extern char *malloc();
-