diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-31 23:58:04 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-31 23:58:04 +0000 |
commit | 7add8247a95fce1bb4338181aa85418680ef8718 (patch) | |
tree | 85f75e2dbf68ce15174a8e346cd56d55f3969749 /sys/netinet/ip_fw.h | |
parent | 08c34cf73fe7d9e913d0bd19c2b7439b2cea671a (diff) | |
download | FreeBSD-src-7add8247a95fce1bb4338181aa85418680ef8718.zip FreeBSD-src-7add8247a95fce1bb4338181aa85418680ef8718.tar.gz |
Latest changes from Uben.
Submitted by: uben
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r-- | sys/netinet/ip_fw.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index f1ecfc7..fa2c36b 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -19,6 +19,8 @@ * flags and num_*_ports are stored in host byte order (of course). * Port numbers are stored in HOST byte order. */ +#ifndef _IP_FW_H +#define _IP_FW_H struct ip_firewall { struct ip_firewall *next; /* Next firewall on chain */ @@ -41,7 +43,8 @@ struct ip_firewall { * order). * (ports[0] <= port <= ports[1]) */ -#define IP_FIREWALL_FLAG_BITS 0x1f /* All possible flag bits */ +#define IP_FIREWALL_PRINT 32 /* In verbos mode print this firewall */ +#define IP_FIREWALL_FLAG_BITS 0x2f /* All possible flag bits */ u_short num_src_ports, num_dst_ports;/* # of src ports and # of dst ports */ /* in ports array (dst ports follow */ /* src ports; max of 10 ports in all; */ @@ -69,9 +72,4 @@ extern struct ip_firewall *ip_fw_blk_chain; extern struct ip_firewall *ip_fw_fwd_chain; extern int ip_fw_policy; -#ifdef IPFIREWALL_VERBOSE -#define ip_firewall_check ip_firewall_check_print -#else -#define ip_firewall_check ip_firewall_check_noprint #endif - |