diff options
author | pst <pst@FreeBSD.org> | 1996-08-13 19:43:41 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-08-13 19:43:41 +0000 |
commit | cebbb4d75dc810dc5b828857e106d0047dc14d1e (patch) | |
tree | 28ebdb76530100a06ba37e266e30010da1624268 /sys/netinet/ip_fw.h | |
parent | ec444da95fd9d19755af5b5e1f976423bc345a7b (diff) | |
download | FreeBSD-src-cebbb4d75dc810dc5b828857e106d0047dc14d1e.zip FreeBSD-src-cebbb4d75dc810dc5b828857e106d0047dc14d1e.tar.gz |
Completely rewrite handling of protocol field for firewalls, things are
now completely consistent across all IP protocols and should be quite a
bit faster.
Discussed with: fenner & alex
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r-- | sys/netinet/ip_fw.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index b63bc74..6efa66b 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -11,7 +11,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id: ip_fw.h,v 1.20 1996/06/09 23:46:21 alex Exp $ + * $Id: ip_fw.h,v 1.21 1996/07/10 19:44:24 julian Exp $ */ /* @@ -53,6 +53,7 @@ struct ip_fw { unsigned fw_icmptypes[IP_FW_ICMPTYPES_DIM]; /* ICMP types bitmap */ long timestamp; /* timestamp (tv_sec) of last match */ u_short fw_divert_port; /* Divert port (options IPDIVERT) */ + u_char fw_prot; /* IP protocol */ }; struct ip_fw_chain { @@ -63,13 +64,6 @@ struct ip_fw_chain { /* * Values for "flags" field . */ - -#define IP_FW_F_ALL 0x0000 /* This is a universal packet rule */ -#define IP_FW_F_TCP 0x0001 /* This is a TCP packet rule */ -#define IP_FW_F_UDP 0x0002 /* This is a UDP packet rule */ -#define IP_FW_F_ICMP 0x0003 /* This is a ICMP packet rule */ -#define IP_FW_F_KIND 0x0003 /* Mask to isolate rule kind */ - #define IP_FW_F_IN 0x0004 /* Inbound */ #define IP_FW_F_OUT 0x0008 /* Outbound */ |