Home
last modified time | relevance | path

Searched refs:maxmtu (Results 1 – 8 of 8) sorted by relevance

/freebsd-13.1/sys/netinet6/
H A Dnd6.h68 u_int32_t maxmtu; /* Upper bound of LinkMTU */ member
106 : ((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \
107 ? ND_IFINFO(ifp)->maxmtu : (ifp)->if_mtu))
148 u_int32_t maxmtu; /* Upper bound of LinkMTU */ member
H A Dnd6_rtr.c536 u_long maxmtu; in nd6_ra_input() local
549 maxmtu = (ndi->maxmtu && ndi->maxmtu < ifp->if_mtu) in nd6_ra_input()
550 ? ndi->maxmtu : ifp->if_mtu; in nd6_ra_input()
551 if (mtu <= maxmtu) { in nd6_ra_input()
563 mtu, ip6_sprintf(ip6bufs, &ip6->ip6_src), maxmtu)); in nd6_ra_input()
H A Dnd6.c351 omaxmtu = ndi->maxmtu; in nd6_setmtu0()
352 ndi->maxmtu = ifp->if_mtu; in nd6_setmtu0()
360 if (omaxmtu >= IPV6_MMTU && ndi->maxmtu < IPV6_MMTU) { in nd6_setmtu0()
363 if_name(ifp), (unsigned long)ndi->maxmtu); in nd6_setmtu0()
366 if (ndi->maxmtu > V_in6_maxmtu) in nd6_setmtu0()
1687 ND.maxmtu = ND_IFINFO(ifp)->maxmtu; in nd6_ioctl()
H A Din6.c2015 unsigned long maxmtu = 0; in in6_setmaxmtu() local
2024 IN6_LINKMTU(ifp) > maxmtu) in in6_setmaxmtu()
2025 maxmtu = IN6_LINKMTU(ifp); in in6_setmaxmtu()
2028 if (maxmtu) /* update only when maxmtu is positive */ in in6_setmaxmtu()
2029 V_in6_maxmtu = maxmtu; in in6_setmaxmtu()
/freebsd-13.1/usr.sbin/ppp/
H A Dlcp.c669 u_short mru, phmtu, maxmtu, maxmru, wantmtu, wantmru, proto; in LcpDecodeConfig() local
752 maxmtu = p ? physical_DeviceMTU(p) : 0; in LcpDecodeConfig()
753 if (lcp->cfg.max_mtu && (!maxmtu || maxmtu > lcp->cfg.max_mtu)) in LcpDecodeConfig()
754 maxmtu = lcp->cfg.max_mtu; in LcpDecodeConfig()
756 if (maxmtu && wantmtu > maxmtu) { in LcpDecodeConfig()
758 fp->link->name, wantmtu, maxmtu); in LcpDecodeConfig()
759 wantmtu = maxmtu; in LcpDecodeConfig()
762 if (maxmtu && mru > maxmtu) { in LcpDecodeConfig()
763 lcp->his_mru = maxmtu; in LcpDecodeConfig()
/freebsd-13.1/sys/netinet/
H A Dtcp_input.c3710 uint32_t maxmtu = 0; in tcp_mss_update() local
3751 if (maxmtu == 0) { in tcp_mss_update()
3803 mss = maxmtu - min_protoh; in tcp_mss_update()
3814 mss = maxmtu - min_protoh; in tcp_mss_update()
3936 uint32_t maxmtu = 0; in tcp_mssopt() local
3944 maxmtu = tcp_maxmtu6(inc, NULL); in tcp_mssopt()
3954 maxmtu = tcp_maxmtu(inc, NULL); in tcp_mssopt()
3962 if (maxmtu && thcmtu) in tcp_mssopt()
3963 mss = min(maxmtu, thcmtu) - min_protoh; in tcp_mssopt()
3964 else if (maxmtu || thcmtu) in tcp_mssopt()
[all …]
H A Dtcp_subr.c3412 uint32_t maxmtu = 0; in tcp_maxmtu() local
3422 maxmtu = nh->nh_mtu; in tcp_maxmtu()
3435 return (maxmtu); in tcp_maxmtu()
3447 uint32_t maxmtu = 0; in tcp_maxmtu6() local
3461 maxmtu = nh->nh_mtu; in tcp_maxmtu6()
3475 return (maxmtu); in tcp_maxmtu6()
/freebsd-13.1/usr.sbin/ndp/
H A Dndp.c985 printf(", maxmtu=%d", ND.maxmtu); in ifinfo()