summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-04-19 15:21:54 +0000
committerbluhm <bluhm@openbsd.org>2017-04-19 15:21:54 +0000
commit9b6a64127deb1b83dcff3be06f373dc1b5768659 (patch)
treeff4da2e8a92f18a35edd5325b6a48e6b79700f28 /sys/netinet/tcp_input.c
parentUpdate to terminfo.src 2017-04-01. (diff)
downloadwireguard-openbsd-9b6a64127deb1b83dcff3be06f373dc1b5768659.tar.xz
wireguard-openbsd-9b6a64127deb1b83dcff3be06f373dc1b5768659.zip
Use the rt_rmx defines that hide the struct rt_kmetrics indirection.
No binary change. OK mpi@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 4fdfac19491..cc6c08609be 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.340 2017/04/17 20:59:35 bluhm Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.341 2017/04/19 15:21:54 bluhm Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -2950,12 +2950,12 @@ tcp_mss(struct tcpcb *tp, int offer)
* if there's an mtu associated with the route and we support
* path MTU discovery for the underlying protocol family, use it.
*/
- if (rt->rt_rmx.rmx_mtu) {
+ if (rt->rt_mtu) {
/*
* One may wish to lower MSS to take into account options,
* especially security-related options.
*/
- if (tp->pf == AF_INET6 && rt->rt_rmx.rmx_mtu < IPV6_MMTU) {
+ if (tp->pf == AF_INET6 && rt->rt_mtu < IPV6_MMTU) {
/*
* RFC2460 section 5, last paragraph: if path MTU is
* smaller than 1280, use 1280 as packet size and
@@ -2964,7 +2964,7 @@ tcp_mss(struct tcpcb *tp, int offer)
mss = IPV6_MMTU - iphlen - sizeof(struct ip6_frag) -
sizeof(struct tcphdr);
} else {
- mss = rt->rt_rmx.rmx_mtu - iphlen -
+ mss = rt->rt_mtu - iphlen -
sizeof(struct tcphdr);
}
} else if (ifp->if_flags & IFF_LOOPBACK) {