Lines Matching defs:mtu
194 * Type of "mtu": rt_rmx.rmx_mtu is u_long, ifnet.ifr_mtu is int, and
220 u_long mtu;
696 /* Determine path MTU. */
700 * Use ro_pmtu destination since MTU might differ.
713 error = ip6_getpmtu(rt_pmtu, ifp, &mtu, &alwaysfrag);
719 * The caller of this function may specify to use the minimum MTU
721 * An advanced API option (IPV6_USE_MIN_MTU) can also override MTU
723 * packets will follow path MTU while multicast packets will be sent at
724 * the minimum MTU. If IP6PO_MINMTU_ALL is specified, all packets
725 * including unicast ones will be sent at the minimum MTU. Multicast
726 * packets will always be sent at the minimum MTU unless
730 if (mtu > IPV6_MMTU) {
732 mtu = IPV6_MMTU;
734 mtu = IPV6_MMTU;
738 mtu = IPV6_MMTU;
786 * 1-a: send as is if tlen <= path mtu
787 * 1-b: fragment if tlen > path mtu
790 * 2-a: send as is if tlen <= interface mtu
791 * 2-b: error if tlen > interface mtu
815 * packet when the data length is larger than the MTU of the
824 mtu32 = (u_int32_t)mtu;
838 if (dontfrag || (!alwaysfrag && (tlen <= mtu || tso))) {
883 if (mtu < IPV6_MMTU) {
884 /* path MTU cannot be less than IPV6_MMTU */
902 if (mtu > IPV6_MAXPACKET)
903 mtu = IPV6_MAXPACKET;
908 len = (mtu - hlen - sizeof(struct ip6_frag)) & ~7;
1251 u_int32_t mtu = 0;
1258 mtu = rt->rt_rmx.rmx_mtu;
1259 if (mtu == 0)
1260 mtu = ifp->if_mtu;
1261 else if (mtu < IPV6_MMTU) {
1265 * mtu < IPV6_MMTU, transmit packets sized IPV6_MMTU
1271 mtu = IPV6_MMTU;
1272 } else if (mtu > ifp->if_mtu) {
1274 * The MTU on the route is larger than the MTU on
1276 * MTU of the interface has been changed after the
1277 * interface was brought up. Change the MTU in the
1278 * route to match the interface MTU (as long as the
1281 mtu = ifp->if_mtu;
1283 rt->rt_rmx.rmx_mtu = mtu;
1286 mtu = ifp->if_mtu;
1290 *mtup = mtu;