Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/clatd/
Dtranslate.c368 size_t payload_size, header_size; in tcp_packet() local
385 header_size = tcp->doff * 4; in tcp_packet()
386 payload = ((const uint8_t *)tcp) + header_size; in tcp_packet()
387 payload_size = len - header_size; in tcp_packet()
389 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
443 size_t header_size, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, in tcp_translate() argument
446 out[pos].iov_len = header_size; in tcp_translate()
448 if (header_size > MAX_TCP_HDR) { in tcp_translate()
451 logmsg(ANDROID_LOG_ERROR, "tcp_translate: header too long %d > %d, truncating", header_size, in tcp_translate()
453 header_size = MAX_TCP_HDR; in tcp_translate()
[all …]
Dtranslate.h85 size_t header_size, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload,
/packages/modules/Virtualization/pvmfw/src/
Dgpt.rs165 header_size: u32, field
188 && self.header_size() == size_of::<Self>().try_into().unwrap() in is_valid()
203 fn header_size(&self) -> u32 { in header_size() method
204 u32::from_le(self.header_size) in header_size()
/packages/modules/Virtualization/virtualizationservice/vfio_handler/src/
Daidl.rs141 header_size: U32<BigEndian>, field
306 || dt_table_header.header_size.get() as usize != size_of::<DtTableHeader>() in get_dt_table_header()
/packages/modules/Bluetooth/system/gd/packet/
Dpacket_view_unittest.cc607 size_t header_size = 2; in TEST() local
609 …View view_subset(std::make_shared<const vector<uint8_t>>(count_all), header_size, count_all.size()… in TEST()
610 View view_subset2(view_all, header_size, count_all.size() - tail_size); in TEST()
613 ASSERT_EQ(view_subset[i], count_all[header_size + i]); in TEST()