diff options
author | 2013-08-13 09:52:53 +0000 | |
---|---|---|
committer | 2013-08-13 09:52:53 +0000 | |
commit | 89868e068aa65a752341f79174610c38a24806bd (patch) | |
tree | ef34c3a18a7a36828d4fb7d0d7c1d301391b22b0 /sys/netinet/tcp_input.c | |
parent | addition for 64bit time_t (diff) | |
download | wireguard-openbsd-89868e068aa65a752341f79174610c38a24806bd.tar.xz wireguard-openbsd-89868e068aa65a752341f79174610c38a24806bd.zip |
When net.inet.ip.sourceroute is enable, store the source route
of incoming IPv4 packets with the SSRR or LSRR header option in
a m_tag rather than in a single static entry.
Use a new m_tag type, PACKET_TAG_SRCROUTE, for this and bump
PACKET_TAG_MAXSIZE accordingly.
Adapted from FreeBSD r135274 with inputs from bluhm@.
ok bluhm@, mikeb@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 734ae46c916..5dd996f336d 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.266 2013/07/31 15:41:52 mikeb Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.267 2013/08/13 09:52:53 mpi Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -3769,7 +3769,7 @@ syn_cache_get(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th, case AF_INET: inp->inp_laddr = ((struct sockaddr_in *)dst)->sin_addr; - inp->inp_options = ip_srcroute(); + inp->inp_options = ip_srcroute(m); if (inp->inp_options == NULL) { inp->inp_options = sc->sc_ipopts; sc->sc_ipopts = NULL; @@ -4043,7 +4043,7 @@ syn_cache_add(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th, /* * Remember the IP options, if any. */ - ipopts = ip_srcroute(); + ipopts = ip_srcroute(m); break; #endif default: |