Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 93) sorted by relevance

1234

/external/iproute2/tc/
Dq_tbf.c45 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 …]
Dtc_core.c110 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()
Dm_police.c136 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()
Dtc_stab.c67 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()
Dq_htb.c108 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/bluetooth/bluez/attrib/
Dutils.c44 const gchar *sec_level, int psm, int mtu, in gatt_connect() argument
56 if (mtu != 0 && mtu < minimum_mtu) { in gatt_connect()
89 BT_IO_OPT_OMTU, mtu, in gatt_connect()
97 BT_IO_OPT_OMTU, mtu, in gatt_connect()
Datt.c896 uint16_t enc_mtu_req(uint16_t mtu, uint8_t *pdu, int len) in enc_mtu_req() argument
898 const uint16_t min_len = sizeof(pdu[0]) + sizeof(mtu); in enc_mtu_req()
907 att_put_u16(mtu, &pdu[1]); in enc_mtu_req()
912 uint16_t dec_mtu_req(const uint8_t *pdu, int len, uint16_t *mtu) in dec_mtu_req() argument
914 const uint16_t min_len = sizeof(pdu[0]) + sizeof(*mtu); in dec_mtu_req()
919 if (mtu == NULL) in dec_mtu_req()
928 *mtu = att_get_u16(&pdu[1]); in dec_mtu_req()
933 uint16_t enc_mtu_resp(uint16_t mtu, uint8_t *pdu, int len) in enc_mtu_resp() argument
935 const uint16_t min_len = sizeof(pdu[0]) + sizeof(mtu); in enc_mtu_resp()
944 att_put_u16(mtu, &pdu[1]); in enc_mtu_resp()
[all …]
Dgattrib.c533 gboolean g_attrib_set_mtu(GAttrib *attrib, int mtu) in g_attrib_set_mtu() argument
535 if (mtu < ATT_DEFAULT_LE_MTU) in g_attrib_set_mtu()
536 mtu = ATT_DEFAULT_LE_MTU; in g_attrib_set_mtu()
538 if (mtu > ATT_MAX_MTU) in g_attrib_set_mtu()
539 mtu = ATT_MAX_MTU; in g_attrib_set_mtu()
542 BT_IO_OPT_OMTU, mtu, in g_attrib_set_mtu()
546 attrib->buf = g_realloc(attrib->buf, mtu); in g_attrib_set_mtu()
548 attrib->buflen = mtu; in g_attrib_set_mtu()
/external/bluetooth/bluez/src/
Dattrib-server.c59 guint mtu; member
567 const uint8_t *value, int vlen, uint8_t *opdu, int mtu) in find_by_type() argument
576 ATT_ECODE_INVALID_HANDLE, opdu, mtu); in find_by_type()
613 ATT_ECODE_ATTR_NOT_FOUND, opdu, mtu); in find_by_type()
615 len = enc_find_by_type_resp(matches, opdu, mtu); in find_by_type()
763 static uint16_t mtu_exchange(struct gatt_channel *channel, uint16_t mtu, in mtu_exchange() argument
766 guint old_mtu = channel->mtu; in mtu_exchange()
768 if (mtu < ATT_DEFAULT_LE_MTU) in mtu_exchange()
769 channel->mtu = ATT_DEFAULT_LE_MTU; in mtu_exchange()
771 channel->mtu = MIN(mtu, channel->mtu); in mtu_exchange()
[all …]
Dsdpd-server.c61 static int init_server(uint16_t mtu, int master, int compat) in init_server() argument
99 if (mtu > 0) { in init_server()
108 opts.omtu = mtu; in init_server()
109 opts.imtu = mtu; in init_server()
241 int start_sdp_server(uint16_t mtu, const char *did, uint32_t flags) in start_sdp_server() argument
249 if (init_server(mtu, master, compat) < 0) { in start_sdp_server()
Dsdpd.h42 int mtu; member
77 int start_sdp_server(uint16_t mtu, const char *did, uint32_t flags);
/external/ppp/pppd/plugins/rp-pppoe/
Dplugin.c185 PPPOESendConfig(int mtu, in PPPOESendConfig() argument
193 if (mtu > MAX_PPPOE_MTU) { in PPPOESendConfig()
194 warn("Couldn't increase MTU to %d", mtu); in PPPOESendConfig()
195 mtu = MAX_PPPOE_MTU; in PPPOESendConfig()
203 ifr.ifr_mtu = mtu; in PPPOESendConfig()
205 error("Couldn't set interface MTU to %d: %m", mtu); in PPPOESendConfig()
/external/tcpdump/
Dprint-eigrp.c131 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()
Dprint-igrp.c48 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()
/external/ppp/pppd/plugins/pppoatm/
Dpppoatm.c172 static void send_config_pppoa(int mtu, in send_config_pppoa() argument
179 if (mtu > pppoatm_max_mtu) in send_config_pppoa()
180 error("Couldn't increase MTU to %d", mtu); in send_config_pppoa()
185 ifr.ifr_mtu = mtu; in send_config_pppoa()
/external/openssl/ssl/
Dd1_both.c230 if (s->d1->mtu < dtls1_min_mtu() && !(SSL_get_options(s) & SSL_OP_NO_QUERY_MTU)) in dtls1_do_write()
232 s->d1->mtu = in dtls1_do_write()
237 if (s->d1->mtu < dtls1_min_mtu()) in dtls1_do_write()
239 s->d1->mtu = 0; in dtls1_do_write()
240 s->d1->mtu = dtls1_guess_mtu(s->d1->mtu); in dtls1_do_write()
242 s->d1->mtu, NULL); in dtls1_do_write()
246 mtu = s->d1->mtu; in dtls1_do_write()
248 fprintf(stderr, "using MTU = %d\n", mtu); in dtls1_do_write()
250 mtu -= (DTLS1_HM_HEADER_LENGTH + DTLS1_RT_HEADER_LENGTH); in dtls1_do_write()
252 curr_mtu = mtu - BIO_wpending(SSL_get_wbio(s)); in dtls1_do_write()
[all …]
Dd1_lib.c208 unsigned int mtu; in dtls1_clear() local
217 mtu = s->d1->mtu; in dtls1_clear()
230 s->d1->mtu = mtu; in dtls1_clear()
409 s->d1->mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, NULL); in dtls1_check_timeout_num()
/external/iproute2/ip/
Diplink.c252 int mtu = -1; in iplink_parse() local
295 if (mtu != -1) in iplink_parse()
297 if (get_integer(&mtu, *argv, 0)) in iplink_parse()
299 addattr_l(&req->n, sizeof(*req), IFLA_MTU, &mtu, 4); in iplink_parse()
594 static int set_mtu(const char *dev, int mtu) in set_mtu() argument
605 ifr.ifr_mtu = mtu; in set_mtu()
699 int mtu = -1; in do_set() local
733 if (mtu != -1) in do_set()
735 if (get_integer(&mtu, *argv, 0)) in do_set()
836 if (mtu != -1) { in do_set()
[all …]
/external/bluetooth/bluez/cups/
Dhcrp.c196 unsigned int mtu; in hcrp_print() local
289 mtu = opts.omtu; in hcrp_print()
324 if (credit < mtu) { in hcrp_print()
344 count = read(fd, buf, (credit > mtu) ? mtu : credit); in hcrp_print()
/external/bluetooth/bluez/test/
Dhstest.c82 static int sco_connect(bdaddr_t *src, bdaddr_t *dst, uint16_t *handle, uint16_t *mtu) in sco_connect() argument
131 if (mtu) in sco_connect()
132 *mtu = opts.mtu; in sco_connect()
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
DUnixNetworkInterfaceTest.java129 int mtu = netif.getMTU(); in test_getMTU() local
136 cmd = "ifconfig " + name + " mtu " + mtu; in test_getMTU()
139 assertEquals(name + " MTU should be " + mtu, mtu, netif in test_getMTU()
/external/iproute2/doc/actions/
Dactions-general15 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/kernel-headers/original/linux/
Dwanrouter.h213 unsigned mtu; /* maximum transmit unit size */ member
340 unsigned mtu; /* max. transmit unit for this device */ member
428 unsigned mtu; /* maximum transmit unit size */ member
477 unsigned mtu; /* max physical transmit unit size */ member
/external/bluetooth/bluez/btio/
Dbtio.c57 uint16_t mtu; member
675 static gboolean sco_set(int sock, uint16_t mtu, GError **err) in sco_set() argument
680 if (!mtu) in sco_set()
690 sco_opt.mtu = mtu; in sco_set()
750 opts->mtu = va_arg(args, int); in parse_set_opts()
751 opts->imtu = opts->mtu; in parse_set_opts()
752 opts->omtu = opts->mtu; in parse_set_opts()
756 if (!opts->mtu) in parse_set_opts()
757 opts->mtu = opts->omtu; in parse_set_opts()
761 if (!opts->mtu) in parse_set_opts()
[all …]
/external/dnsmasq/src/
Dtftp.c50 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()

1234