Deleted Added
full compact
ipf.h (26119) ipf.h (31183)
1/*
1/*
2 * (C)opyright 1993-1997 by Darren Reed.
2 * Copyright (C) 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.6 1997/04/30 13:49:05 darrenr Exp $
9 * $Id: ipf.h,v 2.0.2.12 1997/09/28 07:11:50 darrenr Exp $
10 */
11
12#ifndef __IPF_H__
13#define __IPF_H__
14
15#ifndef SOLARIS
16#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
17#endif

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

28#define OPT_ACCNT FR_ACCOUNT /* 0x0400 */
29#define OPT_FRSTATES FR_KEEPFRAG /* 0x0800 */
30#define OPT_IPSTATES FR_KEEPSTATE /* 0x1000 */
31#define OPT_INACTIVE FR_INACTIVE /* 0x2000 */
32#define OPT_SHOWLINENO 0x04000
33#define OPT_PRINTFR 0x08000
34#define OPT_ZERORULEST 0x10000
35#define OPT_SAVEOUT 0x20000
10 */
11
12#ifndef __IPF_H__
13#define __IPF_H__
14
15#ifndef SOLARIS
16#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
17#endif

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

28#define OPT_ACCNT FR_ACCOUNT /* 0x0400 */
29#define OPT_FRSTATES FR_KEEPFRAG /* 0x0800 */
30#define OPT_IPSTATES FR_KEEPSTATE /* 0x1000 */
31#define OPT_INACTIVE FR_INACTIVE /* 0x2000 */
32#define OPT_SHOWLINENO 0x04000
33#define OPT_PRINTFR 0x08000
34#define OPT_ZERORULEST 0x10000
35#define OPT_SAVEOUT 0x20000
36#define OPT_AUTHSTATS 0x40000
37#define OPT_RAW 0x80000
36
37#ifndef __P
38# ifdef __STDC__
39# define __P(x) x
40# else
41# define __P(x) ()
42# endif
43#endif
44
38
39#ifndef __P
40# ifdef __STDC__
41# define __P(x) x
42# else
43# define __P(x) ()
44# endif
45#endif
46
47#ifdef ultrix
48extern char *strdup __P((char *));
49#endif
50
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
52struct ipopt_names {
53 int on_value;
54 int on_bit;
55 int on_siz;
56 char *on_name;
57};
58
59
51extern struct frentry *parse __P((char *));
52
53extern void printfr __P((struct frentry *));
54extern void binprint __P((struct frentry *)), initparse __P((void));
55extern u_short portnum __P((char *));
56
57
58struct ipopt_names {
59 int on_value;
60 int on_bit;
61 int on_siz;
62 char *on_name;
63};
64
65
60extern u_long buildopts __P((char *, char *));
61extern u_long hostnum __P((char *, int *));
62extern u_long optname __P((char ***, u_short *));
63extern void printpacket __P((struct ip *));
66extern u_32_t buildopts __P((char *, char *, int));
67extern u_32_t hostnum __P((char *, int *));
68extern u_32_t optname __P((char ***, u_short *));
69extern void printpacket __P((ip_t *));
64#if SOLARIS
65extern int inet_aton __P((const char *, struct in_addr *));
66#endif
67
68#ifdef sun
69#define STRERROR(x) sys_errlist[x]
70extern char *sys_errlist[];
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__ */
70#if SOLARIS
71extern int inet_aton __P((const char *, struct in_addr *));
72#endif
73
74#ifdef sun
75#define STRERROR(x) sys_errlist[x]
76extern char *sys_errlist[];
77#else
78#define STRERROR(x) strerror(x)
79#endif
80
81#ifndef MIN
82#define MIN(a,b) ((a) > (b) ? (b) : (a))
83#endif
84
85#endif /* __IPF_H__ */