summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2002-06-14 02:43:20 +0000
committersilby <silby@FreeBSD.org>2002-06-14 02:43:20 +0000
commit0bbc7c9dc50832c581f689991f9b7d5fa84ba9f9 (patch)
treed81e580768ff8c7a96e46e644c7128863a0f9f97 /sys/netinet/tcp_syncache.c
parentacb0745bfa68988b8d0cde904671fa3ec632f361 (diff)
downloadFreeBSD-src-0bbc7c9dc50832c581f689991f9b7d5fa84ba9f9.zip
FreeBSD-src-0bbc7c9dc50832c581f689991f9b7d5fa84ba9f9.tar.gz
Back out ip_tos/ip_ttl/DF "fix", it just panic'd my box. :)
Pointy-hat to: silby
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index e4c467e..40defbe 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1128,24 +1128,6 @@ syncache_respond(sc, m)
th = (struct tcphdr *)(ip + 1);
}
-
- ip->ip_ttl = sc->sc_tp->t_inpcb->inp_ip_ttl; /* XXX */
- ip->ip_tos = sc->sc_tp->t_inpcb->inp_ip_tos; /* XXX */
-
- /*
- * See if we should do MTU discovery. We do it only if the following
- * are true:
- * 1) we have a valid route to the destination
- * 2) the MTU is not locked (if it is, then discovery has been
- * disabled)
- */
- if (path_mtu_discovery
- && (rt != NULL)
- && rt->rt_flags & RTF_UP
- && !(rt->rt_rmx.rmx_locks & RTV_MTU)) {
- ip->ip_off |= IP_DF;
- }
-
th->th_sport = sc->sc_inc.inc_lport;
th->th_dport = sc->sc_inc.inc_fport;
OpenPOWER on IntegriCloud