Home
last modified time | relevance | path

Searched refs:frag_len (Results 1 – 12 of 12) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/net/
Dip_defrag.c137 int frag_len; in send_fragment() local
161 frag_len = FRAG_HLEN + payload_len - payload_offset; in send_fragment()
164 frag_len = FRAG_HLEN + max_frag_len; in send_fragment()
167 ip6hdr->ip6_plen = htons(frag_len); in send_fragment()
170 frag_len - FRAG_HLEN - UDP_HLEN); in send_fragment()
173 frag_len - FRAG_HLEN); in send_fragment()
174 frag_len += IP6_HLEN; in send_fragment()
179 frag_len = IP4_HLEN + payload_len - payload_offset; in send_fragment()
182 frag_len = IP4_HLEN + max_frag_len; in send_fragment()
185 iphdr->ip_len = htons(frag_len); in send_fragment()
[all …]
/external/boringssl/src/ssl/
Dd1_both.cc362 const size_t frag_len = msg_hdr.frag_len; in dtls1_open_handshake() local
364 if (frag_off > msg_len || frag_off + frag_len < frag_off || in dtls1_open_handshake()
365 frag_off + frag_len > msg_len || in dtls1_open_handshake()
401 dtls1_hm_fragment_mark(frag, frag_off, frag_off + frag_len); in dtls1_open_handshake()
462 !CBS_get_u24(cbs, &out_hdr->frag_len) || in dtls1_parse_fragment()
463 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) { in dtls1_parse_fragment()
671 hdr.frag_len != CBS_len(&body) || in seal_next_message()
691 size_t max_frag = max_out - prefix, frag_len; in seal_next_message() local
699 !CBB_finish(cbb.get(), NULL, &frag_len)) { in seal_next_message()
705 MakeSpan(frag, frag_len)); in seal_next_message()
[all …]
Dinternal.h2556 uint32_t frag_len;
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dd1_both.cc362 const size_t frag_len = msg_hdr.frag_len; in dtls1_open_handshake() local
364 if (frag_off > msg_len || frag_off + frag_len < frag_off || in dtls1_open_handshake()
365 frag_off + frag_len > msg_len || in dtls1_open_handshake()
401 dtls1_hm_fragment_mark(frag, frag_off, frag_off + frag_len); in dtls1_open_handshake()
462 !CBS_get_u24(cbs, &out_hdr->frag_len) || in dtls1_parse_fragment()
463 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) { in dtls1_parse_fragment()
671 hdr.frag_len != CBS_len(&body) || in seal_next_message()
691 size_t max_frag = max_out - prefix, frag_len; in seal_next_message() local
699 !CBB_finish(cbb.get(), NULL, &frag_len)) { in seal_next_message()
705 MakeSpan(frag, frag_len)); in seal_next_message()
[all …]
Dinternal.h2516 uint32_t frag_len;
/external/perfetto/src/trace_processor/rpc/
Dproto_ring_buffer_unittest.cc185 uint32_t frag_len = static_cast<uint32_t>(1 + (rnd() % 32768)); in TEST_F() local
186 frag_len = std::min(frag_len, total - frag_sum); in TEST_F()
187 buf.Append(&last_msg_[frag_sum], frag_len); in TEST_F()
188 frag_sum += frag_len; in TEST_F()
/external/scapy/scapy/layers/tls/
Drecord_tls13.py72 frag_len = pkt.len - tag_len
73 if frag_len < 1:
76 remain, i = super(_TLSInnerPlaintextField, self).getfield(pkt, s[:frag_len])
78 return remain + s[frag_len:], i
/external/wpa_supplicant_8/src/p2p/
Dp2p_group.c194 size_t frag_len = end - pos; in p2p_group_encaps_probe_resp() local
195 if (frag_len > 251) in p2p_group_encaps_probe_resp()
196 frag_len = 251; in p2p_group_encaps_probe_resp()
198 wpabuf_put_u8(ie, 4 + frag_len); in p2p_group_encaps_probe_resp()
200 wpabuf_put_data(ie, pos, frag_len); in p2p_group_encaps_probe_resp()
201 pos += frag_len; in p2p_group_encaps_probe_resp()
271 size_t frag_len = end - pos; in wifi_display_encaps() local
272 if (frag_len > 251) in wifi_display_encaps()
273 frag_len = 251; in wifi_display_encaps()
275 wpabuf_put_u8(ie, 4 + frag_len); in wifi_display_encaps()
[all …]
Dp2p_sd.c626 size_t frag_len, max_len; in p2p_rx_gas_comeback_req() local
656 frag_len = wpabuf_len(p2p->sd_resp) - p2p->sd_resp_pos; in p2p_rx_gas_comeback_req()
657 if (frag_len > max_len) { in p2p_rx_gas_comeback_req()
658 frag_len = max_len; in p2p_rx_gas_comeback_req()
664 p2p->sd_resp_pos, frag_len, in p2p_rx_gas_comeback_req()
670 p2p->sd_frag_id, more, (int) frag_len); in p2p_rx_gas_comeback_req()
672 p2p->sd_resp_pos += frag_len; in p2p_rx_gas_comeback_req()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c479 size_t frag_len = end - pos; in wps_ie_encapsulate() local
480 if (frag_len > 251) in wps_ie_encapsulate()
481 frag_len = 251; in wps_ie_encapsulate()
483 wpabuf_put_u8(ie, 4 + frag_len); in wps_ie_encapsulate()
485 wpabuf_put_data(ie, pos, frag_len); in wps_ie_encapsulate()
486 pos += frag_len; in wps_ie_encapsulate()
/external/wpa_supplicant_8/src/ap/
Dgas_serv.c1742 size_t frag_len; in gas_serv_rx_gas_comeback_req() local
1768 frag_len = wpabuf_len(dialog->sd_resp) - dialog->sd_resp_pos; in gas_serv_rx_gas_comeback_req()
1769 if (frag_len > hapd->conf->gas_frag_limit) { in gas_serv_rx_gas_comeback_req()
1770 frag_len = hapd->conf->gas_frag_limit; in gas_serv_rx_gas_comeback_req()
1774 (unsigned int) frag_len); in gas_serv_rx_gas_comeback_req()
1776 dialog->sd_resp_pos, frag_len); in gas_serv_rx_gas_comeback_req()
1788 10 + 2 + frag_len); in gas_serv_rx_gas_comeback_req()
1791 wpabuf_put_le16(tx_buf, frag_len); in gas_serv_rx_gas_comeback_req()
1807 dialog->sd_frag_id, more, (int) frag_len); in gas_serv_rx_gas_comeback_req()
1809 dialog->sd_resp_pos += frag_len; in gas_serv_rx_gas_comeback_req()
/external/libwebsockets/lib/roles/http/
Dparsers.c722 unsigned short frag_len; in issue_char() local
727 frag_len = wsi->http.ah->frags[wsi->http.ah->nfrag].len; in issue_char()
733 frag_len < wsi->http.ah->current_token_limit) { in issue_char()
741 if (frag_len == wsi->http.ah->current_token_limit) { in issue_char()