/src/sys/netbt/ |
l2cap_upper.c | 448 uint16_t mtu; local in function:l2cap_setopt 451 case SO_L2CAP_IMTU: /* set Incoming MTU */ 452 err = sockopt_get(sopt, &mtu, sizeof(mtu)); 456 if (mtu < L2CAP_MTU_MINIMUM) 459 chan->lc_imtu = mtu; 505 case SO_L2CAP_IMTU: /* get Incoming MTU */ 508 case SO_L2CAP_OMTU: /* get Outgoing MTU */
|
rfcomm_upper.c | 445 uint16_t mtu; local in function:rfcomm_setopt 449 err = sockopt_get(sopt, &mtu, sizeof(mtu)); 453 if (mtu < RFCOMM_MTU_MIN || mtu > RFCOMM_MTU_MAX) 456 dlc->rd_mtu = mtu;
|
/src/usr.sbin/btpand/ |
client.c | 49 uint16_t mru, mtu; local in function:client_init 116 len = sizeof(mtu); 117 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { 121 if (mtu < BNEP_MTU_MIN) { 122 log_err("L2CAP OMTU too small (%d)", mtu); 132 if (n < (mtu * 2)) { 133 n = mtu * 2; 140 n = mtu; 155 chan->mtu = mtu; [all...] |
server.c | 138 uint16_t mru, mtu; local in function:server_read 178 len = sizeof(mtu); 179 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { 184 if (mtu < BNEP_MTU_MIN) { 185 log_err("L2CAP OMTU too small (%d)", mtu); 196 if (n < (mtu * 2)) { 197 n = mtu * 2; 204 n = mtu; 230 chan->mtu = mtu; [all...] |
btpand.h | 72 size_t mtu; member in struct:channel
|
/src/usr.sbin/altq/tbrconfig/ |
tbrconfig.c | 245 u_int size, mtu; local in function:size_bucket 247 mtu = get_ifmtu(ifname); 248 if (mtu > 1500) 249 mtu = 1500; /* assume that the path mtu is still 1500 */ 260 size = size * mtu; 271 u_int size, freq, mtu; local in function:autosize_bucket 273 mtu = get_ifmtu(ifname); 276 if (size < mtu) 277 size = mtu; 301 int s, mtu; local in function:get_ifmtu [all...] |
/src/sys/dev/pci/cxgb/ |
cxgb_toedev.h | 92 unsigned int mtu; /* max size of TX offloaded data */ member in struct:toedev
|
/src/sys/net/ |
if_srt.c | 107 int mtu; local in function:update_mtu 113 mtu = 65535; 116 if (r->u.dstifp->if_mtu < mtu) 117 mtu = r->u.dstifp->if_mtu; 119 sc->intf.if_mtu = mtu;
|
if_l2tp.c | 704 u_long mtu; local in function:l2tp_ioctl 734 mtu = ifr->ifr_mtu; 735 if (mtu < L2TP_MTU_MIN || mtu > L2TP_MTU_MAX) 737 ifp->if_mtu = mtu;
|
if_ipsec.c | 338 SYSCTL_DESCR("Default Path MTU setting for ipsec tunnels"), 408 SYSCTL_DESCR("Path MTU setting for this ipsec tunnel"), 799 u_long mtu; local in function:if_ipsec_ioctl 831 mtu = ifr->ifr_mtu; 832 if (mtu < IPSEC_MTU_MIN || mtu > IPSEC_MTU_MAX)
|
/src/usr.sbin/rtadvd/ |
if.c | 116 int s, mtu; local in function:if_getmtu 125 mtu = ifr.ifr_mtu; 127 mtu = 0; 130 return mtu;
|
rtadvd.c | 112 struct nd_opt_mtu *mtu; member in struct:nd_opts::__anon63a4f0fa0108 120 #define nd_opts_mtu nd_opt_each.mtu 1041 uint32_t reachabletime, retranstimer, mtu; local in function:ra_input 1163 /* Values in the MTU options */ 1165 mtu = ntohl(ndopts.nd_opts_mtu->nd_opt_mtu_mtu); 1166 if (mtu && rai->linkmtu && mtu != rai->linkmtu) { 1168 "%s: MTU option value inconsistent on %s:" 1171 rai->ifname, mtu, 1498 /* XXX: should be max MTU attached to the node * [all...] |
/src/sys/netinet6/ |
nd6.h | 131 struct nd_opt_mtu *mtu; member in struct:nd_opts::__anonefb13b950108 153 #define nd_opts_mtu nd_opt_each.mtu
|
ip6_output.c | 194 * Type of "mtu": rt_rmx.rmx_mtu is u_long, ifnet.ifr_mtu is int, and 220 u_long mtu; local in function:ip6_output 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. Multicas 1251 u_int32_t mtu = 0; local in function:ip6_getpmtu [all...] |
/src/sys/dist/pf/net/ |
if_pfsync.c | 1023 int mtu; local in function:pfsync_setmtu 1026 mtu = sc->sc_sync_ifp->if_mtu; 1028 mtu = mtu_req; 1030 sc->sc_maxcount = (mtu - sizeof(struct pfsync_header)) /
|
/src/sys/netipsec/ |
ipsecif.c | 196 int mtu; local in function:ipsecif4_needfrag 204 mtu = 0; 214 mtu = sav->esp_frag; 215 if (ntohs(ip->ip_len) <= mtu) 216 mtu = 0; 220 return mtu; 278 ipsecif4_fragout(struct ipsec_variant *var, int family, struct mbuf *m, int mtu) 292 if (mtu <= sizeof(struct ip)) { 297 error = ip_fragment(m, ifp, mtu - sizeof(struct ip)); 375 int mtu; local in function:ipsecif4_output [all...] |
/src/usr.sbin/bta2dpd/bta2dpd/ |
bta2dpd.c | 243 uint16_t mtu; variable in typeref:typename:uint16_t 578 "\t\t[-M mtu] [-V volume] [-f mode] [-b blocks] [-e bands]\n" 581 "\t\t[-a address] [-M mtu] [-r rate] [-I] -K file\n" 582 "\t%s -t [-v] [-K] [-r rate] [-M mtu] [-V volume] [-f mode]\n" 590 "\t-M mtu MTU for transmission\n" 828 getsockopt(sc, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &mtusize); 829 if (userset_mtu != 0 && userset_mtu > 100 && userset_mtu < mtu) 830 mtu = userset_mtu; 831 else if (userset_mtu == 0 && mtu >= 500 [all...] |
/src/usr.sbin/altq/libaltq/ |
qop.c | 132 LOG(LOG_INFO, 0, "%s enabled on interface %s (mtu:%d)", 165 LOG(LOG_INFO, 0, "%s enabled on interface %s (mtu:%d)", 834 int s, mtu; local in function:get_ifmtu 840 mtu = 512; /* default MTU */ 843 return (mtu); 848 mtu = ifdata.ifi_mtu; 851 mtu = ifr.ifr_mtu; 854 return (mtu); 911 size = size * 1500; /* assume the default mtu is 1500 * [all...] |
/src/sys/altq/ |
altq_rmclass.c | 669 int i, mtu; local in function:rmc_init 676 mtu = ifq->altq_ifp->if_mtu; 677 if (mtu < 1) { 678 printf("altq: %s: invalid MTU (interface not initialized?)\n", 688 ifd->maxpkt_ = mtu; 692 ifd->maxiftime_ = mtu * psecPerByte / 1000 / 1000 * 16; 693 if ((int64_t)mtu * psecPerByte > (int64_t)10 * 1000000000)
|
/src/sys/netinet/ |
ip_icmp.c | 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 */ local in function:icmp_mtudisc 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 * [all...] |
ip_output.c | 242 u_long mtu; local in function:ip_output 343 mtu = ifp->if_mtu; 356 mtu = ifp->if_mtu; 398 if ((mtu = rt->rt_rmx.rmx_mtu) == 0) 399 mtu = ifp->if_mtu; 619 * If we're doing Path MTU Discovery, we need to set DF unless 620 * the route's MTU is locked. 632 error = ipsec4_output(m, inp, flags, &mtu, &natt_frag, 700 if (ntohs(ip->ip_len) > mtu && 772 in4p_errormtu(inp) = mtu; [all...] |
tcp_subr.c | 981 /* for IPv6, always try to run path MTU discovery */ 1347 * - recalculate the new MTU and create the 1349 * - ignore the MTU change notification. 1389 u_int mtu; local in function:tcp_ctlinput 1437 * ICMP header, recalculate the new MTU, and create the 1449 * If the ICMP message advertises a Next-Hop MTU 1453 mtu = (u_int)ntohs(icp->icmp_nextmtu); 1454 if (mtu >= tp->t_pmtud_mtu_sent) 1456 if (mtu >= tcp_hdrsz(tp) + tp->t_pmtud_mss_acked) { 1458 * Calculate new MTU, and create correspondin [all...] |
/src/sys/arch/sparc64/dev/ |
vnet.c | 67 uint64_t mtu; member in struct:vnet_attr_info 1055 ai.mtu = ETHER_MAX_LEN - ETHER_CRC_LEN;
|
/src/sys/external/bsd/ipf/netinet/ |
ip_fil_netbsd.c | 1420 u_long mtu; local in function:ipf_fastroute6 1487 /* Determine path MTU. */ 1489 mtu = nd_ifinfo[ifp->if_index].linkmtu; 1492 mtu = IN6_LINKMTU(ifp); 1495 mtu = ife->nd_ifinfo[ifp->if_index].linkmtu; 1498 mtu = ifp->if_mtu; 1500 if ((error == 0) && (m0->m_pkthdr.len <= mtu)) {
|
/src/sys/dev/pci/ |
if_vmxreg.h | 235 uint32_t mtu; member in struct:vmxnet3_driver_shared
|