| /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/external/bsd/ipf/dist/ipsend/ |
| iptest.c | 72 \t\t-m mtu\t\tfake MTU to use when sending out\n\ 97 int mtu = 1500, tests = 0, pointtest = 0, c; local 126 mtu = atoi(optarg); 127 if (mtu < 28) 129 fprintf(stderr, "mtu must be > 28\n"); 182 printf("mtu: %d\n", mtu); 187 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest); 190 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest) [all...] |
| iptests.c | 128 void ip_test1(dev, mtu, ip, gwip, ptest) 130 int mtu; 298 (void) send_ip(nfd, mtu, ip, gwip, 1); 306 (void) send_ip(nfd, mtu, ip, gwip, 1); 314 (void) send_ip(nfd, mtu, ip, gwip, 1); 322 (void) send_ip(nfd, mtu, ip, gwip, 1); 344 (void) send_ip(nfd, mtu, ip, gwip, 1); 347 ip->ip_len = MIN(768 + 20, mtu - 68); 351 (void) send_ip(nfd, mtu, ip, gwip, 1); 358 (void) send_ip(nfd, mtu, ip, gwip, 1) [all...] |
| ipresend.c | 79 \t\t-m mtu\t\tfake MTU to use when sending out\n\ 93 int mtu = 1500, c; local 105 mtu = atoi(optarg); 106 if (mtu < 28) 108 fprintf(stderr, "mtu must be > 28\n"); 148 printf("mtu: %d\n", mtu); 150 return ip_resend(dev, mtu, ipr, gwip, resend);
|
| ip.c | 89 int send_ip(nfd, mtu, ip, gwip, frag) 90 int nfd, mtu; 148 if (!frag || (sizeof(*eh) + iplen < mtu)) 169 if (mtu < (hlen + 8)) { 170 fprintf(stderr, "mtu (%d) < ip header size (%d) + 8\n", 171 mtu, hlen); 212 if ((sent + (mtu - hlen)) >= iplen) 218 ts = (mtu - hlen); 250 int send_tcp(nfd, mtu, ip, gwip) 251 int nfd, mtu; [all...] |
| ipsend.c | 80 \t\t-m mtu\t\tfake MTU to use when sending out\n\ 150 int send_packets(dev, mtu, ip, gwip) 152 int mtu; 161 return send_packet(wfd, mtu, ip, gwip); 208 int mtu = 1500, olen = 0, c, nonl = 0; local 304 mtu = atoi(optarg); 305 if (mtu < 28) 307 fprintf(stderr, "mtu must be > 28\n"); 430 printf("mtu: %d\n", mtu) [all...] |
| /src/usr.sbin/altq/tbrconfig/ |
| tbrconfig.c | 245 u_int size, mtu; local 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 273 mtu = get_ifmtu(ifname); 276 if (size < mtu) 277 size = mtu; 301 int s, mtu; local [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/ |
| d1_lib.c | 92 d1->mtu = 0; 176 size_t mtu; local 191 mtu = s->d1->mtu; 206 s->d1->mtu = mtu; 262 s->d1->mtu = larg; 368 size_t mtu; local 373 /* Reduce MTU after 2 unsuccessful retransmissions */ 376 mtu = BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, NULL) 928 size_t mtu; local [all...] |
| /src/crypto/external/bsd/openssl/dist/ssl/ |
| d1_lib.c | 90 d1->mtu = 0; 176 size_t mtu; local 186 mtu = s->d1->mtu; 201 s->d1->mtu = mtu; 251 s->d1->mtu = larg; 383 size_t mtu; local 387 /* Reduce MTU after 2 unsuccessful retransmissions */ 390 mtu 947 size_t mtu = s->d1->mtu; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/ssl/ |
| d1_lib.c | 90 d1->mtu = 0; 159 size_t mtu; local 169 mtu = s->d1->mtu; 184 s->d1->mtu = mtu; 234 s->d1->mtu = larg; 366 size_t mtu; local 370 /* Reduce MTU after 2 unsuccessful retransmissions */ 373 mtu 937 size_t mtu = s->d1->mtu; local [all...] |
| /src/usr.sbin/btpand/ |
| client.c | 49 uint16_t mru, mtu; local 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 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...] |
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_demux.c | 39 size_t mtu; member in struct:quic_demux_st 85 demux->mtu = DEMUX_DEFAULT_MTU; 122 unsigned int mtu; local 128 * Try to determine our MTU if possible. The BIO is not required to 129 * support this, in which case we remain at the last known MTU, or our 132 mtu = BIO_dgram_get_mtu(net_bio); 133 if (mtu >= QUIC_MIN_INITIAL_DGRAM_LEN) 134 ossl_quic_demux_set_mtu(demux, mtu); /* best effort */ 138 int ossl_quic_demux_set_mtu(QUIC_DEMUX *demux, unsigned int mtu) 140 if (mtu < QUIC_MIN_INITIAL_DGRAM_LEN [all...] |
| /src/external/bsd/tcpdump/dist/ |
| print-igrp.c | 63 nd_uint16_t igr_mtu; /* MTU in octets */ 75 u_int metric, mtu; local 80 mtu = GET_BE_U_2(igr->igr_mtu); 82 ND_PRINT(" d=%u b=%u r=%u l=%u M=%u mtu=%u in %u hops", 85 mtu, GET_U_1(igr->igr_hct));
|
| print-eigrp.c | 135 nd_uint24_t mtu; member in struct:eigrp_tlv_ip_int_t 155 nd_uint24_t mtu; member in struct:eigrp_tlv_ip_ext_t 174 nd_uint24_t mtu; member in struct:eigrp_tlv_at_int_t 193 nd_uint24_t mtu; member in struct:eigrp_tlv_at_ext_t 378 ND_PRINT("\n\t delay %u ms, bandwidth %u Kbps, mtu %u, hop %u, reliability %u, load %u", 381 GET_BE_U_3(tlv_ptr.eigrp_tlv_ip_int->mtu), 421 ND_PRINT("\n\t delay %u ms, bandwidth %u Kbps, mtu %u, hop %u, reliability %u, load %u", 424 GET_BE_U_3(tlv_ptr.eigrp_tlv_ip_ext->mtu), 463 ND_PRINT("\n\t delay %u ms, bandwidth %u Kbps, mtu %u, hop %u, reliability %u, load %u", 466 GET_BE_U_3(tlv_ptr.eigrp_tlv_at_int->mtu), [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/ |
| ifconfig.sh.in | 26 # We also set the MTU on the 1500 bytes to match the default MTU on physical 28 # interface MTU. 64 /sbin/ifconfig lo0:$int mtu 1500 87 ip link set dev lo:$int mtu 1500 89 [ "$a" ] && ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500 94 [ "$a" ] && ifconfig lo0 $a alias netmask 0xffffffff mtu 1500 98 [ "$a" ] && ifconfig lo0 $a alias netmask 255.255.255.0 mtu 1500
|
| /src/sys/netbt/ |
| rfcomm_upper.c | 445 uint16_t mtu; local 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 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 */
|
| /src/sbin/route/ |
| keywords.sh | 38 mtu
|
| /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 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...] |
| /src/crypto/external/apache2/openssl/dist/include/internal/ |
| quic_demux.h | 210 * Changes the BIO which the demuxer reads from. This also sets the MTU if the 211 * BIO supports querying the MTU. 216 * Changes the MTU in bytes we use to receive datagrams. 218 int ossl_quic_demux_set_mtu(QUIC_DEMUX *demux, unsigned int mtu);
|
| /src/crypto/external/bsd/openssl.old/dist/test/ossl_shim/ |
| test_config.h | 53 int mtu = 0; member in struct:TestConfig
|
| /src/external/bsd/ppp/dist/pppd/ |
| eap-tls.h | 69 int mtu; /* unit mtu */ member in struct:eaptls_session
|
| /src/external/bsd/ppp/dist/pppd/plugins/pppoe/ |
| discovery.c | 215 if (conn->mtu > mru) 216 conn->mtu = mru; 267 if (conn->mtu > mru) 268 conn->mtu = mru; 354 /* Add our maximum MTU/MRU */ 355 if (MIN(conn->mtu, conn->mru) > ETH_PPPOE_MTU) { 357 UINT16_t mru = htons(MIN(conn->mtu, conn->mru)); 536 /* Add our maximum MTU/MRU */ 537 if (MIN(conn->mtu, conn->mru) > ETH_PPPOE_MTU) { 539 UINT16_t mru = htons(MIN(conn->mtu, conn->mru)) [all...] |
| /src/external/bsd/ppp/dist/pppd/plugins/pppol2tp/ |
| pppol2tp.c | 207 static void send_config_pppol2tp(int mtu, 239 if ((lcp_allowoptions[0].mru > 0) && (mtu > lcp_allowoptions[0].mru)) { 240 warn("Overriding mtu %d to %d", mtu, lcp_allowoptions[0].mru); 241 mtu = lcp_allowoptions[0].mru; 243 ppp_set_mtu(ppp_ifunit(), mtu); local 293 warn("Overriding mru %d to mtu value %d", mru,
|