File: bootptest.h

package info (click to toggle)
bootp 2.4.3-16
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 476 kB
  • ctags: 612
  • sloc: ansic: 5,926; makefile: 154; sh: 53
file content (30 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* bootptest.h */
/*
 * Hacks for sharing print-bootp.c between tcpdump and bootptest.
 */
#define ESRC(p) (p)
#define EDST(p) (p)

#ifndef	USE_BFUNCS
/* Use mem/str functions */
/* There are no overlapped copies, so memcpy is OK. */
#define bcopy(a,b,c)    memcpy(b,a,c)
#define bzero(p,l)      memset(p,0,l)
#define bcmp(a,b,c)     memcmp(a,b,c)
#endif

extern int vflag; /* verbose flag */

/* global pointers to beginning and end of current packet (during printing) */
extern unsigned char *packetp;
extern unsigned char *snapend;

#ifdef	__STDC__
#define P(args) args
#else
#define P(args) ()
#endif

extern char *ipaddr_string P((struct in_addr *));

#undef P