Searched refs:iphdr (Results 1 – 15 of 15) sorted by relevance
/aosp12/system/netd/bpf_progs/ |
H A D | clatd.c | 65 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; 99 struct iphdr ip = { 101 .ihl = sizeof(struct iphdr) / sizeof(__u32), // u4 103 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 160 if (data + l2_header_size + sizeof(struct iphdr) > data_end) return TC_ACT_SHOT; 169 *(struct iphdr*)(new_eth + 1) = ip; 172 *(struct iphdr*)data = ip; 203 const struct iphdr* const ip4 = data;
|
H A D | netd.c | 44 #define IP_PROTO_OFF offsetof(struct iphdr, protocol) 114 int ip_overhead = (is_ipv6 ? sizeof(struct ipv6hdr) : sizeof(struct iphdr)); \
|
/aosp12/packages/modules/Connectivity/Tethering/bpf_progs/ |
H A D | test.c | 38 struct iphdr *ip = data + hsize; 39 hsize += sizeof(struct iphdr);
|
H A D | offload.c | 43 #define IP4_HLEN sizeof(struct iphdr) 53 #define IP4_OFFSET(field) offsetof(struct iphdr, field) 374 struct iphdr* ip = is_ethernet ? (void*)(eth + 1) : data; 525 const int tcp_overhead = sizeof(struct iphdr) + sizeof(struct tcphdr) + 12;
|
/aosp12/packages/modules/DnsResolver/tests/ |
H A D | tun_forwarder.cpp | 47 static constexpr ssize_t IP4_HDRLEN = sizeof(struct iphdr); 245 const iphdr* const ipHeader = reinterpret_cast<iphdr*>(ipv4Packet.base()); in validateIpv4Packet() 327 iphdr* ipHeader = reinterpret_cast<iphdr*>(ipv4Packet.base()); in translateIpv4Packet() 343 ipHeader->check = ip_checksum(ipHeader, sizeof(struct iphdr)); in translateIpv4Packet()
|
/aosp12/system/core/libnetutils/ |
H A D | packet.c | 89 struct iphdr ip; in send_packet() 158 struct iphdr ip; in receive_packet() 177 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) { in receive_packet() 225 ((int)(nread - sizeof(struct iphdr) - sizeof(struct udphdr)) < dhcp_size) || in receive_packet()
|
H A D | checksum.c | 111 uint32_t ipv4_pseudo_header_checksum(const struct iphdr* ip, uint16_t len) { in ipv4_pseudo_header_checksum()
|
/aosp12/system/core/libnetutils/include/netutils/ |
H A D | checksum.h | 30 uint32_t ipv4_pseudo_header_checksum(const struct iphdr* ip, uint16_t len);
|
/aosp12/system/netd/server/ |
H A D | WakeupController.cpp | 81 struct iphdr header; in extractIpHeader() 82 if (extract(payload, header) < sizeof(struct iphdr)) { in extractIpHeader()
|
H A D | WakeupControllerTest.cpp | 166 struct iphdr ipHeader; in TEST_F()
|
/aosp12/packages/modules/NetworkStack/jni/ |
H A D | network_stack_utils_jni.cpp | 45 static const uint32_t kIPv4Protocol = kEtherHeaderLen + offsetof(iphdr, protocol); 46 static const uint32_t kIPv4FlagsOffset = kEtherHeaderLen + offsetof(iphdr, frag_off);
|
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | nfnetlink_osf.h | 63 struct iphdr ip;
|
/aosp12/bionic/libc/kernel/uapi/linux/ |
H A D | ip.h | 74 struct iphdr { struct
|
H A D | if_tunnel.h | 65 struct iphdr iph;
|
/aosp12/bionic/libc/include/netinet/ |
H A D | ip.h | 219 struct iphdr { struct
|