| /src/tests/sbin/ifconfig/ |
| t_repeated_mtu.sh | 51 mtu=$(ifconfig $i | grep "mtu" | sed "s/.*mtu //") 53 if [ -z $mtu ]; then 59 echo "Request: ifconfig $i mtu $j" 60 ifconfig $i mtu $j >/dev/null 2>&1 63 ifconfig $i mtu $mtu 64 echo "Restored the MTU of $i to $mtu" [all...] |
| /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/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...] |
| channel.c | 82 if (chan->mtu > 0) { 83 chan->sendbuf = malloc(chan->mtu);
|
| /src/sys/netbt/ |
| 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;
|
| 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_session.c | 359 * We must take note of the L2CAP MTU because currently 1015 * Length can realistically only use 15 bits (max RFCOMM MTU) 1328 pn.mtu = le16toh(pn.mtu); 1342 /* accept any valid MTU, and offer it back */ 1343 pn.mtu = uimin(pn.mtu, RFCOMM_MTU_MAX); 1344 pn.mtu = uimin(pn.mtu, rs->rs_mtu); 1345 pn.mtu = uimax(pn.mtu, RFCOMM_MTU_MIN) [all...] |
| l2cap_signal.c | 465 * MTU size an issue in normal use, we just reject config requests that 491 m_copydata(m, 0, L2CAP_OPT_MTU_SIZE, &val.mtu); 492 val.mtu = le16toh(val.mtu); 495 * XXX how do we know what the minimum acceptable MTU is 500 if (val.mtu < L2CAP_MTU_MINIMUM) { 507 val.mtu = htole16(L2CAP_MTU_MINIMUM); 511 chan->lc_omtu = val.mtu; 732 m_copydata(m, 0, L2CAP_OPT_MTU_SIZE, &val.mtu); 733 chan->lc_imtu = le16toh(val.mtu); [all...] |
| /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...] |
| sctp_timer.c | 320 if (net->ssthresh < (net->mtu << 1)) { 321 net->ssthresh = (net->mtu << 1); 323 net->cwnd = net->mtu; 324 /* floor of 1 mtu */ 325 if (net->cwnd < net->mtu) 326 net->cwnd = net->mtu; 334 printf("collapse cwnd to 1MTU ssthresh to %d\n", 626 (orig_flight <= net->mtu)) { 635 printf("WIN_PROBE set via o_rwnd=0 tf=0 and all:%d fit in mtu:%d\n", 636 orig_flight, net->mtu); [all...] |
| /src/sbin/route/ |
| keywords.sh | 38 mtu
|
| /src/sys/dev/pci/cxgb/ |
| cxgb_xgmac.c | 339 static int rx_fifo_hwm(int mtu) 343 hwm = uimax(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100); 347 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) 354 * MAX_FRAME_SIZE includes header + FCS, mtu doesn't. The HW max 357 mtu += 14; 359 mtu += 8; /* for preamble */ 360 if (mtu > MAX_FRAME_SIZE - 4) 363 return t3_vsc7323_set_mtu(adap, mtu - 4, mac->ext_port); 380 t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu); 384 t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu); [all...] |
| cxgb_toedev.h | 92 unsigned int mtu; /* max size of TX offloaded data */ member in struct:toedev
|
| /src/tests/net/route/ |
| t_change.sh | 136 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 155 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 203 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 222 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 289 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
| t_route.sh | 238 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 254 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 288 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 313 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 328 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 344 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 362 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
| /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/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/usr.bin/rump_dhcpclient/ |
| net.h | 101 #define set_mtu(iface, mtu) do_mtu(iface, mtu)
|
| /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;
|
| /src/tests/net/if_vlan/ |
| t_vlan.sh | 206 local mtu=1500 207 local vlan_mtu=`expr $mtu - 4` 239 # since upper bound of shmif's mtu is 1500, 240 # so we lower vlan's mtu instead of raising shmif's. 244 # $atf_config shmif0 mtu 1600 246 $atf_ifconfig vlan0 mtu 1400 488 rump.ifconfig vlan0 mtu 1497 489 $atf_ifconfig vlan0 mtu 1496 490 $atf_ifconfig vlan0 mtu 42 492 rump.ifconfig vlan0 mtu 4 [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/sys/dev/usb/ |
| if_muereg.h | 132 #define MUE_FRAME_LEN(mtu) \ 133 (mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + ETHER_VLAN_ENCAP_LEN)
|
| /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;
|