Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/network/stress/interface/
Dif-mtu-change.sh33 local mtu="$1"
40 ifconfig) ifconfig $iface mtu $mtu || ret=1
41 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu" || ret=1
43 ip) ip link set $iface mtu $mtu || ret=1
44 tst_rhost_run -c "ip link set $iface_rmt mtu $mtu" || ret=1
58 set_mtu $min_mtu $CMD || tst_brk TBROK "failed to set MTU to $mtu"
84 ip link set $(tst_iface) mtu $saved_mtu
103 mtu=$(echo $CHANGE_VALUES | cut -d ' ' -f $field)
104 [ $cnt -eq $MTU_CHANGE_TIMES ] && mtu="$saved_mtu"
108 tst_res TINFO "set MTU to $mtu $cnt/$MTU_CHANGE_TIMES"
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_cc_functions.c66 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit()
68 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_enforce_cwnd_limit()
69 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_enforce_cwnd_limit()
84 net->cwnd = min((net->mtu * 4), max((2 * net->mtu), SCTP_INITIAL_CWND)); in sctp_set_initial_cc_param()
92 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_set_initial_cc_param()
98 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_set_initial_cc_param()
99 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_set_initial_cc_param()
163 (uint64_t)net->mtu * in sctp_cwnd_update_after_fr()
178 (uint64_t)net->mtu * in sctp_cwnd_update_after_fr()
188 if (net->ssthresh < net->mtu) { in sctp_cwnd_update_after_fr()
[all …]
Dsctp_output.c4485 uint32_t mtu; local
4488 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh);
4490 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_rt);
4492 if (mtu > 0) {
4494 mtu -= sizeof(struct udphdr);
4496 if (mtu < net->mtu) {
4497 if ((stcb != NULL) && (stcb->asoc.smallest_mtu > mtu)) {
4498 sctp_mtu_size_reset(inp, &stcb->asoc, mtu);
4500 net->mtu = mtu;
4975 uint32_t mtu; local
[all …]
/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()
366 size_t mtu; in dtls1_check_timeout_num() local
373 mtu = in dtls1_check_timeout_num()
375 if (mtu < s->d1->mtu) in dtls1_check_timeout_num()
376 s->d1->mtu = mtu; in dtls1_check_timeout_num()
888 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/pulseaudio/src/modules/rtp/
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 …]
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()
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/ltp/testcases/kernel/pty/
Dpty04.c87 int mtu; member
95 static int ptmx, pts, sk, mtu, no_check; variable
192 len = mtu; in do_pty()
255 ifreq.ifr_mtu = ldisc->mtu; in open_netdev()
259 mtu = ifreq.ifr_mtu; in open_netdev()
260 tst_res(TINFO, "Netdev MTU is %d (we set %d)", mtu, ldisc->mtu); in open_netdev()
338 int retry = mtu; in try_sync_read()
358 int retry = mtu; in try_sync_write()
382 plen = mtu - 1; in read_netdev()
/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/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpj2kpay.c344 guint mtu, max_size; in gst_rtp_j2k_pay_handle_buffer() local
349 mtu = GST_RTP_BASE_PAYLOAD_MTU (pay); in gst_rtp_j2k_pay_handle_buffer()
374 gst_rtp_buffer_calc_payload_len (mtu - GST_RTP_J2K_HEADER_SIZE, 0, 0); in gst_rtp_j2k_pay_handle_buffer()
376 list = gst_buffer_list_new_sized ((mtu / max_size) + 1); in gst_rtp_j2k_pay_handle_buffer()
432 if (packet_size > mtu) { in gst_rtp_j2k_pay_handle_buffer()
434 packet_size, mtu); in gst_rtp_j2k_pay_handle_buffer()
435 packet_size = mtu; in gst_rtp_j2k_pay_handle_buffer()
438 packet_size, mtu); in gst_rtp_j2k_pay_handle_buffer()
Dgstrtph265pay.c931 gboolean marker, guint mtu, guint8 nal_type, const guint8 * nal_header,
999 guint mtu; in gst_rtp_h265_pay_payload_nal() local
1005 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtph265pay); in gst_rtp_h265_pay_payload_nal()
1118 pts, marker, mtu, nal_type, nal_header, size); in gst_rtp_h265_pay_payload_nal()
1166 guint mtu, guint8 nal_type, const guint8 * nal_header, int size) in gst_rtp_h265_pay_payload_nal_fragment() argument
1176 if (gst_rtp_buffer_calc_packet_len (size, 0, 0) < mtu) { in gst_rtp_h265_pay_payload_nal_fragment()
1178 "NAL Unit fit in one packet datasize=%d mtu=%d", size, mtu); in gst_rtp_h265_pay_payload_nal_fragment()
1185 "NAL Unit DOES NOT fit in one packet datasize=%d mtu=%d", size, mtu); in gst_rtp_h265_pay_payload_nal_fragment()
1191 max_fragment_size = gst_rtp_buffer_calc_payload_len (mtu - 3, 0, 0); in gst_rtp_h265_pay_payload_nal_fragment()
1343 guint mtu; in gst_rtp_h265_pay_payload_nal_bundle() local
[all …]
Dgstrtpklvpay.c119 guint mtu, rtp_header_size, max_payload_size; in gst_rtp_klv_pay_handle_buffer() local
122 mtu = GST_RTP_BASE_PAYLOAD_MTU (basepayload); in gst_rtp_klv_pay_handle_buffer()
125 max_payload_size = mtu - rtp_header_size; in gst_rtp_klv_pay_handle_buffer()
Dgstrtpac3pay.c241 guint avail, FT, NF, mtu; in gst_rtp_ac3_pay_flush() local
258 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpac3pay); in gst_rtp_ac3_pay_flush()
274 towrite = MIN (packet_len, mtu); in gst_rtp_ac3_pay_flush()
297 maxlen = gst_rtp_buffer_calc_payload_len (mtu - 2, 0, 0); in gst_rtp_ac3_pay_flush()
Dgstrtpmp2tpay.c129 guint avail, mtu; in gst_rtp_mp2t_pay_flush() local
135 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpmp2tpay); in gst_rtp_mp2t_pay_flush()
147 towrite = MIN (packet_len, mtu); in gst_rtp_mp2t_pay_flush()
Dgstrtpmp4apay.c362 guint mtu; in gst_rtp_mp4a_pay_handle_buffer() local
378 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtpmp4apay); in gst_rtp_mp4a_pay_handle_buffer()
380 list = gst_buffer_list_new_sized (size / (mtu - RTP_HEADER_LEN) + 1); in gst_rtp_mp4a_pay_handle_buffer()
404 towrite = MIN (packet_len, mtu); in gst_rtp_mp4a_pay_handle_buffer()
Dgstrtph264pay.c1034 guint mtu, size, max_fragment_size, max_fragments, ii, pos; in gst_rtp_h264_pay_payload_nal_fragment() local
1041 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtph264pay); in gst_rtp_h264_pay_payload_nal_fragment()
1044 if (gst_rtp_buffer_calc_packet_len (size, 0, 0) <= mtu) { in gst_rtp_h264_pay_payload_nal_fragment()
1047 "sending NAL Unit: datasize=%u mtu=%u", size, mtu); in gst_rtp_h264_pay_payload_nal_fragment()
1053 "using FU-A fragmentation for NAL Unit: datasize=%u mtu=%u", size, mtu); in gst_rtp_h264_pay_payload_nal_fragment()
1056 max_fragment_size = gst_rtp_buffer_calc_payload_len (mtu - 2, 0, 0); in gst_rtp_h264_pay_payload_nal_fragment()
1120 "sending FU-A fragments: n=%u datasize=%u mtu=%u", ii, size, mtu); in gst_rtp_h264_pay_payload_nal_fragment()
1260 guint mtu, pay_size, bundle_size; in gst_rtp_h264_pay_payload_nal_bundle() local
1267 mtu = GST_RTP_BASE_PAYLOAD_MTU (rtph264pay); in gst_rtp_h264_pay_payload_nal_bundle()
1299 if (gst_rtp_buffer_calc_packet_len (bundle_size, 0, 0) > mtu) { in gst_rtp_h264_pay_payload_nal_bundle()
[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/iproute/
Dip_tests.sh63 MTUSZ_BAK=$(cat /sys/class/net/${iface}/mtu)
64 ip link set ${iface} mtu 1281
70 MTUSZ=$(cat /sys/class/net/${iface}/mtu)
73 ip link set $iface mtu $MTUSZ_BAK
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtpbasepayload.c1094 guint mtu, check; in GST_START_TEST() local
1098 g_object_get (state->element, "mtu", &mtu, NULL); in GST_START_TEST()
1099 validate_would_not_be_filled (state, mtu - 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1100 validate_would_not_be_filled (state, mtu, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1101 validate_would_be_filled (state, mtu + 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1103 g_object_set (state->element, "mtu", mtu - 1, NULL); in GST_START_TEST()
1105 fail_unless_equals_int (check, mtu - 1); in GST_START_TEST()
1106 validate_would_not_be_filled (state, mtu - 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1107 validate_would_be_filled (state, mtu, GST_CLOCK_TIME_NONE); in GST_START_TEST()
1108 validate_would_be_filled (state, mtu + 1, GST_CLOCK_TIME_NONE); in GST_START_TEST()
[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/gstreamer/gstplugins_good/gst/rtpmanager/
Drtptwcc.h55 RTPTWCCManager * rtp_twcc_manager_new (guint mtu);
62 void rtp_twcc_manager_set_mtu (RTPTWCCManager * twcc, guint 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/mbedtls/programs/test/
Dudp_proxy.c162 int mtu; /* drop packets larger than this */ member
288 opt.mtu = atoi( q ); in get_options()
289 if( opt.mtu < 0 || opt.mtu > MAX_MSG_SIZE ) in get_options()
759 if( ( opt.mtu != 0 && in handle_message()
760 cur.len > (unsigned) opt.mtu ) || in handle_message()

123456