summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2006-10-11 12:14:28 +0000
committermaxim <maxim@FreeBSD.org>2006-10-11 12:14:28 +0000
commit3194151ff3ef336e29abfc8e8be6a22bf96c4468 (patch)
tree71bccfd3797ebf0daaebb07edd568ff511ac6c21
parent69b55f4fa1ced3348aec046fa4c9b02c1d9b9e95 (diff)
downloadFreeBSD-src-3194151ff3ef336e29abfc8e8be6a22bf96c4468.zip
FreeBSD-src-3194151ff3ef336e29abfc8e8be6a22bf96c4468.tar.gz
o Do not do args->f_id.addr_type == 6 when there is
IS_IP6_FLOW_ID() exactly for that.
-rw-r--r--sys/netinet/ip_fw2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index eb292a4..2c6b461 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -881,7 +881,7 @@ ipfw_log(struct ip_fw *f, u_int hlen, struct ip_fw_args *args,
src[0] = '\0';
dst[0] = '\0';
#ifdef INET6
- if (args->f_id.addr_type == 6) {
+ if (IS_IP6_FLOW_ID(&(args->f_id))) {
snprintf(src, sizeof(src), "[%s]",
ip6_sprintf(&args->f_id.src_ip6));
snprintf(dst, sizeof(dst), "[%s]",
@@ -956,7 +956,7 @@ ipfw_log(struct ip_fw *f, u_int hlen, struct ip_fw_args *args,
}
#ifdef INET6
- if (args->f_id.addr_type == 6) {
+ if (IS_IP6_FLOW_ID(&(args->f_id))) {
if (offset & (IP6F_OFF_MASK | IP6F_MORE_FRAG))
snprintf(SNPARGS(fragment, 0),
" (frag %08x:%d@%d%s)",
OpenPOWER on IntegriCloud