Home | History | Annotate | Download | only in netinet

Lines Matching defs:mtu

148  * List of callbacks to notify when Path MTU changes are made.
217 * Register a Path MTU Discovery callback.
1148 u_long mtu = ntohs(icp->icmp_nextmtu); /* Why a long? IPv6 */
1179 if (mtu == 0) {
1182 mtu = ntohs(icp->icmp_ip.ip_len);
1184 if (mtu > rt->rt_rmx.rmx_mtu && rt->rt_rmx.rmx_mtu != 0)
1185 mtu -= (icp->icmp_ip.ip_hl << 2);
1188 if (mtu == 0) {
1189 mtu = rt->rt_rmx.rmx_mtu;
1191 /* If no route mtu, default to the interface mtu */
1192 if (mtu == 0)
1193 mtu = rt->rt_ifp->if_mtu;
1197 if (mtu > mtu_table[i]) {
1198 mtu = mtu_table[i];
1213 if (mtu < 296 || mtu > rt->rt_ifp->if_mtu)
1215 else if (rt->rt_rmx.rmx_mtu > mtu ||
1218 rt->rt_rmx.rmx_mtu = mtu;
1226 * Notify protocols that the MTU for this destination
1237 * Return the next larger or smaller MTU plateau (table from RFC 1191)
1238 * given current value MTU. If DIR is less than zero, a larger plateau
1242 ip_next_mtu(u_int mtu, int dir) /* XXX unused */
1247 if (mtu >= mtu_table[i])
1260 } else if (mtu > mtu_table[i]) {