Deleted Added
full compact
ipf.h (24583) ipf.h (26119)
1/*
1/*
2 * (C)opyright 1993-1996 by Darren Reed.
2 * (C)opyright 1993-1997 by Darren Reed.
3 *
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
7 *
8 * @(#)ipf.h 1.12 6/5/96
3 *
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
7 *
8 * @(#)ipf.h 1.12 6/5/96
9 * $Id: ipf.h,v 2.0.2.4 1997/03/27 13:45:18 darrenr Exp $
9 * $Id: ipf.h,v 2.0.2.6 1997/04/30 13:49:05 darrenr Exp $
10 */
11
10 */
11
12#ifndef __IPF_H__
13#define __IPF_H__
14
12#ifndef SOLARIS
13#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
14#endif
15#define OPT_REMOVE 0x00001
16#define OPT_DEBUG 0x00002
17#define OPT_OUTQUE FR_OUTQUE /* 0x0004 */
18#define OPT_INQUE FR_INQUE /* 0x0008 */
19#define OPT_LOG FR_LOG /* 0x0010 */

--- 21 unchanged lines hidden (view full) ---

41
42extern struct frentry *parse __P((char *));
43
44extern void printfr __P((struct frentry *));
45extern void binprint __P((struct frentry *)), initparse __P((void));
46extern u_short portnum __P((char *));
47
48
15#ifndef SOLARIS
16#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
17#endif
18#define OPT_REMOVE 0x00001
19#define OPT_DEBUG 0x00002
20#define OPT_OUTQUE FR_OUTQUE /* 0x0004 */
21#define OPT_INQUE FR_INQUE /* 0x0008 */
22#define OPT_LOG FR_LOG /* 0x0010 */

--- 21 unchanged lines hidden (view full) ---

44
45extern struct frentry *parse __P((char *));
46
47extern void printfr __P((struct frentry *));
48extern void binprint __P((struct frentry *)), initparse __P((void));
49extern u_short portnum __P((char *));
50
51
49#if defined(__SVR4) || defined(__svr4__)
50#define index strchr
51#define bzero(a,b) memset(a, 0, b)
52#define bcopy(a,b,c) memmove(b,a,c)
53#endif
54
55struct ipopt_names {
56 int on_value;
57 int on_bit;
58 int on_siz;
59 char *on_name;
60};
61
62

--- 11 unchanged lines hidden (view full) ---

74#else
75#define STRERROR(x) strerror(x)
76#endif
77
78#ifndef MIN
79#define MIN(a,b) ((a) > (b) ? (b) : (a))
80#endif
81
52struct ipopt_names {
53 int on_value;
54 int on_bit;
55 int on_siz;
56 char *on_name;
57};
58
59

--- 11 unchanged lines hidden (view full) ---

71#else
72#define STRERROR(x) strerror(x)
73#endif
74
75#ifndef MIN
76#define MIN(a,b) ((a) > (b) ? (b) : (a))
77#endif
78
79#endif /* __IPF_H__ */