diff options
author | oleg <oleg@FreeBSD.org> | 2006-06-08 11:27:45 +0000 |
---|---|---|
committer | oleg <oleg@FreeBSD.org> | 2006-06-08 11:27:45 +0000 |
commit | 4dd02491697479c51d08688bd5e22d78556524af (patch) | |
tree | 7347e2b1d602cb17f035083330e305bce024852e /sys/netinet/ip_fw2.c | |
parent | a2786b9de3cf6476a6352722252fea390d406c40 (diff) | |
download | FreeBSD-src-4dd02491697479c51d08688bd5e22d78556524af.zip FreeBSD-src-4dd02491697479c51d08688bd5e22d78556524af.tar.gz |
install_state() should properly initialize 'addr_type' field of newly created
flows for O_LIMIT rules. Otherwise 'ipfw -d show' is unable to display
PARENT rules properly.
(This bug was exposed by ipfw2.c rev.1.90)
Approved by: glebius (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r-- | sys/netinet/ip_fw2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index bb4933b..a723eda 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -1473,6 +1473,7 @@ install_state(struct ip_fw *rule, ipfw_insn_limit *cmd, id.dst_ip = id.src_ip = 0; id.dst_port = id.src_port = 0; id.proto = args->f_id.proto; + id.addr_type = args->f_id.addr_type; if (IS_IP6_FLOW_ID (&(args->f_id))) { if (limit_mask & DYN_SRC_ADDR) |