diff options
author | dg <dg@FreeBSD.org> | 1994-05-26 09:51:33 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-05-26 09:51:33 +0000 |
commit | 28839c379536620b072ba59884f5eed06d72e94d (patch) | |
tree | 269d670ee739deafbfc337abc5c550f4d31d0052 /sys | |
parent | b644edeb7c8835b5fad271f62d26b1a26f98e94f (diff) | |
download | FreeBSD-src-28839c379536620b072ba59884f5eed06d72e94d.zip FreeBSD-src-28839c379536620b072ba59884f5eed06d72e94d.tar.gz |
Added missing ntohl()'s that are needed before calling IN_MULTICAST in
a couple of places.
Submitted by: Johannes Helander
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 3af8140..13849d4 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -547,7 +547,7 @@ findpcb: * packet with M_BCAST not set. */ if (m->m_flags & (M_BCAST|M_MCAST) || - IN_MULTICAST(ti->ti_dst.s_addr)) + IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) goto drop; am = m_get(M_DONTWAIT, MT_SONAME); /* XXX */ if (am == NULL) @@ -1289,7 +1289,7 @@ dropwithreset: * Don't bother to respond if destination was broadcast/multicast. */ if ((tiflags & TH_RST) || m->m_flags & (M_BCAST|M_MCAST) || - IN_MULTICAST(ti->ti_dst.s_addr)) + IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) goto drop; if (tiflags & TH_ACK) tcp_respond(tp, ti, m, (tcp_seq)0, ti->ti_ack, TH_RST); diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 3af8140..13849d4 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -547,7 +547,7 @@ findpcb: * packet with M_BCAST not set. */ if (m->m_flags & (M_BCAST|M_MCAST) || - IN_MULTICAST(ti->ti_dst.s_addr)) + IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) goto drop; am = m_get(M_DONTWAIT, MT_SONAME); /* XXX */ if (am == NULL) @@ -1289,7 +1289,7 @@ dropwithreset: * Don't bother to respond if destination was broadcast/multicast. */ if ((tiflags & TH_RST) || m->m_flags & (M_BCAST|M_MCAST) || - IN_MULTICAST(ti->ti_dst.s_addr)) + IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) goto drop; if (tiflags & TH_ACK) tcp_respond(tp, ti, m, (tcp_seq)0, ti->ti_ack, TH_RST); |