/third_party/ltp/testcases/network/stress/interface/ |
H A D | if-mtu-change.sh | 22 # CHANGE_INTERVAL: The interval of the mtu change 36 saved_mtu="$(cat /sys/class/net/$(tst_iface)/mtu)" 45 ip link set $(tst_iface) mtu $saved_mtu 46 tst_rhost_run -c "ip link set $(tst_iface rhost) mtu $saved_mtu" 52 local mtu="$1" 59 ifconfig) ifconfig $iface mtu $mtu || ret=1 60 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu" || ret=1 62 ip) ip link set $iface mtu [all...] |
/third_party/node/deps/openssl/openssl/ssl/ |
H A D | d1_lib.c | 90 d1->mtu = 0; in dtls1_new() 176 size_t mtu; in dtls1_clear() local 186 mtu = s->d1->mtu; in dtls1_clear() 201 s->d1->mtu = mtu; in dtls1_clear() 251 s->d1->mtu = larg; in dtls1_ctrl() 383 size_t mtu; in dtls1_check_timeout_num() local 390 mtu = in dtls1_check_timeout_num() 392 if (mtu < in dtls1_check_timeout_num() 947 size_t mtu = s->d1->mtu; DTLS_get_data_mtu() local [all...] |
/third_party/openssl/ssl/ |
H A D | d1_lib.c | 90 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 < in dtls1_check_timeout_num() 930 size_t mtu = s->d1->mtu; DTLS_get_data_mtu() local [all...] |
/third_party/pulseaudio/src/modules/rtp/ |
H A D | rtp-gstreamer.c | 69 size_t mtu; member 84 static bool init_send_pipeline(pa_rtp_context *c, int fd, uint8_t payload, size_t mtu, const pa_sample_spec *ss, bool enable_opus) { in init_send_pipeline() argument 129 g_object_set(appsrc, "caps", caps, "is-live", TRUE, "blocksize", mtu, "format", 3 /* time */, NULL); in init_send_pipeline() 130 g_object_set(pay, "mtu", mtu, NULL); in init_send_pipeline() 205 pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, const pa_sample_spec *ss, bool enable_opus) { in pa_rtp_context_new_send() argument 219 c->mtu = mtu - RTP_HEADER_SIZE; in pa_rtp_context_new_send() 220 c->send_buf = pa_xmalloc(c->mtu); in pa_rtp_context_new_send() 228 if (!init_send_pipeline(c, fd, payload, mtu, s in pa_rtp_context_new_send() [all...] |
H A D | module-rtp-send.c | 65 "mtu=<maximum transfer unit> " 91 "mtu" , 214 uint32_t port = DEFAULT_PORT, mtu; in pa__init() local 296 mtu = (uint32_t) pa_frame_align(DEFAULT_MTU, &ss); in pa__init() 298 if (pa_modargs_get_value_u32(ma, "mtu", &mtu) < 0 || mtu < 1 || mtu % pa_frame_size(&ss) != 0) { in pa__init() 440 pa_proplist_setf(data.proplist, "rtp.mtu", "%lu", (unsigned long) mtu); in pa__init() [all...] |
H A D | rtp-native.c | 54 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 *ss, bool enable_opus) { 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()
|
H A D | rtp.h | 32 int pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint8_t payload, size_t mtu, size_t frame_size); 33 pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, const pa_sample_spec *ss, bool enable_opus);
|
/third_party/ltp/testcases/kernel/pty/ |
H A D | pty04.c | 86 int mtu; member 94 static int ptmx = -1, pts = -1, sk = -1, mtu, no_check; variable 191 len = mtu; in do_pty() 254 ifreq.ifr_mtu = ldisc->mtu; in open_netdev() 258 mtu = ifreq.ifr_mtu; in open_netdev() 259 tst_res(TINFO, "Netdev MTU is %d (we set %d)", mtu, ldisc->mtu); in open_netdev() 337 int retry = mtu; in try_sync_read() 357 int retry = mtu; in try_sync_write() 381 plen = mtu in read_netdev() [all...] |
/third_party/lwip/src/netif/ppp/ |
H A D | multilink.c | 125 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()
|
H A D | ppp.c | 1028 int ppp_send_config(ppp_pcb *pcb, int mtu, u32_t accm, int pcomp, int accomp) { in ppp_send_config() argument 1029 LWIP_UNUSED_ARG(mtu); in ppp_send_config() 1030 /* pcb->mtu = mtu; -- set correctly with netif_set_mtu */ in ppp_send_config() 1318 void netif_set_mtu(ppp_pcb *pcb, int mtu) { in netif_set_mtu() argument 1320 pcb->netif->mtu = mtu; in netif_set_mtu() 1321 PPPDEBUG(LOG_INFO, ("netif_set_mtu[%d]: mtu=%d\n", pcb->netif->num, mtu)); in netif_set_mtu() 1329 return pcb->netif->mtu; in netif_get_mtu() [all...] |
/third_party/ltp/testcases/network/iproute/ |
H A D | ip_tests.sh | 60 tst_res TINFO "changing mtu size of $iface device" 62 MTUSZ_BAK=$(cat /sys/class/net/${iface}/mtu) 63 ip link set ${iface} mtu 1281 69 MTUSZ=$(cat /sys/class/net/${iface}/mtu) 71 tst_res TPASS "successfully changed mtu size" 72 ip link set $iface mtu $MTUSZ_BAK
|
/third_party/libcoap/src/ |
H A D | coap_session.c | 551 session->mtu = endpoint->default_mtu; in coap_make_session() 554 session->mtu = COAP_DEFAULT_MTU; in coap_make_session() 558 if (session->tls_overhead >= session->mtu) { in coap_make_session() 559 session->tls_overhead = session->mtu; in coap_make_session() 735 (size_t)(session->mtu - session->tls_overhead)); in coap_session_max_pdu_rcv_size() 760 max_with_header = (size_t)(session->mtu - session->tls_overhead); in coap_session_max_pdu_size() 766 coap_session_set_mtu(coap_session_t *session, unsigned mtu) { in coap_session_set_mtu() argument 768 if (mtu > COAP_DEFAULT_MAX_PDU_RX_SIZE) in coap_session_set_mtu() 769 mtu = COAP_DEFAULT_MAX_PDU_RX_SIZE; in coap_session_set_mtu() 771 if (mtu < 6 in coap_session_set_mtu() 1944 coap_endpoint_set_default_mtu(coap_endpoint_t *ep, unsigned mtu) coap_endpoint_set_default_mtu() argument [all...] |
/third_party/ltp/testcases/network/sctp/ |
H A D | sctp_big_chunk.c | 164 static const char mtu_path[] = "/sys/class/net/lo/mtu"; 166 static unsigned int mtu; variable 174 SAFE_FILE_SCANF(mtu_path, "%d", &mtu); in setup() 175 if (mtu < max_mtu) in setup()
|
/third_party/mbedtls/programs/test/ |
H A D | udp_proxy.c | 117 " mtu=%%d default: 0 (unlimited)\n" \ 153 int mtu; /* drop packets larger than this */ member 265 } else if (strcmp(p, "mtu") == 0) { in get_options() 266 opt.mtu = atoi(q); in get_options() 267 if (opt.mtu < 0 || opt.mtu > MAX_MSG_SIZE) { in get_options() 720 if ((opt.mtu != 0 && in handle_message() 721 cur.len > (unsigned) opt.mtu) || in handle_message()
|
/third_party/libcoap/include/coap3/ |
H A D | coap_session.h | 226 * @param mtu maximum message size 228 void coap_session_set_mtu(coap_session_t *session, unsigned mtu); 405 * @param mtu maximum message size 407 void coap_endpoint_set_default_mtu(coap_endpoint_t *endpoint, unsigned mtu);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_pwd.c | 43 size_t mtu; member 165 data->mtu = 1020; /* default from RFC 5931 */ in eap_pwd_init() 167 data->mtu = fragment_size; in eap_pwd_init() 910 if ((len + EAP_PWD_HDR_SIZE) > data->mtu) { in eap_pwd_process() 911 len = data->mtu - EAP_PWD_HDR_SIZE; in eap_pwd_process() 1062 if ((len + EAP_PWD_HDR_SIZE) > data->mtu) { in eap_pwd_process() 1063 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PWD, data->mtu, in eap_pwd_process() 1074 len = data->mtu - EAP_PWD_HDR_SIZE - sizeof(u16); in eap_pwd_process()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_pwd.c | 43 size_t mtu; member 165 data->mtu = 1020; /* default from RFC 5931 */ in eap_pwd_init() 167 data->mtu = fragment_size; in eap_pwd_init() 910 if ((len + EAP_PWD_HDR_SIZE) > data->mtu) { in eap_pwd_process() 911 len = data->mtu - EAP_PWD_HDR_SIZE; in eap_pwd_process() 1062 if ((len + EAP_PWD_HDR_SIZE) > data->mtu) { in eap_pwd_process() 1063 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PWD, data->mtu, in eap_pwd_process() 1074 len = data->mtu - EAP_PWD_HDR_SIZE - sizeof(u16); in eap_pwd_process()
|
/third_party/node/deps/openssl/openssl/crypto/bio/ |
H A D | bss_dgram.c | 108 unsigned int mtu; member 125 unsigned int mtu; member 499 data->mtu = sockopt_val - 8 - 20; in dgram_ctrl() 500 ret = data->mtu; in dgram_ctrl() 515 data->mtu = sockopt_val - 8 - 40; in dgram_ctrl() 516 ret = data->mtu; in dgram_ctrl() 554 return data->mtu; in dgram_ctrl() 556 data->mtu = num; in dgram_ctrl() 1342 data->mtu = 16384; in dgram_sctp_ctrl() 1343 ret = data->mtu; in dgram_sctp_ctrl() [all...] |
/third_party/openssl/crypto/bio/ |
H A D | bss_dgram.c | 108 unsigned int mtu; member 125 unsigned int mtu; member 499 data->mtu = sockopt_val - 8 - 20; in dgram_ctrl() 500 ret = data->mtu; in dgram_ctrl() 515 data->mtu = sockopt_val - 8 - 40; in dgram_ctrl() 516 ret = data->mtu; in dgram_ctrl() 554 return data->mtu; in dgram_ctrl() 556 data->mtu = num; in dgram_ctrl() 1342 data->mtu = 16384; in dgram_sctp_ctrl() 1343 ret = data->mtu; in dgram_sctp_ctrl() [all...] |
/third_party/lwip/src/include/lwip/ |
H A D | icmp6.h | 58 void icmp6_packet_too_big(struct pbuf *p, u32_t mtu);
|
/third_party/mbedtls/programs/ssl/ |
H A D | ssl_context_info.c | 742 * uint16 mtu; // DTLS: path mtu (max outgoing fragment size) 881 uint16_t mtu; in print_deserialized_ssl_context() local 883 mtu = (ssl[0] << 8) | ssl[1]; in print_deserialized_ssl_context() 885 printf("\tMTU : %u\n", mtu); in print_deserialized_ssl_context()
|
/third_party/lwip/src/core/ipv6/ |
H A D | icmp6.c | 233 * @param mtu the maximum mtu that we can accept 236 icmp6_packet_too_big(struct pbuf *p, u32_t mtu) in icmp6_packet_too_big() argument 238 icmp6_send_response(p, 0, mtu, ICMP6_TYPE_PTB); in icmp6_packet_too_big()
|
/third_party/lwip/test/unit/ip6/ |
H A D | test_ip6.c | 34 netif->mtu = 1500; in default_netif_init() 300 test_netif6.mtu = 1500; in START_TEST() 305 /* Create packet with lots of small pbufs around mtu limit */ in START_TEST()
|
/third_party/lwip/src/core/ipv4/ |
H A D | ip4.c | 381 /* don't fragment if interface has mtu set to 0 [loopif] */ 382 if (netif->mtu && (p->tot_len > netif->mtu)) { 1041 /* don't fragment if interface has mtu set to 0 [loopif] */ 1042 if (netif->mtu && (p->tot_len > netif->mtu)) {
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
H A D | eap_server_pwd.c | 41 size_t mtu; member 137 data->mtu = sm->fragment_size > 0 ? sm->fragment_size : 1020; in eap_pwd_init() 482 if ((len + EAP_PWD_HDR_SIZE) > data->mtu) { in eap_pwd_build_req() 483 len = data->mtu - EAP_PWD_HDR_SIZE; in eap_pwd_build_req()
|