Home | History | Annotate | Line # | Download | only in bootptest
bootptest.h revision 1.1
      1  1.1  gwr /* bootptest.h */
      2  1.1  gwr /*
      3  1.1  gwr  * Hacks for sharing print-bootp.c between tcpdump and bootptest.
      4  1.1  gwr  */
      5  1.1  gwr #define ESRC(p) (p)
      6  1.1  gwr #define EDST(p) (p)
      7  1.1  gwr 
      8  1.1  gwr #ifndef	USE_BFUNCS
      9  1.1  gwr /* Use mem/str functions */
     10  1.1  gwr /* There are no overlapped copies, so memcpy is OK. */
     11  1.1  gwr #define bcopy(a,b,c)    memcpy(b,a,c)
     12  1.1  gwr #define bzero(p,l)      memset(p,0,l)
     13  1.1  gwr #define bcmp(a,b,c)     memcmp(a,b,c)
     14  1.1  gwr #endif
     15  1.1  gwr 
     16  1.1  gwr extern int vflag; /* verbose flag */
     17  1.1  gwr 
     18  1.1  gwr /* global pointers to beginning and end of current packet (during printing) */
     19  1.1  gwr extern unsigned char *packetp;
     20  1.1  gwr extern unsigned char *snapend;
     21  1.1  gwr 
     22  1.1  gwr #ifdef	__STDC__
     23  1.1  gwr #define P(args) args
     24  1.1  gwr #else
     25  1.1  gwr #define P(args) ()
     26  1.1  gwr #endif
     27  1.1  gwr 
     28  1.1  gwr extern char *ipaddr_string P((struct in_addr *));
     29  1.1  gwr 
     30  1.1  gwr #undef P
     31