diff options
author | 2000-09-18 22:06:36 +0000 | |
---|---|---|
committer | 2000-09-18 22:06:36 +0000 | |
commit | 62c4355e0f896ae5d33dc8e181b593b965dc1a7c (patch) | |
tree | 227ac38b9696134dc2a925911c014f9a9500df85 /sys/netinet/tcp_output.c | |
parent | fix reversed muting; patch from: jason@ (diff) | |
download | wireguard-openbsd-62c4355e0f896ae5d33dc8e181b593b965dc1a7c.tar.xz wireguard-openbsd-62c4355e0f896ae5d33dc8e181b593b965dc1a7c.zip |
Path MTU discovery based on NetBSD but with the decision to use the DF
flag delayed to ip_output(). That halves the code and reduces most of
the route lookups. okay deraadt@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index a746eea1b41..8b6ad202982 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.31 2000/09/05 21:57:41 provos Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.32 2000/09/18 22:06:38 provos Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -1033,7 +1033,9 @@ send: ip->ip_tos = tp->t_inpcb->inp_ip.ip_tos; } error = ip_output(m, tp->t_inpcb->inp_options, - &tp->t_inpcb->inp_route, so->so_options & SO_DONTROUTE, + &tp->t_inpcb->inp_route, + (ip_mtudisc ? IP_MTUDISC : 0) | + (so->so_options & SO_DONTROUTE), 0, tp->t_inpcb); break; #endif /* INET */ |