o IN_MULTICAST wants an address in host byte order.

PR:		kern/60304
Submitted by:	demon
MFC after:	1 week
This commit is contained in:
maxim 2003-12-16 18:21:47 +00:00
parent 5569c81803
commit afca980e9b

View File

@ -2050,7 +2050,7 @@ ipfw_chk(struct ip_fw_args *args)
(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;