diff options
author | jlemon <jlemon@FreeBSD.org> | 2003-02-19 22:32:43 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2003-02-19 22:32:43 +0000 |
commit | a8bc02dcb257f24a8246bb1c31abe58bf12ebd04 (patch) | |
tree | 6317b858b0555a797efb2e5b5bd4c2eebbdc0d10 /sys/netinet/ip_output.c | |
parent | 79a1ebfa6f53d733dc4775c2031ff3d16e53b75c (diff) | |
download | FreeBSD-src-a8bc02dcb257f24a8246bb1c31abe58bf12ebd04.zip FreeBSD-src-a8bc02dcb257f24a8246bb1c31abe58bf12ebd04.tar.gz |
Add a TCP TIMEWAIT state which uses less space than a fullblown TCP
control block. Allow the socket and tcpcb structures to be freed
earlier than inpcb. Update code to understand an inp w/o a socket.
Reviewed by: hsu, silby, jayanth
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 64e58e2..c6cefc4 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -470,10 +470,10 @@ ip_output(m0, opt, ro, flags, imo, inp) sendit: #ifdef IPSEC /* get SP for this packet */ - if (so == NULL) + if (inp == NULL) sp = ipsec4_getpolicybyaddr(m, IPSEC_DIR_OUTBOUND, flags, &error); else - sp = ipsec4_getpolicybysock(m, IPSEC_DIR_OUTBOUND, so, &error); + sp = ipsec4_getpolicybypcb(m, IPSEC_DIR_OUTBOUND, inp, &error); if (sp == NULL) { ipsecstat.out_inval++; |