summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-12-16 18:21:47 +0000
committermaxim <maxim@FreeBSD.org>2003-12-16 18:21:47 +0000
commit90bd792be8d9b22439dae12294246804366828e5 (patch)
treeca24d45ee63e0a8055fd5a44ed9a962fe30e9d39 /sys/netinet/ip_fw2.c
parent68f2bd72ce4234e65c49314b3785df7e5e74e73a (diff)
downloadFreeBSD-src-90bd792be8d9b22439dae12294246804366828e5.zip
FreeBSD-src-90bd792be8d9b22439dae12294246804366828e5.tar.gz
o IN_MULTICAST wants an address in host byte order.
PR: kern/60304 Submitted by: demon MFC after: 1 week
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index c2578a0..1d0da35 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -2050,7 +2050,7 @@ check_body:
(proto != IPPROTO_ICMP ||
is_icmp_query(ip)) &&
!(m->m_flags & (M_BCAST|M_MCAST)) &&
- !IN_MULTICAST(dst_ip.s_addr)) {
+ !IN_MULTICAST(ntohl(dst_ip.s_addr))) {
send_reject(args, cmd->arg1,
offset,ip_len);
m = args->m;
OpenPOWER on IntegriCloud