/external/iproute2/tc/ |
D | q_tbf.c | 45 unsigned buffer=0, mtu=0, mpu=0, latency=0; in tbf_parse_opt() local 92 if (mtu) { in tbf_parse_opt() 96 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in tbf_parse_opt() 169 if (!mtu) { in tbf_parse_opt() 183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt() 192 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt() 201 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_opt() 205 opt.mtu = tc_calc_xmittime(opt.peakrate.rate, mtu); in tbf_parse_opt() 222 double buffer, mtu; in tbf_print_opt() local 250 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt() [all …]
|
D | tc_core.c | 110 int cell_log, unsigned mtu, in tc_calc_rtable() argument 118 if (mtu == 0) in tc_calc_rtable() 119 mtu = 2047; in tc_calc_rtable() 123 while ((mtu >> cell_log) > 255) in tc_calc_rtable() 149 s->mtu = 0; in tc_calc_size_table() 157 if (s->mtu == 0) in tc_calc_size_table() 158 s->mtu = 2047; in tc_calc_size_table() 163 while ((s->mtu >> s->cell_log) > s->tsize - 1) in tc_calc_size_table()
|
D | m_police.c | 136 unsigned buffer=0, mtu=0, mpu=0; in act_parse_police() local 174 if (mtu) { in act_parse_police() 178 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in act_parse_police() 271 if (!mtu) { in act_parse_police() 280 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in act_parse_police() 286 p.mtu = mtu; in act_parse_police() 290 if (tc_calc_rtable(&p.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in act_parse_police() 350 fprintf(f, "mtu %s ", sprint_size(p->mtu, b1)); in print_police()
|
D | tc_stab.c | 67 if (s.mtu) in parse_size_table() 69 if (get_u32(&s.mtu, *argv, 10)) { in parse_size_table() 139 if (s.mtu) in print_size_table() 140 fprintf(fp, "mtu %u ", s.mtu); in print_size_table()
|
D | q_htb.c | 108 unsigned mtu; in htb_parse_class_opt() local 114 memset(&opt, 0, sizeof(opt)); mtu = 1600; /* eth packet len */ in htb_parse_class_opt() 125 if (get_u32(&mtu, *argv, 10)) { in htb_parse_class_opt() 211 if (!buffer) buffer = opt.rate.rate / get_hz() + mtu; in htb_parse_class_opt() 212 if (!cbuffer) cbuffer = opt.ceil.rate / get_hz() + mtu; in htb_parse_class_opt() 220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt() 226 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
|
/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/android-clat/ |
D | clatd.c | 292 if(Global_Clatd_Config.mtu > MAXMTU) { in configure_interface() 293 logmsg(ANDROID_LOG_WARN,"Max MTU is %d, requested %d", MAXMTU, Global_Clatd_Config.mtu); in configure_interface() 294 Global_Clatd_Config.mtu = MAXMTU; in configure_interface() 296 if(Global_Clatd_Config.mtu <= 0) { in configure_interface() 297 Global_Clatd_Config.mtu = getifmtu(Global_Clatd_Config.default_pdp_interface); in configure_interface() 298 logmsg(ANDROID_LOG_WARN,"ifmtu=%d",Global_Clatd_Config.mtu); in configure_interface() 300 if(Global_Clatd_Config.mtu < 1280) { in configure_interface() 301 logmsg(ANDROID_LOG_WARN,"mtu too small = %d", Global_Clatd_Config.mtu); in configure_interface() 302 Global_Clatd_Config.mtu = 1280; in configure_interface() 306 Global_Clatd_Config.ipv4mtu > Global_Clatd_Config.mtu - MTU_DELTA) { in configure_interface() [all …]
|
D | setif.c | 101 int if_up(const char *ifname, int mtu) { in if_up() argument 120 if(nla_put(msg, IFLA_MTU, 4, &mtu) < 0) { in if_up()
|
D | setif.h | 22 int if_up(const char *ifname, int mtu);
|
/external/libnl/lib/route/sch/ |
D | htb.c | 255 static uint8_t compute_cell(uint32_t rate, uint32_t mtu) in compute_cell() argument 258 while (mtu > 255) { in compute_cell() 259 mtu >>= 1; in compute_cell() 269 uint32_t mtu, rtable[RTNL_TC_RTABLE_SIZE], ctable[RTNL_TC_RTABLE_SIZE]; in htb_class_get_opts() local 286 mtu = d->ch_mtu; in htb_class_get_opts() 288 mtu = 1600; /* eth packet len */ in htb_class_get_opts() 296 opts.rate.cell_log = compute_cell(opts.rate.rate, mtu); in htb_class_get_opts() 305 opts.ceil.cell_log = compute_cell(opts.ceil.rate, mtu); in htb_class_get_opts() 310 buffer = opts.rate.rate / nl_get_hz() + mtu; in htb_class_get_opts() 317 cbuffer = opts.ceil.rate / nl_get_hz() + mtu; in htb_class_get_opts() [all …]
|
/external/boringssl/src/ssl/ |
D | d1_lib.c | 256 long mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, in dtls1_check_timeout_num() local 258 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) { in dtls1_check_timeout_num() 259 s->d1->mtu = (unsigned)mtu; in dtls1_check_timeout_num()
|
D | d1_both.c | 268 if (s->d1->mtu < dtls1_min_mtu() && in dtls1_do_write() 270 long mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL); in dtls1_do_write() local 271 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) { in dtls1_do_write() 272 s->d1->mtu = (unsigned)mtu; in dtls1_do_write() 274 s->d1->mtu = kDefaultMTU; in dtls1_do_write() 275 BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_SET_MTU, s->d1->mtu, NULL); in dtls1_do_write() 280 assert(s->d1->mtu >= dtls1_min_mtu()); in dtls1_do_write() 300 curr_mtu = s->d1->mtu - BIO_wpending(SSL_get_wbio(s)) - in dtls1_do_write() 313 curr_mtu = s->d1->mtu - DTLS1_RT_HEADER_LENGTH - max_overhead; in dtls1_do_write()
|
/external/tcpdump/ |
D | print-eigrp.c | 131 u_int8_t mtu[3]; member 151 u_int8_t mtu[3]; member 170 u_int8_t mtu[3]; member 189 u_int8_t mtu[3]; member 347 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_int->mtu), in eigrp_print() 384 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_ext->mtu), in eigrp_print() 416 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_int->mtu), in eigrp_print() 447 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_ext->mtu), in eigrp_print()
|
D | print-igrp.c | 48 u_int metric, mtu; in igrp_entry_print() local 65 mtu = EXTRACT_16BITS(igr->igr_mtu); in igrp_entry_print() 70 mtu, igr->igr_hct); in igrp_entry_print()
|
D | print-vtp.c | 56 u_int16_t mtu; member 253 EXTRACT_16BITS(&vtp_vlan->mtu), in vtp_print()
|
D | print-icmp.c | 347 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; in icmp_print() local 417 mtu = EXTRACT_16BITS(&mp->nexthopmtu); in icmp_print() 418 if (mtu) { in icmp_print() 421 ipaddr_string(&dp->icmp_ip.ip_dst), mtu); in icmp_print()
|
/external/iproute2/ip/ |
D | iplink.c | 279 int mtu = -1; in iplink_parse() local 323 if (mtu != -1) in iplink_parse() 325 if (get_integer(&mtu, *argv, 0)) in iplink_parse() 327 addattr_l(&req->n, sizeof(*req), IFLA_MTU, &mtu, 4); in iplink_parse() 683 static int set_mtu(const char *dev, int mtu) in set_mtu() argument 694 ifr.ifr_mtu = mtu; in set_mtu() 788 int mtu = -1; in do_set() local 822 if (mtu != -1) in do_set() 824 if (get_integer(&mtu, *argv, 0)) in do_set() 923 if (mtu != -1) { in do_set() [all …]
|
/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/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/libnl/src/lib/ |
D | link.c | 51 uint32_t mtu = nl_cli_parse_u32(arg); in nl_cli_link_parse_mtu() local 52 rtnl_link_set_mtu(link, mtu); in nl_cli_link_parse_mtu()
|
/external/dnsmasq/src/ |
D | tftp.c | 50 int is_err = 1, if_index = 0, mtu = 0; in tftp_request() local 89 mtu = listen->iface->mtu; in tftp_request() 135 mtu = ifr.ifr_mtu; in tftp_request() 213 if (mtu != 0 && transfer->blocksize > (unsigned)mtu - 32) in tftp_request() 214 transfer->blocksize = (unsigned)mtu - 32; in tftp_request()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_cmdbuf.c | 57 int i, mtu; in r200SetUpAtomList() local 59 mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in r200SetUpAtomList() 83 for (i = 0; i < mtu; ++i) in r200SetUpAtomList() 85 for (i = 0; i < mtu; ++i) in r200SetUpAtomList() 94 for (i = 0; i < 3 + mtu; ++i) in r200SetUpAtomList()
|
/external/dhcpcd/ |
D | net.h | 104 #define set_mtu(iface, mtu) do_mtu(iface, mtu) argument
|
/external/dhcpcd/dhcpcd-hooks/ |
D | 10-mtu | 4 ifconfig "${interface}" mtu "${new_interface_mtu}"
|