Searched refs:mtu (Results 1 - 19 of 19) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet6/
H A Dip6_forward.c519 uint32_t mtu; local
526 mtu = rt->rt_ifp->if_mtu;
531 * from mtu value). The code is much simpler than v4
540 if (ipsechdrsiz < mtu)
541 mtu -= ipsechdrsiz;
545 * if mtu becomes less than minimum MTU,
548 if (mtu < IPV6_MMTU)
549 mtu = IPV6_MMTU;
554 icmp6_error(mcopy, ICMP6_PACKET_TOO_BIG, 0, mtu);
H A Dip6_output.c267 * type of "mtu": rt_rmx.rmx_mtu is u_int32_t, ifnet.ifr_mtu is int, and
290 u_int32_t mtu; local
370 mtu = dn_tag->dn_mtu;
1139 if ((error = ip6_getpmtu(ro_pmtu, ro, ifp, &finaldst, &mtu,
1155 if (mtu > IPV6_MMTU) {
1157 mtu = IPV6_MMTU;
1159 mtu = IPV6_MMTU;
1163 mtu = IPV6_MMTU;
1243 args.fwa_mtu = mtu;
1276 * 1-a: send as is if tlen <= path mtu
1753 u_int32_t mtu = 0; local
[all...]
H A Dnd6.h702 u_int32_t mtu; member in struct:kev_nd6_ra_data
754 struct nd_opt_mtu *mtu; member in struct:nd_opts::__anon438
766 #define nd_opts_mtu nd_opt_each.mtu
H A Dicmp6.c1191 u_int mtu = ntohl(icmp6->icmp6_mtu); local
1198 if (mtu < sizeof(struct ip6_hdr) + sizeof(struct ip6_frag) + 8)
1205 * In case the suggested mtu is less than IPV6_MMTU, we
1210 if (mtu < IPV6_MMTU)
1211 mtu = IPV6_MMTU - 8;
1229 mtu < IN6_LINKMTU(rt->rt_ifp) &&
1230 rt->rt_rmx.rmx_mtu > mtu) {
1232 rt->rt_rmx.rmx_mtu = mtu;
H A Dnd6_rtr.c384 u_int32_t mtu = 0; local
623 mtu = ntohl(ndopts.nd_opts_mtu->nd_opt_mtu_mtu);
626 if (mtu < IPV6_MMTU) {
627 nd6log((LOG_INFO, "nd6_ra_input: bogus mtu option "
628 "mtu=%d sent from %s, ignoring\n",
629 mtu, ip6_sprintf(&ip6->ip6_src)));
643 if (mtu <= ndi->maxmtu) {
644 int change = (ndi->linkmtu != mtu);
646 ndi->linkmtu = mtu;
652 nd6log((LOG_INFO, "nd6_ra_input: bogus mtu "
[all...]
H A Dip6_input.c1777 ip6_notify_pmtu(struct inpcb *in6p, struct sockaddr_in6 *dst, u_int32_t *mtu) argument
1785 if (mtu == NULL)
1794 mtuctl.ip6m_mtu = *mtu;
H A Dnd6.c1050 u_int32_t list_length, u_int32_t mtu, char *dl_addr, u_int32_t dl_addr_len)
1067 if (mtu > 0 && mtu >= IPV6_MMTU) {
1068 nd6_ra_msg_data.mtu = mtu;
1049 nd6_post_msg(u_int32_t code, struct nd_prefix_list *prefix_list, u_int32_t list_length, u_int32_t mtu, char *dl_addr, u_int32_t dl_addr_len) argument
/darwin-on-arm/xnu/bsd/net/
H A Dif_gif.c607 u_int32_t mtu; local
608 mtu = ifr->ifr_mtu;
609 if (mtu < GIF_MTU_MIN || mtu > GIF_MTU_MAX) {
612 ifnet_set_mtu(ifp, mtu);
H A Dif_mib.c154 DONTCOPY(mtu);
H A Dif_vlan.c396 static int ifvlan_new_mtu(ifvlan_ref ifv, int mtu);
552 siocsifaltmtu(struct ifnet * ifp, int mtu) argument
557 ifr.ifr_mtu = mtu;
1568 /* back-out any effect our mtu might have had on the parent */
1670 ifvlan_new_mtu(ifvlan_ref ifv, int mtu) argument
1683 req_mtu = mtu + ifv->ifv_mtufudge;
1704 ifnet_set_mtu(ifp, mtu);
1710 vlan_set_mtu(struct ifnet * ifp, int mtu) argument
1716 if (mtu < IF_MINMTU) {
1729 if (mtu !
[all...]
H A Dif_bond.c674 siocsifmtu(struct ifnet * ifp, int mtu) argument
679 ifr.ifr_mtu = mtu;
2008 printf("if_bond: interface %s doesn't support mtu %d",
2609 bond_set_mtu_on_ports(ifbond_ref ifb, int mtu) argument
2615 error = siocsifmtu(p->po_ifp, mtu);
2626 bond_set_mtu(struct ifnet * ifp, int mtu, int isdevmtu) argument
2650 if (mtu > mtu_max) {
2654 if (mtu < mtu_min && (isdevmtu == 0 || mtu != 0)) {
2655 /* allow SIOCSIFALTMTU to set the mtu t
[all...]
H A Dkpi_interface.h1930 @param mtu The new MTU.
1933 extern errno_t ifnet_set_mtu(ifnet_t interface, u_int32_t mtu);
H A Dkpi_interface.c908 ifnet_set_mtu(ifnet_t interface, u_int32_t mtu) argument
913 interface->if_mtu = mtu;
/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched_rmclass.c734 int i, mtu; local
747 mtu = ifp->if_mtu;
748 if (mtu < 1) {
759 ifd->maxpkt_ = mtu;
763 ifd->maxiftime_ = mtu * nsecPerByte / 1000 * 16;
764 if (mtu * nsecPerByte > 10 * 1000000)
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_subr.c735 u_int32_t mtu = ifp->if_mtu; local
739 if (mtu < IF_MINMTU)
740 mtu = IF_MINMTU;
745 idepth = TBR_SCALE(i * mtu);
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_subr.c1775 int mtu; local
1786 mtu = ntohs(icp->icmp_nextmtu);
1787 if (!mtu)
1788 mtu = ip_next_mtu(rt->rt_rmx.
1794 sizeof (ipv4str)), mtu);
1796 if (mtu < max(296, (tcp_minmss +
1801 } else if (rt->rt_rmx.rmx_mtu > mtu) {
1802 rt->rt_rmx.rmx_mtu = mtu;
H A Dip_icmp.c867 ip_next_mtu(int mtu, int dir) argument
876 if (mtu >= mtutab[i])
889 } else if(mtu > mtutab[i]) {
H A Dip_output.c1829 ip_fragment(struct mbuf *m, struct ifnet *ifp, unsigned long mtu, int sw_csum) argument
1843 firstlen = len = (mtu - hlen) &~ 7;
H A Dip_input.c286 SYSCTL_INT(_net_inet_ip, IPCTL_DEFMTU, mtu, CTLFLAG_RW | CTLFLAG_LOCKED,

Completed in 109 milliseconds