Home
last modified time | relevance | path

Searched refs:payload_size (Results 1 – 25 of 87) sorted by relevance

1234

/external/android-clat/
Ddump.c134 const uint8_t *payload, size_t payload_size) { in dump_udp_generic() argument
138 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_udp_generic()
150 const uint8_t *payload, size_t payload_size) { in dump_udp() argument
152 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp()
153 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
158 const uint8_t *payload, size_t payload_size) { in dump_udp6() argument
160 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
161 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp6()
165 …ptions, size_t options_size, uint32_t temp_checksum, const uint8_t *payload, size_t payload_size) { in dump_tcp_generic() argument
172 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_tcp_generic()
[all …]
Dtranslate.c228 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument
246 clat_packet_len = ipv4_packet(out, pos + 1, payload, payload_size); in icmp_to_icmp6()
260 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6()
282 const uint8_t *payload, size_t payload_size) { in icmp6_to_icmp() argument
300 clat_packet_len = ipv6_packet(out, pos + 1, payload, payload_size); in icmp6_to_icmp()
306 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp()
346 size_t payload_size; in udp_packet() local
354 payload_size = len - sizeof(struct udphdr); in udp_packet()
356 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size); in udp_packet()
370 size_t payload_size, header_size; in tcp_packet() local
[all …]
Ddump.h24 const uint8_t *payload, size_t payload_size);
26 const uint8_t *payload, size_t payload_size,
32 const uint8_t *payload, size_t payload_size);
34 const uint8_t *payload, size_t payload_size,
Dtranslate.h70 uint32_t checksum, const uint8_t *payload, size_t payload_size);
72 const uint8_t *payload, size_t payload_size);
85 const uint8_t *payload, size_t payload_size);
88 const uint8_t *payload, size_t payload_size);
Dipv4.c37 size_t payload_size; in icmp_packet() local
45 payload_size = len - sizeof(struct icmphdr); in icmp_packet()
47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size); in icmp_packet()
/external/webrtc/webrtc/test/fuzzers/
Dproducer_fec_fuzzer.cc31 size_t payload_size = data[i++] % 10; in FuzzOneInput() local
32 if (i + payload_size + rtp_header_length + 2 > size) in FuzzOneInput()
35 new uint8_t[payload_size + rtp_header_length]); in FuzzOneInput()
36 memcpy(packet.get(), &data[i], payload_size + rtp_header_length); in FuzzOneInput()
38 i += payload_size + rtp_header_length; in FuzzOneInput()
42 packet.get(), payload_size, rtp_header_length, kRedPayloadType)); in FuzzOneInput()
45 producer.AddRtpPacketAndGenerateFec(packet.get(), payload_size, in FuzzOneInput()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_framework.cc65 void RateCounter::UpdateRates(int64_t send_time_us, uint32_t payload_size) { in UpdateRates() argument
67 recently_received_bytes_ += payload_size; in UpdateRates()
69 window_.push_back(std::make_pair(send_time_us, payload_size)); in UpdateRates()
104 Packet::Packet(int flow_id, int64_t send_time_us, size_t payload_size) in Packet() argument
109 payload_size_(payload_size), in Packet()
131 size_t payload_size, in MediaPacket() argument
133 : Packet(flow_id, send_time_us, payload_size) { in MediaPacket()
140 size_t payload_size, in MediaPacket() argument
142 : Packet(flow_id, send_time_us, payload_size), header_(header) { in MediaPacket()
296 static_cast<int>(packet->payload_size())); in RunFor()
[all …]
Dbwe.h54 size_t payload_size) in PacketIdentifierNode()
58 payload_size(payload_size) {} in PacketIdentifierNode()
63 size_t payload_size; member
83 size_t payload_size);
Dbwe.cc53 media_packet.payload_size()); in ReceivePacket()
56 static_cast<uint32_t>(media_packet.payload_size())); in ReceivePacket()
222 size_t payload_size) { in Insert() argument
238 arrival_time_ms, payload_size)); in Insert()
244 packet_identifier.arrival_time_ms, packet_identifier.payload_size); in Insert()
Dpacket.h31 Packet(int flow_id, int64_t send_time_us, size_t payload_size);
40 virtual size_t payload_size() const { return payload_size_; } in payload_size() function
69 size_t payload_size,
73 size_t payload_size,
Dpacket_receiver.cc99 media_packet->payload_size()); in RunFor()
121 size_t payload_size) { in UpdateMetrics() argument
122 metric_recorder_->UpdateThroughput(bwe_receiver_->RecentKbps(), payload_size); in UpdateMetrics()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_abs_send_time.h31 Probe(int64_t send_time_ms, int64_t recv_time_ms, size_t payload_size) in Probe()
34 payload_size(payload_size) {} in Probe()
37 size_t payload_size; member
76 size_t payload_size,
104 size_t payload_size,
108 bool IsProbe(int64_t send_time_ms, int payload_size) const
Dsend_time_history_unittest.cc55 size_t payload_size, in PacketInfo() argument
61 payload_size, in PacketInfo()
67 payload_size == other.payload_size && was_paced == other.was_paced; in operator ==()
102 EXPECT_EQ(kPayloadSize, info.payload_size); in TEST_F()
123 sent_packets[i].payload_size, in TEST_F()
213 AddPacketWithSendTime(packets[0].sequence_number, packets[0].payload_size, in TEST_F()
215 AddPacketWithSendTime(packets[1].sequence_number, packets[1].payload_size, in TEST_F()
221 AddPacketWithSendTime(packets[2].sequence_number, packets[2].payload_size, in TEST_F()
Dremote_bitrate_estimator_abs_send_time.cc143 current.mean_size += it->payload_size; in ComputeClusters()
235 packet_info.payload_size, 0, packet_info.was_paced); in IncomingPacketFeedbackVector()
240 size_t payload_size, in IncomingPacket() argument
249 payload_size, header.ssrc, was_paced); in IncomingPacket()
255 size_t payload_size, in IncomingPacketInfo() argument
269 incoming_bitrate_.Update(payload_size, now_ms); in IncomingPacketInfo()
281 was_paced = was_paced && payload_size > PacedSender::kMinProbePacketSize; in IncomingPacketInfo()
298 probes_.push_back(Probe(send_time_ms, arrival_time_ms, payload_size)); in IncomingPacketInfo()
307 if (inter_arrival_->ComputeDeltas(timestamp, arrival_time_ms, payload_size, in IncomingPacketInfo()
/external/libchrome/base/
Dpickle.cc26 end_index_(pickle.payload_size()) { in PickleIterator()
221 header_->payload_size = 0; in Pickle()
232 header_->payload_size = 0; in Pickle()
241 header_size_ = data_len - header_->payload_size; in Pickle()
259 Resize(other.header_->payload_size); in Pickle()
260 memcpy(header_, other.header_, header_size_ + other.header_->payload_size); in Pickle()
282 Resize(other.header_->payload_size); in operator =()
284 other.header_size_ + other.header_->payload_size); in operator =()
377 if (hdr->payload_size > std::numeric_limits<size_t>::max() - header_size) { in PeekNext()
382 *pickle_size = header_size + hdr->payload_size; in PeekNext()
[all …]
Dpickle_unittest.cc294 if (sizeof(size_t) > sizeof(header.payload_size)) in TEST()
302 header.payload_size = static_cast<uint32_t>( in TEST()
313 header.payload_size = in TEST()
360 if (sizeof(size_t) > sizeof(header->payload_size) || in TEST()
361 sizeof(uintptr_t) > sizeof(header->payload_size)) in TEST()
364 header->payload_size = -(reinterpret_cast<uintptr_t>(start) + header_size2); in TEST()
367 header->payload_size = -header_size2; in TEST()
370 header->payload_size = 0; in TEST()
414 EXPECT_EQ(pickle.payload_size(), payload_size_after_header); in TEST()
420 EXPECT_EQ(cur_payload, pickle.payload_size()); in TEST()
[all …]
Dpickle.h154 size_t size() const { return header_size_ + header_->payload_size; } in size()
216 uint32_t payload_size; // Specifies the size of the payload. member
234 size_t payload_size() const { in payload_size() function
235 return header_ ? header_->payload_size : 0; in payload_size()
246 return header_ ? payload() + payload_size() : NULL; in end_of_payload()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp8_unittest.cc108 helper_->payload_size(), in TEST_F()
138 packetizer.SetPayloadData(helper_->payload_data(), helper_->payload_size(), in TEST_F()
162 helper_->payload_size(), in TEST_F()
189 helper_->payload_size(), in TEST_F()
216 helper_->payload_size(), in TEST_F()
243 helper_->payload_size(), in TEST_F()
271 helper_->payload_data(), helper_->payload_size(), NULL); in TEST_F()
300 helper_->payload_data(), helper_->payload_size(), NULL); in TEST_F()
332 helper_->payload_size(), in TEST_F()
336 const size_t kExpectedSizes[1] = {helper_->payload_size() + 4}; in TEST_F()
[all …]
/external/libvpx/libvpx/third_party/libwebm/
Dmkvmuxer.cpp247 const uint64 payload_size = in Write() local
250 if (!WriteEbmlMasterElement(writer, kMkvCuePoint, payload_size)) in Write()
274 if (stop_position - payload_position != static_cast<int64>(payload_size)) in Write()
287 const uint64 payload_size = in PayloadSize() local
290 return payload_size; in PayloadSize()
294 const uint64 payload_size = PayloadSize(); in Size() local
295 return EbmlMasterElementSize(kMkvCuePoint, payload_size) + payload_size; in Size()
678 const uint64 payload_size = PayloadSize(); in Write() local
680 if (!WriteEbmlMasterElement(writer, kMkvTrackEntry, payload_size)) in Write()
1296 uint64 payload_size = EbmlElementSize(kMkvChapterStringUID, id_) + in WriteAtom() local
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/include/
Drtp_rtcp_defines.h266 size_t payload_size, in PacketInfo()
272 payload_size, in PacketInfo()
279 size_t payload_size, in PacketInfo()
285 payload_size(payload_size), in PacketInfo()
300 size_t payload_size; member
/external/webrtc/webrtc/modules/audio_coding/test/
DTestAllCodecs.cc62 size_t payload_size, in SendData() argument
84 memcpy(payload_data_, payload_data, payload_size); in SendData()
86 status = receiver_acm_->IncomingPacket(payload_data_, payload_size, rtp_info); in SendData()
88 payload_size_ = payload_size; in SendData()
91 total_bytes_ += payload_size; in SendData()
95 size_t TestPack::payload_size() { in payload_size() function in webrtc::TestPack
437 receive_size = channel->payload_size(); in Run()
/external/webrtc/webrtc/modules/video_coding/
Dvideo_sender_unittest.cc129 FrameData(size_t payload_size, const RTPVideoHeader& rtp_video_header) in FrameData()
130 : payload_size(payload_size), rtp_video_header(rtp_video_header) {} in FrameData()
132 size_t payload_size; member
155 size_t payload_size = 0; in SumPayloadBytesWithinTemporalLayer() local
161 payload_size += frame_data_[i].payload_size; in SumPayloadBytesWithinTemporalLayer()
163 return payload_size; in SumPayloadBytesWithinTemporalLayer()
/external/webrtc/webrtc/modules/video_coding/test/
Dreceiver_tests.h32 const size_t payload_size, in OnReceivedPayloadData() argument
34 return vcm_->IncomingPacket(payload_data, payload_size, *rtp_header); in OnReceivedPayloadData()
/external/webrtc/webrtc/modules/rtp_rtcp/test/testAPI/
Dtest_api.cc71 const size_t payload_size, in OnReceivedPayloadData() argument
73 EXPECT_LE(payload_size, sizeof(payload_data_)); in OnReceivedPayloadData()
74 memcpy(payload_data_, payload_data, payload_size); in OnReceivedPayloadData()
76 payload_size_ = payload_size; in OnReceivedPayloadData()
Dtest_api.h59 const size_t payload_size,
63 size_t payload_size() const { return payload_size_; } in payload_size() function

1234