Searched refs:ip6 (Results 1 – 6 of 6) sorted by relevance
/system/netd/bpf_progs/ |
D | clatd.c | 47 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64() local 53 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in nat64() 59 if (ip6->version != 6) return TC_ACT_OK; in nat64() 62 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64() 64 switch (ip6->nexthdr) { in nat64() 79 ip6->saddr.in6_u.u6_addr32[0], in nat64() 80 ip6->saddr.in6_u.u6_addr32[1], in nat64() 81 ip6->saddr.in6_u.u6_addr32[2], in nat64() 83 .local6 = ip6->daddr, in nat64() 99 .tos = (ip6->priority << 4) + (ip6->flow_lbl[0] >> 4), // u8 in nat64() [all …]
|
D | offload.c | 42 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data; in do_forward() local 48 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in do_forward() 54 if (ip6->version != 6) return TC_ACT_OK; in do_forward() 58 if (ip6->hop_limit <= 1) return TC_ACT_OK; in do_forward() 61 __be32 src32 = ip6->saddr.s6_addr32[0]; in do_forward() 68 .neigh6 = ip6->daddr, in do_forward() 130 ip6 = (void*)(eth + 1); in do_forward() 133 if (data + l2_header_size + sizeof(*ip6) > data_end) { in do_forward() 142 uint8_t old_hl = ip6->hop_limit; in do_forward() 143 --ip6->hop_limit; in do_forward() [all …]
|
/system/core/libnetutils/ |
D | checksum.c | 92 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum() argument 98 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum() 99 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
|
/system/core/rootdir/etc/ |
D | hosts | 2 ::1 ip6-localhost
|
/system/netd/tests/ |
D | tun_interface.cpp | 150 in6_addr ip6; in addAddress() member 154 inet_pton(AF_INET6, addr.c_str(), &ip.ip6); in addAddress() 155 addrlen = sizeof(ip.ip6); in addAddress()
|
/system/core/libnetutils/include/netutils/ |
D | checksum.h | 29 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol);
|