/external/linux-kselftest/tools/testing/selftests/net/ |
D | ip_defrag.c | 35 static int payload_len; variable 58 ret = recv(fd_udp, recv_buff, payload_len, 0); in recv_validate_udp() 73 payload_len, max_frag_len); in recv_validate_udp() 74 if (ret != payload_len) in recv_validate_udp() 75 error(1, 0, "recv: wrong size: %d vs %d", (int)ret, payload_len); in recv_validate_udp() 76 if (memcmp(udp_payload, recv_buff, payload_len)) in recv_validate_udp() 105 IPPROTO_UDP + (uint32_t)(UDP_HLEN + payload_len)); in udp_checksum() 107 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum() 124 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp6_checksum() 145 udphdr.len = htons(UDP_HLEN + payload_len); in send_fragment() [all …]
|
D | psock_snd.c | 117 static int build_ipv4_header(void *header, int payload_len) in build_ipv4_header() argument 124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); in build_ipv4_header() 134 static int build_udp_header(void *header, int payload_len) in build_udp_header() argument 138 int len = sizeof(*udph) + payload_len; in build_udp_header() 153 static int build_packet(int payload_len) in build_packet() argument 159 off += build_ipv4_header(tbuf + off, payload_len); in build_packet() 160 off += build_udp_header(tbuf + off, payload_len); in build_packet() 162 if (off + payload_len > sizeof(tbuf)) in build_packet() 165 memset(tbuf + off, DATA_CHAR, payload_len); in build_packet() 167 return off + payload_len; in build_packet()
|
D | msg_zerocopy.c | 230 int i, payload_len, extra_len; in do_sendmsg_corked() local 233 payload_len = cfg_payload_len / cfg_cork; in do_sendmsg_corked() 234 extra_len = cfg_payload_len - (cfg_cork * payload_len); in do_sendmsg_corked() 246 msg->msg_iov[0].iov_len = payload_len + extra_len; in do_sendmsg_corked() 257 static int setup_iph(struct iphdr *iph, uint16_t payload_len) in setup_iph() argument 271 iph->tot_len = htons(sizeof(*iph) + payload_len); in setup_iph() 277 static int setup_ip6h(struct ipv6hdr *ip6h, uint16_t payload_len) in setup_ip6h() argument 285 ip6h->payload_len = htons(payload_len); in setup_ip6h()
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | packet_buffer_unittest.cc | 92 const int payload_len = 100; in TEST() local 93 Packet* packet = gen.NextPacket(payload_len); in TEST() 112 const int payload_len = 10; in TEST() local 116 Packet* packet = gen.NextPacket(payload_len); in TEST() 134 const int payload_len = 10; in TEST() local 137 Packet* packet = gen.NextPacket(payload_len); in TEST() 146 Packet* packet = gen.NextPacket(payload_len); in TEST() 162 const int payload_len = 10; in TEST() local 166 Packet* packet = gen.NextPacket(payload_len); in TEST() 198 const int payload_len = 10; in TEST() local [all …]
|
D | neteq_unittest.cc | 305 size_t* payload_len); 508 size_t* payload_len) { in PopulateCng() argument 515 *payload_len = 1; // Only noise level, no spectral parameters. in PopulateCng() 747 size_t payload_len; in LongCngWithClockDrift() local 749 PopulateCng(seq_no, timestamp, &rtp_info, payload, &payload_len); in LongCngWithClockDrift() 752 rtc::ArrayView<const uint8_t>(payload, payload_len), 0)); in LongCngWithClockDrift() 796 size_t payload_len; in LongCngWithClockDrift() local 798 PopulateCng(seq_no, timestamp, &rtp_info, payload, &payload_len); in LongCngWithClockDrift() 801 rtc::ArrayView<const uint8_t>(payload, payload_len), 0)); in LongCngWithClockDrift() 1544 size_t payload_len; in DuplicateCng() local [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_xdp.c | 89 __u16 payload_len; in handle_ipv4() local 106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4() 136 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4() 161 __u16 payload_len; in handle_ipv6() local 176 payload_len = ip6h->payload_len; in handle_ipv6() 202 ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); in handle_ipv6()
|
D | test_flow_dissector.c | 169 int payload_len, uint8_t tos) in build_ipv4_header() argument 177 iph->tot_len = htons(sizeof(*iph) + payload_len); in build_ipv4_header() 198 int payload_len, uint8_t dsfield) in build_ipv6_header() argument 203 ip6h->payload_len = htons(payload_len); in build_ipv6_header() 234 pseudo_sum += ip6h->payload_len; in build_udp_v6_csum() 238 static void build_udp_header(void *header, int payload_len, in build_udp_header() argument 242 int len = sizeof(*udph) + payload_len; in build_udp_header()
|
/external/grpc-grpc/tools/codegen/core/ |
D | gen_header_frame.py | 82 payload_len = 0 variable 88 payload_len += len(payload_line) 97 (payload_len >> 16) & 0xff, 98 (payload_len >> 8) & 0xff, 99 (payload_len) & 0xff,
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pwd.c | 210 const u8 *payload, size_t payload_len) in eap_pwd_perform_id_exchange() argument 220 if (payload_len < sizeof(struct eap_pwd_id)) { in eap_pwd_perform_id_exchange() 269 data->id_server = os_malloc(payload_len - sizeof(struct eap_pwd_id)); in eap_pwd_perform_id_exchange() 275 data->id_server_len = payload_len - sizeof(struct eap_pwd_id); in eap_pwd_perform_id_exchange() 309 const u8 *payload, size_t payload_len) in eap_pwd_perform_commit_exchange() argument 349 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 352 (unsigned int) payload_len, in eap_pwd_perform_commit_exchange() 380 if (payload_len < 1 || *ptr == 0) { in eap_pwd_perform_commit_exchange() 386 if (payload_len != exp_len) { in eap_pwd_perform_commit_exchange() 389 (unsigned int) payload_len, in eap_pwd_perform_commit_exchange() [all …]
|
D | eap_sake.c | 145 size_t payload_len) in eap_sake_process_identity() argument 157 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_identity() 188 size_t payload_len) in eap_sake_process_challenge() argument 206 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_challenge() 287 size_t payload_len) in eap_sake_process_confirm() argument 301 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_confirm()
|
D | eap_eke.c | 224 size_t payload_len) in eap_eke_process_id() argument 240 if (payload_len < 2 + 4) { in eap_eke_process_id() 247 end = payload + payload_len; in eap_eke_process_id() 357 size_t payload_len) in eap_eke_process_commit() argument 385 end = payload + payload_len; in eap_eke_process_commit() 503 size_t payload_len) in eap_eke_process_confirm() argument 524 end = payload + payload_len; in eap_eke_process_confirm() 630 size_t payload_len) in eap_eke_process_failure() argument 634 if (payload_len < 4) { in eap_eke_process_failure()
|
/external/android-clat/ |
D | netlink_msg.c | 56 size_t payload_len) { in nlmsg_alloc_generic() argument 64 if ((sizeof(struct nl_msg) + payload_len) > msg->nm_size) { in nlmsg_alloc_generic() 69 msg->nm_nlh->nlmsg_len = NLMSG_LENGTH(payload_len); in nlmsg_alloc_generic() 73 memcpy(nlmsg_data(msg->nm_nlh), payload_struct, payload_len); in nlmsg_alloc_generic()
|
D | translate.h | 47 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol, 49 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol,
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | neteq_performance_test.cc | 70 size_t payload_len = WebRtcPcm16b_Encode(input_samples.data(), in Run() local 72 RTC_CHECK_EQ(sizeof(input_payload), payload_len); in Run() 100 payload_len = WebRtcPcm16b_Encode(input_samples.data(), in Run() 102 assert(payload_len == kInputBlockSizeSamples * sizeof(int16_t)); in Run()
|
D | neteq_rtpplay.cc | 304 size_t payload_len = 0; in ReplacePayload() local 313 payload_len = 1; in ReplacePayload() 351 payload_len = WebRtcPcm16b_Encode((*replacement_audio).get(), in ReplacePayload() 354 assert(payload_len == 2 * *frame_size_samples); in ReplacePayload() 379 return payload_len; in ReplacePayload() 549 size_t payload_len = packet->payload_length_bytes(); in main() local 551 payload_len = ReplacePayload(replacement_audio_file.get(), in main() 561 rtp_header, rtc::ArrayView<const uint8_t>(payload_ptr, payload_len), in main()
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_record.c | 151 size_t buf_size, const u8 *payload, size_t payload_len, in tlsv1_record_send() argument 171 WPA_PUT_BE16(length, payload_len); in tlsv1_record_send() 196 if (pos + payload_len > buf + buf_size) in tlsv1_record_send() 198 os_memmove(pos, payload, payload_len); in tlsv1_record_send() 199 pos += payload_len; in tlsv1_record_send() 217 crypto_hash_update(hmac, payload, payload_len); in tlsv1_record_send()
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_message_response.py | 117 payload_len = primary_fragment.get_payload_len() 120 (payload_len != len(primary_fragment.payload_buffer))): 126 num_fragments, payload_len)
|
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 83 uint32_t key, int payload_len) in __print_timestamp() argument 90 key, payload_len); in __print_timestamp() 121 int tskey, int payload_len) in print_timestamp() argument 139 __print_timestamp(tsname, &tss->ts[0], tskey, payload_len); in print_timestamp() 181 static void __recv_errmsg_cmsg(struct msghdr *msg, int payload_len) in __recv_errmsg_cmsg() argument 222 payload_len); in __recv_errmsg_cmsg()
|
/external/libchrome/base/posix/ |
D | unix_domain_socket.cc | 171 const unsigned payload_len = cmsg->cmsg_len - CMSG_LEN(0); in RecvMsgWithFlags() local 173 DCHECK_EQ(payload_len % sizeof(int), 0u); in RecvMsgWithFlags() 176 wire_fds_len = payload_len / sizeof(int); in RecvMsgWithFlags() 183 DCHECK_EQ(payload_len, sizeof(struct ucred)); in RecvMsgWithFlags()
|
/external/tcpdump/ |
D | print-ip6.c | 221 register u_int payload_len; in ip6_print() local 242 payload_len = EXTRACT_16BITS(&ip6->ip6_plen); in ip6_print() 243 len = payload_len + sizeof(struct ip6_hdr); in ip6_print() 269 payload_len)); in ip6_print()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 570 const u8 *payload, size_t payload_len) in eap_pwd_process_id_resp() argument 578 if (payload_len < sizeof(struct eap_pwd_id)) { in eap_pwd_process_id_resp() 597 data->id_peer = os_malloc(payload_len - sizeof(struct eap_pwd_id)); in eap_pwd_process_id_resp() 602 data->id_peer_len = payload_len - sizeof(struct eap_pwd_id); in eap_pwd_process_id_resp() 650 const u8 *payload, size_t payload_len) in eap_pwd_process_commit_resp() argument 662 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_process_commit_resp() 665 (unsigned int) payload_len, in eap_pwd_process_commit_resp() 745 const u8 *payload, size_t payload_len) in eap_pwd_process_confirm_resp() argument 756 if (payload_len != SHA256_MAC_LEN) { in eap_pwd_process_confirm_resp() 759 (unsigned int) payload_len, SHA256_MAC_LEN); in eap_pwd_process_confirm_resp()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | hs20_supplicant.h | 18 const u8 *payload, size_t payload_len, int inmem); 19 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
|
D | hs20_supplicant.c | 213 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len, in hs20_put_anqp_req() argument 228 wpabuf_put_data(buf, payload, payload_len); in hs20_put_anqp_req() 233 wpabuf_put_data(buf, payload, payload_len); in hs20_put_anqp_req() 250 size_t payload_len) in hs20_build_anqp_req() argument 254 buf = gas_anqp_build_initial_req(0, 100 + payload_len); in hs20_build_anqp_req() 258 hs20_put_anqp_req(stypes, payload, payload_len, buf); in hs20_build_anqp_req() 265 const u8 *payload, size_t payload_len, int inmem) in hs20_anqp_send_req() argument 288 buf = hs20_build_anqp_req(stypes, payload, payload_len); in hs20_anqp_send_req() 306 icon_entry->file_name = os_malloc(payload_len + 1); in hs20_anqp_send_req() 311 os_memcpy(icon_entry->file_name, payload, payload_len); in hs20_anqp_send_req() [all …]
|
/external/webrtc/webrtc/base/ |
D | ifaddrs-android.cc | 175 ssize_t payload_len = IFA_PAYLOAD(header); in getifaddrs() local 176 while (RTA_OK(rta, payload_len)) { in getifaddrs() 196 rta = RTA_NEXT(rta, payload_len); in getifaddrs()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/ |
D | audio_decoder_isac_t_impl.h | 77 size_t payload_len, in IncomingPacket() argument 81 int ret = T::UpdateBwEstimate(isac_state_, payload, payload_len, in IncomingPacket()
|