Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 25 of 54) sorted by relevance

123

/external/tcpdump/
Dprint-ip6.c51 nextproto6_cksum(const struct ip6_hdr *ip6, const u_int8_t *data, in nextproto6_cksum() argument
65 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr)); in nextproto6_cksum()
66 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6->ip6_dst, sizeof (struct in6_addr)); in nextproto6_cksum()
84 register const struct ip6_hdr *ip6; in ip6_print() local
94 ip6 = (const struct ip6_hdr *)bp; in ip6_print()
96 TCHECK(*ip6); in ip6_print()
105 payload_len = EXTRACT_16BITS(&ip6->ip6_plen); in ip6_print()
112 flow = EXTRACT_32BITS(&ip6->ip6_flow); in ip6_print()
129 ip6->ip6_hlim, in ip6_print()
130 tok2str(ipproto_values,"unknown",ip6->ip6_nxt), in ip6_print()
[all …]
Dprint-tcp.c166 register const struct ip6_hdr *ip6; local
173 ip6 = (struct ip6_hdr *)bp2;
175 ip6 = NULL;
191 if (ip6) {
192 if (ip6->ip6_nxt == IPPROTO_TCP) {
194 ip6addr_string(&ip6->ip6_src),
196 ip6addr_string(&ip6->ip6_dst),
251 if (ip6) {
258 src = &ip6->ip6_src;
259 dst = &ip6->ip6_dst;
[all …]
Dprint-udp.c294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum() argument
297 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)up, len, in udp6_cksum()
306 const struct ip6_hdr *ip6; in udpipaddr_print() local
309 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
311 ip6 = NULL; in udpipaddr_print()
313 if (ip6) { in udpipaddr_print()
314 if (ip6->ip6_nxt == IPPROTO_UDP) { in udpipaddr_print()
317 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
318 ip6addr_string(&ip6->ip6_dst)); in udpipaddr_print()
321 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
[all …]
Dprint-frag6.c47 register const struct ip6_hdr *ip6; in frag6_print() local
50 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
Dprint-dccp.c81 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) in dccp6_cksum() argument
83 return nextproto6_cksum(ip6, (const u_int8_t *)(void *)dh, in dccp6_cksum()
173 const struct ip6_hdr *ip6; in dccp_print() local
185 ip6 = (const struct ip6_hdr *)data2; in dccp_print()
187 ip6 = NULL; in dccp_print()
206 if (ip6) { in dccp_print()
208 ip6addr_string(&ip6->ip6_src), sport, in dccp_print()
209 ip6addr_string(&ip6->ip6_dst), dport); in dccp_print()
243 sum = dccp6_cksum(ip6, dh, len); in dccp_print()
Dprint-sunrpc.c91 register const struct ip6_hdr *ip6; in sunrpcrequest_print() local
117 ip6 = (struct ip6_hdr *)bp2; in sunrpcrequest_print()
119 ip6addr_string(&ip6->ip6_src), srcid, in sunrpcrequest_print()
120 ip6addr_string(&ip6->ip6_dst), dstid, length); in sunrpcrequest_print()
Dprint-sctp.c92 const struct ip6_hdr *ip6; in sctp_print() local
111 ip6 = (const struct ip6_hdr *)bp2; in sctp_print()
113 ip6 = NULL; in sctp_print()
131 if (ip6) { in sctp_print()
133 ip6addr_string(&ip6->ip6_src), in sctp_print()
135 ip6addr_string(&ip6->ip6_dst), in sctp_print()
Dprint-pgm.c170 register const struct ip6_hdr *ip6; in pgm_print() local
181 ip6 = (struct ip6_hdr *)bp2; in pgm_print()
183 ip6 = NULL; in pgm_print()
193 if (ip6) { in pgm_print()
195 ip6addr_string(&ip6->ip6_src), in pgm_print()
196 ip6addr_string(&ip6->ip6_dst)); in pgm_print()
212 if (ip6) { in pgm_print()
213 if (ip6->ip6_nxt == IPPROTO_PGM) { in pgm_print()
215 ip6addr_string(&ip6->ip6_src), in pgm_print()
217 ip6addr_string(&ip6->ip6_dst), in pgm_print()
Dprint-nfs.c164 struct ip6_hdr *ip6; in print_nfsaddr() local
182 ip6 = (struct ip6_hdr *)bp; in print_nfsaddr()
183 strlcpy(srcaddr, ip6addr_string(&ip6->ip6_src), in print_nfsaddr()
185 strlcpy(dstaddr, ip6addr_string(&ip6->ip6_dst), in print_nfsaddr()
973 struct ip6_hdr *ip6 = NULL; in xid_map_enter() local
985 ip6 = (struct ip6_hdr *)bp; in xid_map_enter()
1004 else if (ip6) { in xid_map_enter()
1006 UNALIGNED_MEMCPY(&xmep->client, &ip6->ip6_src, sizeof(ip6->ip6_src)); in xid_map_enter()
1007 UNALIGNED_MEMCPY(&xmep->server, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in xid_map_enter()
1028 struct ip6_hdr *ip6 = (struct ip6_hdr *)bp; in xid_map_find() local
[all …]
Dprint-esp.c552 struct ip6_hdr *ip6 = NULL; in esp_print() local
604 ip6 = (struct ip6_hdr *)bp2; in esp_print()
606 if (!EXTRACT_16BITS(&ip6->ip6_plen)) in esp_print()
609 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen); in esp_print()
616 UNALIGNED_MEMCMP(&sin6->sin6_addr, &ip6->ip6_dst, in esp_print()
/external/android-clat/
Dclatd_test.cpp89 #define IPV6_PSEUDOHEADER(ip6, protocol, tlen) \ argument
90 ip6[8], ip6[9], ip6[10], ip6[11], /* Source address */ \
91 ip6[12], ip6[13], ip6[14], ip6[15], \
92 ip6[16], ip6[17], ip6[18], ip6[19], \
93 ip6[20], ip6[21], ip6[22], ip6[23], \
94 ip6[24], ip6[25], ip6[26], ip6[27], /* Destination address */ \
95 ip6[28], ip6[29], ip6[30], ip6[31], \
96 ip6[32], ip6[33], ip6[34], ip6[35], \
97 ip6[36], ip6[37], ip6[38], ip6[39], \
184 int is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) { in is_ipv6_fragment() argument
[all …]
Dipv6.c79 const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in ipv6_packet() local
93 if(IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ipv6_packet()
94 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
104 if (!(is_in_plat_subnet(&ip6->ip6_src) && in ipv6_packet()
105 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
106 !(is_in_plat_subnet(&ip6->ip6_dst) && in ipv6_packet()
107 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
108 ip6->ip6_nxt != IPPROTO_ICMPV6) { in ipv6_packet()
109 log_bad_address("ipv6_packet/wrong source address: %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
116 protocol = ip6->ip6_nxt; in ipv6_packet()
[all …]
Dtranslate.c157 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header() argument
159 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header()
161 ip6->ip6_vfc = 6 << 4; in fill_ip6_header()
162 ip6->ip6_plen = htons(payload_len); in fill_ip6_header()
163 ip6->ip6_nxt = protocol; in fill_ip6_header()
164 ip6->ip6_hlim = old_header->ttl; in fill_ip6_header()
166 ip6->ip6_src = ipv4_addr_to_ipv6_addr(old_header->saddr); in fill_ip6_header()
167 ip6->ip6_dst = ipv4_addr_to_ipv6_addr(old_header->daddr); in fill_ip6_header()
Dchecksum.c90 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr *ip6, uint16_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum() argument
96 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
97 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
Ddump.h31 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
33 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6,
Ddump.c157 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, in dump_udp6() argument
160 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
216 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, in dump_tcp6() argument
221 …temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPRO… in dump_tcp6()
Dclatd.c242 if (ipv6_prefix_equal(&interface_ip->ip6, &Global_Clatd_Config.ipv6_local_subnet)) { in update_clat_ipv6_address()
248 config_generate_local_ipv6_subnet(&interface_ip->ip6); in update_clat_ipv6_address()
249 inet_ntop(AF_INET6, &interface_ip->ip6, addrstr, sizeof(addrstr)); in update_clat_ipv6_address()
263 Global_Clatd_Config.ipv6_local_subnet = interface_ip->ip6; in update_clat_ipv6_address()
Dgetaddr.h22 struct in6_addr ip6; member
Dchecksum.h29 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr *ip6, uint16_t len, uint8_t protocol);
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.conf6 domain 8.e.f.ip6.int
7 domain 9.e.f.ip6.int
8 domain a.e.f.ip6.int
9 domain b.e.f.ip6.int
10 domain 8.e.f.ip6.arpa
11 domain 9.e.f.ip6.arpa
12 domain a.e.f.ip6.arpa
13 domain b.e.f.ip6.arpa
/external/iptables/extensions/
Dlibip6t_NETMAP.c45 range->min_addr.ip6[i] = cb->val.haddr.ip6[i] & in NETMAP_parse()
46 cb->val.hmask.ip6[i]; in NETMAP_parse()
47 range->max_addr.ip6[i] = range->min_addr.ip6[i] | in NETMAP_parse()
48 ~cb->val.hmask.ip6[i]; in NETMAP_parse()
63 a.s6_addr32[i] = ~(r->min_addr.ip6[i] ^ r->max_addr.ip6[i]); in NETMAP_print()
Dlibxt_ipvs.c143 if (!numeric && addr->ip6[0] == 0 && addr->ip6[1] == 0 && in ipvs_mt_dump_addr()
144 addr->ip6[2] == 0 && addr->ip6[3] == 0) { in ipvs_mt_dump_addr()
/external/guava/guava/src/com/google/common/net/
DInetAddresses.java891 Inet6Address ip6 = (Inet6Address) ip; in getCoercedIPv4Address() local
893 if (hasEmbeddedIPv4ClientAddress(ip6)) { in getCoercedIPv4Address()
894 addressAsLong = getEmbeddedIPv4ClientAddress(ip6).hashCode(); in getCoercedIPv4Address()
898 addressAsLong = ByteBuffer.wrap(ip6.getAddress(), 0, 8).getLong(); in getCoercedIPv4Address()
/external/iproute2/include/linux/
Dnetfilter.h64 __be32 ip6[4]; member
/external/iptables/include/linux/
Dnetfilter.h64 __be32 ip6[4]; member

123