summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-10-15 18:56:53 +0000
committerChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-10-15 18:56:53 +0000
commitae0a9206a9212a9f09180c0e6c63b4973377fc50 (patch)
treed3bfd99c5e489633e56408b7f343c1262eb8d0bf /sys
parentd59bb2b95ef263e769850687e2912c90c3aa0ab7 (diff)
Respect the ToS setting in tcp syn+ack for IPv4, still need to fix for
IPv6. ok claudio@
Diffstat (limited to 'sys')
-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