summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorhaesbaert <haesbaert@openbsd.org>2011-10-15 18:56:52 +0000
committerhaesbaert <haesbaert@openbsd.org>2011-10-15 18:56:52 +0000
commitf52f1072fbd0c5411270d068d73d44251f660d9d (patch)
tree91ca7cbdfb8fe38bef6e2094908fec02f0e2cabb /sys/netinet/tcp_input.c
parenteither set or unset variables that are to be examined further on, don't (diff)
downloadwireguard-openbsd-f52f1072fbd0c5411270d068d73d44251f660d9d.tar.xz
wireguard-openbsd-f52f1072fbd0c5411270d068d73d44251f660d9d.zip
Respect the ToS setting in tcp syn+ack for IPv4, still need to fix for
IPv6. ok claudio@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 2cb29ea6c53..f68750f85cc 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.250 2011/05/13 14:31:16 oga Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.251 2011/10/15 18:56:52 haesbaert Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -4401,7 +4401,8 @@ syn_cache_respond(struct syn_cache *sc, struct mbuf *m)
case AF_INET:
ip->ip_len = htons(tlen);
ip->ip_ttl = inp ? inp->inp_ip.ip_ttl : ip_defttl;
- /* XXX tos? */
+ if (inp != NULL)
+ ip->ip_tos = inp->inp_ip.ip_tos;
break;
#endif
#ifdef INET6