Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/network/stress/interface/
Dif-mtu-change.sh35 ip li set $(tst_iface) mtu $saved_mtu
57 mtu=$(echo $CHANGE_VALUES | cut -d ' ' -f $field)
58 [ $cnt -eq $MTU_CHANGE_TIMES ] && mtu="$saved_mtu"
62 tst_res TINFO "set MTU to $mtu $cnt/$MTU_CHANGE_TIMES"
65 ifconfig) ifconfig $iface mtu $mtu || ret=1
66 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu"
68 ip) ip link set $iface mtu $mtu || ret=1
69 tst_rhost_run -c "ip link set $iface_rmt mtu $mtu"
/third_party/openssl/ssl/
Dd1_lib.c90 d1->mtu = 0; in dtls1_new()
159 size_t mtu; in dtls1_clear() local
169 mtu = s->d1->mtu; in dtls1_clear()
184 s->d1->mtu = mtu; in dtls1_clear()
234 s->d1->mtu = larg; in dtls1_ctrl()
367 size_t mtu; in dtls1_check_timeout_num() local
374 mtu = in dtls1_check_timeout_num()
376 if (mtu < s->d1->mtu) in dtls1_check_timeout_num()
377 s->d1->mtu = mtu; in dtls1_check_timeout_num()
896 s->d1->mtu = in dtls1_query_mtu()
[all …]
/third_party/ltp/runtest/
Dnet_stress.interface17 if4-mtu-change_ip if-mtu-change.sh -c ip
18 if4-mtu-change_ifconfig if-mtu-change.sh -c ifconfig
30 if6-mtu-change_ip if-mtu-change.sh -6 -c ip
31 if6-mtu-change_ifconfig if-mtu-change.sh -6 -c ifconfig
/third_party/ltp/testcases/kernel/pty/
Dpty04.c87 int mtu; member
95 static int ptmx, pts, sk, mtu, no_check; variable
155 len = mtu; in write_pty()
211 ifreq.ifr_mtu = ldisc->mtu; in open_netdev()
215 mtu = ifreq.ifr_mtu; in open_netdev()
216 tst_res(TINFO, "Netdev MTU is %d (we set %d)", mtu, ldisc->mtu); in open_netdev()
294 int retry = mtu; in try_read()
316 plen = mtu - 1; in read_netdev()
/third_party/boringssl/src/ssl/
Dd1_lib.cc174 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()
Dd1_both.cc610 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()
/third_party/pulseaudio/src/modules/rtp/
Drtp-native.c54 size_t mtu; member
61 pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, const pa_sample_spec *… in pa_rtp_context_new_send() argument
76 c->mtu = mtu; in pa_rtp_context_new_send()
96 if (pa_memblockq_get_length(q) < c->mtu) in pa_rtp_send()
107 size_t k = n + chunk.length > c->mtu ? c->mtu - n : chunk.length; in pa_rtp_send()
122 if (r < 0 || n >= c->mtu || iov_idx >= MAX_IOVECS) { in pa_rtp_send()
163 if (r < 0 || pa_memblockq_get_length(q) < c->mtu) in pa_rtp_send()
Drtp-gstreamer.c61 size_t mtu; member
76 static bool init_send_pipeline(pa_rtp_context *c, int fd, uint8_t payload, size_t mtu, const pa_sam… in init_send_pipeline() argument
112 …g_object_set(appsrc, "caps", caps, "is-live", TRUE, "blocksize", mtu, "format", 3 /* time */, NULL… in init_send_pipeline()
113 g_object_set(pay, "mtu", mtu, NULL); in init_send_pipeline()
170 pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, const pa_sample_spec *… in pa_rtp_context_new_send() argument
181 c->mtu = mtu - RTP_HEADER_SIZE; in pa_rtp_context_new_send()
182 c->send_buf = pa_xmalloc(c->mtu); in pa_rtp_context_new_send()
190 if (!init_send_pipeline(c, fd, payload, mtu, ss)) in pa_rtp_context_new_send()
244 if (pa_memblockq_get_length(q) < c->mtu) in pa_rtp_send()
262 size_t k = n + chunk.length > c->mtu ? c->mtu - n : chunk.length; in pa_rtp_send()
[all …]
Dmodule-rtp-send.c212 uint32_t port = DEFAULT_PORT, mtu; in pa__init() local
283 mtu = (uint32_t) pa_frame_align(DEFAULT_MTU, &ss); in pa__init()
285 if (pa_modargs_get_value_u32(ma, "mtu", &mtu) < 0 || mtu < 1 || mtu % pa_frame_size(&ss) != 0) { in pa__init()
427 pa_proplist_setf(data.proplist, "rtp.mtu", "%lu", (unsigned long) mtu); in pa__init()
451 …(unsigned long long) pa_source_output_set_requested_latency(o, pa_bytes_to_usec(mtu, &o->sample_sp… in pa__init()
491 if (!(u->rtp_context = pa_rtp_context_new_send(fd, payload, mtu, &ss))) in pa__init()
496 mtu, dst_addr, port, src_addr, ttl, payload); in pa__init()
Drtp.h32 int pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint8_t payload, size_t mtu, size_t frame_s…
33 pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, const pa_sample_spec *…
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpj2kpay.c341 guint mtu, max_size; in gst_rtp_j2k_pay_handle_buffer() local
346 mtu = GST_RTP_BASE_PAYLOAD_MTU (pay); in gst_rtp_j2k_pay_handle_buffer()
371 gst_rtp_buffer_calc_payload_len (mtu - GST_RTP_J2K_HEADER_SIZE, 0, 0); in gst_rtp_j2k_pay_handle_buffer()
373 list = gst_buffer_list_new_sized ((mtu / max_size) + 1); in gst_rtp_j2k_pay_handle_buffer()
429 if (packet_size > mtu) { in gst_rtp_j2k_pay_handle_buffer()
431 packet_size, mtu); in gst_rtp_j2k_pay_handle_buffer()
432 packet_size = mtu; in gst_rtp_j2k_pay_handle_buffer()
435 packet_size, mtu); in gst_rtp_j2k_pay_handle_buffer()
Dgstrtpklvpay.c116 guint mtu, rtp_header_size, max_payload_size; in gst_rtp_klv_pay_handle_buffer() local
119 mtu = GST_RTP_BASE_PAYLOAD_MTU (basepayload); in gst_rtp_klv_pay_handle_buffer()
122 max_payload_size = mtu - rtp_header_size; in gst_rtp_klv_pay_handle_buffer()
Dgstrtpmp2tpay.c126 guint avail, mtu; in gst_rtp_mp2t_pay_flush() local
132 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpmp2tpay); in gst_rtp_mp2t_pay_flush()
144 towrite = MIN (packet_len, mtu); in gst_rtp_mp2t_pay_flush()
Dgstrtpac3pay.c238 guint avail, FT, NF, mtu; in gst_rtp_ac3_pay_flush() local
255 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpac3pay); in gst_rtp_ac3_pay_flush()
271 towrite = MIN (packet_len, mtu); in gst_rtp_ac3_pay_flush()
292 maxlen = gst_rtp_buffer_calc_payload_len (mtu - 2, 0, 0); in gst_rtp_ac3_pay_flush()
Dgstrtpmp4apay.c359 guint mtu; in gst_rtp_mp4a_pay_handle_buffer() local
375 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpmp4apay); in gst_rtp_mp4a_pay_handle_buffer()
377 list = gst_buffer_list_new_sized (size / (mtu - RTP_HEADER_LEN) + 1); in gst_rtp_mp4a_pay_handle_buffer()
401 towrite = MIN (packet_len, mtu); in gst_rtp_mp4a_pay_handle_buffer()
Dgstrtpvrawpay.c276 guint mtu; in gst_rtp_vraw_pay_handle_buffer() local
308 mtu = GST_RTP_BASE_PAYLOAD_MTU (payload); in gst_rtp_vraw_pay_handle_buffer()
326 pgroups_per_packet = (mtu - (12 + 14)) / pgroup; in gst_rtp_vraw_pay_handle_buffer()
355 left = gst_rtp_buffer_calc_payload_len (mtu, 0, 0); in gst_rtp_vraw_pay_handle_buffer()
375 mtu); in gst_rtp_vraw_pay_handle_buffer()
/third_party/lwip/src/netif/ppp/
Dmultilink.c125 int l, mtu; in mp_join_bundle() local
145 mtu = ho->neg_mru? ho->mru: PPP_MRU; in mp_join_bundle()
146 if (mtu > ao->mru) in mp_join_bundle()
147 mtu = ao->mru; in mp_join_bundle()
151 netif_set_mtu(pcb, mtu); in mp_join_bundle()
156 netif_set_mtu(pcb, mtu); in mp_join_bundle()
198 mtu = LWIP_MIN(ho->mrru, ao->mru); in mp_join_bundle()
201 netif_set_mtu(pcb, mtu); in mp_join_bundle()
248 netif_set_mtu(pcb, mtu); in mp_join_bundle()
/third_party/ltp/testcases/network/iproute/
Dip_tests.sh62 MTUSZ_BAK=$(cat /sys/class/net/${iface}/mtu)
63 ip link set ${iface} mtu 1281
69 MTUSZ=$(cat /sys/class/net/${iface}/mtu)
72 ip link set $iface mtu $MTUSZ_BAK
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtpbasepayload.c1070 guint mtu, check; in GST_START_TEST() local
1074 g_object_get (state->element, "mtu", &mtu, NULL); in GST_START_TEST()
1075 validate_would_not_be_filled (state, mtu - 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1076 validate_would_not_be_filled (state, mtu, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1077 validate_would_be_filled (state, mtu + 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1079 g_object_set (state->element, "mtu", mtu - 1, NULL); in GST_START_TEST()
1081 fail_unless_equals_int (check, mtu - 1); in GST_START_TEST()
1082 validate_would_not_be_filled (state, mtu - 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1083 validate_would_be_filled (state, mtu, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1084 validate_would_be_filled (state, mtu + 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
[all …]
/third_party/libcoap/src/
Dcoap_session.c145 session->mtu = endpoint->default_mtu; in coap_make_session()
147 session->mtu = COAP_DEFAULT_MTU; in coap_make_session()
150 if (session->tls_overhead >= session->mtu) { in coap_make_session()
151 session->tls_overhead = session->mtu; in coap_make_session()
253 size_t max_with_header = (size_t)(session->mtu - session->tls_overhead); in coap_session_max_pdu_size()
273 void coap_session_set_mtu(coap_session_t *session, unsigned mtu) { in coap_session_set_mtu() argument
275 if (mtu > COAP_MAX_MESSAGE_SIZE_TCP16 + 4) in coap_session_set_mtu()
276 mtu = COAP_MAX_MESSAGE_SIZE_TCP16 + 4; in coap_session_set_mtu()
278 session->mtu = mtu; in coap_session_set_mtu()
279 if (session->tls_overhead >= session->mtu) { in coap_session_set_mtu()
[all …]
/third_party/ltp/testcases/network/sctp/
Dsctp_big_chunk.c137 static unsigned int mtu; variable
145 SAFE_FILE_SCANF(mtu_path, "%d", &mtu); in setup()
146 if (mtu < max_mtu) in setup()
/third_party/libnl/src/lib/
Dlink.c85 uint32_t mtu = nl_cli_parse_u32(arg); in nl_cli_link_parse_mtu() local
86 rtnl_link_set_mtu(link, mtu); in nl_cli_link_parse_mtu()
/third_party/ltp/doc/
Dnamespaces-helper-tools.txt45 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN
51 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN
53 6: veth1: <BROADCAST> mtu 1500 qdisc noop state DOWN qlen 1000
/third_party/uboot/u-boot-2020.01/drivers/usb/gadget/
Drndis.h225 int mtu; member
245 int rndis_set_param_dev(u8 configNr, struct eth_device *dev, int mtu,
249 int rndis_set_param_dev(u8 configNr, struct udevice *dev, int mtu,
/third_party/mbedtls/programs/test/
Dudp_proxy.c188 int mtu; /* drop packets larger than this */ member
313 opt.mtu = atoi( q ); in get_options()
314 if( opt.mtu < 0 || opt.mtu > MAX_MSG_SIZE ) in get_options()
754 if( ( opt.mtu != 0 && in handle_message()
755 cur.len > (unsigned) opt.mtu ) || in handle_message()

123456