/external/linux-kselftest/tools/testing/selftests/net/ |
D | pmtu.sh | 313 mtu() { function 316 mtu="${3}" 318 ${ns_cmd} ip link set dev ${dev} mtu ${mtu} 394 mtu "${ns_a}" veth_A-R1 2000 395 mtu "${ns_r1}" veth_R1-A 2000 396 mtu "${ns_r1}" veth_R1-B 1400 397 mtu "${ns_b}" veth_B-R1 1400 399 mtu "${ns_a}" veth_A-R2 2000 400 mtu "${ns_r2}" veth_R2-A 2000 401 mtu "${ns_r2}" veth_R2-B 1500 [all …]
|
D | udpgso.c | 300 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument 306 ifr.ifr_mtu = mtu; in __set_device_mtu() 313 static void set_device_mtu(int fd, int mtu) in set_device_mtu() argument 320 __set_device_mtu(fd, cfg_ifname, mtu); in set_device_mtu() 322 if (val != mtu) in set_device_mtu() 349 unsigned int mtu; in get_path_mtu() local 352 vallen = sizeof(mtu); in get_path_mtu() 354 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu() 356 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu() 362 fprintf(stderr, "path mtu (read): %u\n", mtu); in get_path_mtu() [all …]
|
D | psock_snd.sh | 8 readonly mtu=1500 15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
|
/external/ltp/testcases/network/stress/interface/ |
D | if-mtu-change | 46 ip li set $(tst_iface) mtu $saved_mtu 68 mtu=$(echo $CHANGE_VALUES | cut -d ' ' -f $field) 69 [ $cnt -eq $MTU_CHANGE_TIMES ] && mtu="$saved_mtu" 73 tst_res TINFO "set MTU to $mtu $cnt/$MTU_CHANGE_TIMES" 76 ifconfig) ifconfig $iface mtu $mtu || ret=1 77 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu" 79 ip) ip link set $iface mtu $mtu || ret=1 80 tst_rhost_run -c "ip link set $iface_rmt mtu $mtu"
|
/external/iproute2/tc/ |
D | q_tbf.c | 45 unsigned buffer = 0, mtu = 0, mpu = 0, latency = 0; in tbf_parse_opt() local 103 if (mtu) { in tbf_parse_opt() 107 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in tbf_parse_opt() 185 if (!mtu) { in tbf_parse_opt() 208 double lim2 = prate64*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt() 218 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt() 227 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_opt() 231 opt.mtu = tc_calc_xmittime(opt.peakrate.rate, mtu); in tbf_parse_opt() 244 addattr_l(n, 3224, TCA_TBF_PBURST, &mtu, sizeof(mtu)); in tbf_parse_opt() 256 double buffer, mtu; in tbf_print_opt() local [all …]
|
D | tc_core.c | 127 int cell_log, unsigned int mtu, in tc_calc_rtable() argument 135 if (mtu == 0) in tc_calc_rtable() 136 mtu = 2047; in tc_calc_rtable() 140 while ((mtu >> cell_log) > 255) in tc_calc_rtable() 167 s->mtu = 0; in tc_calc_size_table() 175 if (s->mtu == 0) in tc_calc_size_table() 176 s->mtu = 2047; in tc_calc_size_table() 181 while ((s->mtu >> s->cell_log) > s->tsize - 1) in tc_calc_size_table()
|
D | m_police.c | 66 unsigned buffer = 0, mtu = 0, mpu = 0; in act_parse_police() local 101 if (mtu) { in act_parse_police() 105 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in act_parse_police() 205 if (!mtu) { in act_parse_police() 214 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, in act_parse_police() 221 p.mtu = mtu; in act_parse_police() 225 if (tc_calc_rtable(&p.peakrate, ptab, Pcell_log, mtu, in act_parse_police() 287 fprintf(f, "mtu %s ", sprint_size(p->mtu, b1)); in print_police()
|
D | tc_stab.c | 65 if (s.mtu) in parse_size_table() 67 if (get_u32(&s.mtu, *argv, 10)) in parse_size_table() 129 if (s.mtu) in print_size_table() 130 fprintf(fp, "mtu %u ", s.mtu); in print_size_table()
|
D | q_htb.c | 119 unsigned int mtu = 1600; /* eth packet len */ in htb_parse_class_opt() local 135 if (get_u32(&mtu, *argv, 10)) { in htb_parse_class_opt() 226 buffer = rate64 / get_hz() + mtu; in htb_parse_class_opt() 228 cbuffer = ceil64 / get_hz() + mtu; in htb_parse_class_opt() 236 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt() 242 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
|
/external/autotest/client/common_lib/cros/bluetooth/ |
D | bluetooth_gatt_server.py | 31 def __init__(self, mtu=BT_ATT_DEFAULT_LE_MTU): argument 32 self.mtu = max(mtu, BT_ATT_DEFAULT_LE_MTU) 60 self.mtu = min(client_rx_mtu, self.mtu) 62 response = struct.pack('<BH', BT_ATT_OP_MTU_RSP, self.mtu) 74 data = self.recv(self.mtu)
|
/external/iputils/ |
D | tracepath6.c | 64 int mtu; variable 140 progress = mtu; in recverr() 270 mtu = e->ee_info; in recverr() 271 progress = mtu; in recverr() 325 memset(pktbuf, 0, mtu); in probe_ttl() 343 if (sendto(fd, pktbuf, mtu-overhead, 0, (struct sockaddr *)&target, targetlen) > 0) in probe_ttl() 356 if (recv(fd, pktbuf, mtu, MSG_DONTWAIT) > 0) { in probe_ttl() 400 mtu = atoi(optarg); in main() 474 if (!mtu) in main() 475 mtu = 128000; in main() [all …]
|
D | tracepath.c | 52 int mtu = 65535; variable 127 progress = mtu; in recverr() 211 mtu = e->ee_info; in recverr() 212 progress = mtu; in recverr() 263 memset(pktbuf, 0, mtu); in probe_ttl() 273 if (sendto(fd, pktbuf, mtu-overhead, 0, (struct sockaddr*)&target, sizeof(target)) > 0) in probe_ttl() 286 if (recv(fd, pktbuf, mtu, MSG_DONTWAIT) > 0) { in probe_ttl() 328 if ((mtu = atoi(optarg)) <= overhead) { in main() 411 pktbuf = malloc(mtu); in main() 431 old_mtu = mtu; in main() [all …]
|
/external/ltp/runtest/ |
D | net_stress.interface | 17 if4-mtu-change_ip if-mtu-change -c ip 18 if4-mtu-change_ifconfig if-mtu-change -c ifconfig 30 if6-mtu-change_ip if-mtu-change -6 -c ip 31 if6-mtu-change_ifconfig if-mtu-change -6 -c ifconfig
|
/external/android-clat/ |
D | clatd.c | 364 if (Global_Clatd_Config.mtu > MAXMTU) { in configure_interface() 365 logmsg(ANDROID_LOG_WARN, "Max MTU is %d, requested %d", MAXMTU, Global_Clatd_Config.mtu); in configure_interface() 366 Global_Clatd_Config.mtu = MAXMTU; in configure_interface() 368 if (Global_Clatd_Config.mtu <= 0) { in configure_interface() 369 Global_Clatd_Config.mtu = getifmtu(Global_Clatd_Config.default_pdp_interface); in configure_interface() 370 logmsg(ANDROID_LOG_WARN, "ifmtu=%d", Global_Clatd_Config.mtu); in configure_interface() 372 if (Global_Clatd_Config.mtu < 1280) { in configure_interface() 373 logmsg(ANDROID_LOG_WARN, "mtu too small = %d", Global_Clatd_Config.mtu); in configure_interface() 374 Global_Clatd_Config.mtu = 1280; in configure_interface() 378 Global_Clatd_Config.ipv4mtu > Global_Clatd_Config.mtu - MTU_DELTA) { in configure_interface() [all …]
|
/external/autotest/client/site_tests/network_DhcpMTU/ |
D | network_DhcpMTU.py | 23 def check_mtu_config(self, mtu): argument 41 if ipconfig_mtu != mtu: 43 (ipconfig_mtu, mtu)) 46 self.ethernet_pair.peer_interface_name).mtu 47 if interface_mtu != mtu:
|
/external/boringssl/src/ssl/ |
D | d1_lib.cc | 174 long mtu = in dtls1_check_timeout_num() local 176 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) { in dtls1_check_timeout_num() 177 ssl->d1->mtu = (unsigned)mtu; in dtls1_check_timeout_num()
|
D | d1_both.cc | 610 if (ssl->d1->mtu < dtls1_min_mtu() && in dtls1_update_mtu() 612 long mtu = BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL); in dtls1_update_mtu() local 613 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) { in dtls1_update_mtu() 614 ssl->d1->mtu = (unsigned)mtu; in dtls1_update_mtu() 616 ssl->d1->mtu = kDefaultMTU; in dtls1_update_mtu() 617 BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_SET_MTU, ssl->d1->mtu, NULL); in dtls1_update_mtu() 622 assert(ssl->d1->mtu >= dtls1_min_mtu()); in dtls1_update_mtu() 782 uint8_t *packet = (uint8_t *)OPENSSL_malloc(ssl->d1->mtu); in send_flight() 793 if (!seal_next_packet(ssl, packet, &packet_len, ssl->d1->mtu)) { in send_flight()
|
/external/adhd/cras/src/server/ |
D | cras_hfp_info.c | 46 unsigned int mtu; member 244 if (err && (info->packet_size == info->mtu)) { in hfp_read() 334 int hfp_info_start(int fd, unsigned int mtu, struct hfp_info *info) in hfp_info_start() argument 337 info->mtu = mtu; in hfp_info_start() 341 hfp_info_set_packet_size(info, mtu); in hfp_info_start()
|
/external/tcpdump/tests/ |
D | eigrp1-v.out | 107 delay 25 ms, bandwidth 25600 Kbps, mtu 1500, hop 0, reliability 255, load 1 110 delay 256 ms, bandwidth 256000 Kbps, mtu 1500, hop 0, reliability 255, load 1 113 delay 281 ms, bandwidth 256000 Kbps, mtu 1500, hop 1, reliability 255, load 1 116 delay 512 ms, bandwidth 256000 Kbps, mtu 1500, hop 1, reliability 255, load 1 119 delay 537 ms, bandwidth 256000 Kbps, mtu 1500, hop 2, reliability 255, load 1 122 delay 768 ms, bandwidth 256000 Kbps, mtu 1500, hop 2, reliability 255, load 1 125 delay 793 ms, bandwidth 256000 Kbps, mtu 1500, hop 3, reliability 255, load 1 132 delay 25 ms, bandwidth 25600 Kbps, mtu 1500, hop 0, reliability 255, load 1 135 delay 256 ms, bandwidth 256000 Kbps, mtu 1500, hop 0, reliability 255, load 1 138 delay 281 ms, bandwidth 256000 Kbps, mtu 1500, hop 1, reliability 255, load 1 [all …]
|
/external/tcpdump/ |
D | print-eigrp.c | 127 uint8_t mtu[3]; member 147 uint8_t mtu[3]; member 166 uint8_t mtu[3]; member 185 uint8_t mtu[3]; member 369 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_int->mtu), in eigrp_print() 411 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_ext->mtu), in eigrp_print() 453 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_int->mtu), in eigrp_print() 489 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_ext->mtu), in eigrp_print()
|
D | print-igrp.c | 73 u_int metric, mtu; in igrp_entry_print() local 90 mtu = EXTRACT_16BITS(igr->igr_mtu); in igrp_entry_print() 95 mtu, igr->igr_hct)); in igrp_entry_print()
|
/external/iproute2/doc/actions/ |
D | actions-general | 15 127.0.0.1/32 flowid 1:1 police mtu 4000 rate 1500kbit burst 90k 56 police mtu 4000 rate 1500kbit burst 90k 62 action police mtu 4000 rate 1500kbit burst 90k 158 action police index 30 mtu 5000 rate 1kbit burst 10k pipe \ 163 action police index 20 mtu 5000 rate 1kbit burst 90k drop 178 action order 2: police 1 action pipe rate 1Kbit burst 9Kb mtu 2Kb 183 action order 4: police 30 action pipe rate 1Kbit burst 10Kb mtu 5000b 188 action order 6: police 20 action drop rate 1Kbit burst 90Kb mtu 5000b 221 action order 2: police 1 action pipe rate 1Kbit burst 9Kb mtu 2Kb 228 action order 4: police 30 action pipe rate 1Kbit burst 10Kb mtu 5000b [all …]
|
/external/ltp/testcases/network/iproute/ |
D | ip_tests.sh | 78 MTUSZ_BAK=$(cat /sys/class/net/${iface}/mtu) 79 ip link set ${iface} mtu 1281 85 MTUSZ=$(cat /sys/class/net/${iface}/mtu) 88 ip link set $iface mtu $MTUSZ_BAK
|
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
D | UnixNetworkInterfaceTest.java | 124 int mtu = netif.getMTU(); in test_getMTU() local 131 cmd = "ifconfig " + name + " mtu " + mtu; in test_getMTU() 134 assertEquals(name + " MTU should be " + mtu, mtu, netif in test_getMTU()
|
/external/ltp/testcases/network/sctp/ |
D | sctp_big_chunk.c | 137 static unsigned int mtu; variable 145 SAFE_FILE_SCANF(mtu_path, "%d", &mtu); in setup() 146 if (mtu < max_mtu) in setup()
|