diff options
author | andre <andre@FreeBSD.org> | 2006-06-26 09:43:55 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-06-26 09:43:55 +0000 |
commit | 03888640de89d48d5a7a69ab8381837a93a69958 (patch) | |
tree | 3dacb453498a20ffbad434b59b49440acdc21f27 /sys/netinet/tcp_syncache.c | |
parent | a46d883eaeab0b42f8c6f476f2382acc96850d1a (diff) | |
download | FreeBSD-src-03888640de89d48d5a7a69ab8381837a93a69958.zip FreeBSD-src-03888640de89d48d5a7a69ab8381837a93a69958.tar.gz |
Reverse the source/destination parameters to in[6]_pcblookup_hash() in
syncache_respond() for the #ifdef MAC case.
Submitted by: Tai-hwa Liang <avatar-at-mmlab.cse.yzu.edu.tw>
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 50e7987..16a4683 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -1100,14 +1100,14 @@ syncache_respond(struct syncache *sc, struct mbuf *m) #ifdef INET6 /* && MAC */ if (sc->sc_inc.inc_isipv6) inp = in6_pcblookup_hash(&tcbinfo, - &sc->sc_inc.inc6_laddr, sc->sc_inc.inc_lport, &sc->sc_inc.inc6_faddr, sc->sc_inc.inc_fport, + &sc->sc_inc.inc6_laddr, sc->sc_inc.inc_lport, 1, NULL); else #endif /* INET6 */ inp = in_pcblookup_hash(&tcbinfo, - sc->sc_inc.inc_laddr, sc->sc_inc.inc_lport, sc->sc_inc.inc_faddr, sc->sc_inc.inc_fport, + sc->sc_inc.inc_laddr, sc->sc_inc.inc_lport, 1, NULL); if (inp == NULL) { m_freem(m); |