From dfabcc1d29f195f5ce45b6fc0c46707fbccc8ae1 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Mon, 26 Jun 2006 09:43:55 +0000 Subject: [PATCH] Reverse the source/destination parameters to in[6]_pcblookup_hash() in syncache_respond() for the #ifdef MAC case. Submitted by: Tai-hwa Liang --- sys/netinet/tcp_syncache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 50e7987907f..16a46839970 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);