Searched defs:ip6 (Results 1 - 25 of 35) sorted by relevance

12

/external/android-clat/
H A Dgetaddr.h22 struct in6_addr ip6; member in union:anyip
H A Dchecksum.c23 #include <netinet/ip6.h>
87 * ip6 - the ipv6 header
89 * protocol - the transport layer protocol, can be different from ip6->ip6_nxt for fragments
91 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr *ip6, uint16_t len, uint8_t protocol) { argument
97 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr));
98 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr));
H A Dipv6.c79 const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; local
89 logmsg_dbg(ANDROID_LOG_ERROR, "ipv6_packet/too short for an ip6 header: %d", len);
93 if(IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
94 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst);
104 if (!(is_in_plat_subnet(&ip6->ip6_src) &&
105 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) &&
106 !(is_in_plat_subnet(&ip6->ip6_dst) &&
107 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) &&
108 ip6
[all...]
H A Ddump.c28 #include <netinet/ip6.h>
72 /* print ip6 header */
157 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, argument
160 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP);
216 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, argument
221 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPROTO_TCP);
H A Dtranslate.c152 * ip6 - (ipv6) target packet header, source: local subnet prefix, dest: nat64 prefix
157 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, argument
159 memset(ip6, 0, sizeof(struct ip6_hdr));
161 ip6->ip6_vfc = 6 << 4;
162 ip6->ip6_plen = htons(payload_len);
163 ip6->ip6_nxt = protocol;
164 ip6->ip6_hlim = old_header->ttl;
166 ip6->ip6_src = ipv4_addr_to_ipv6_addr(old_header->saddr);
167 ip6->ip6_dst = ipv4_addr_to_ipv6_addr(old_header->daddr);
H A Dclatd_test.cpp89 #define IPV6_PSEUDOHEADER(ip6, protocol, tlen) \
90 ip6[8], ip6[9], ip6[10], ip6[11], /* Source address */ \
91 ip6[12], ip6[13], ip6[14], ip6[15], \
92 ip6[1
184 is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) argument
225 struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; local
289 struct ip6_hdr *ip6 = NULL; local
408 struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; local
523 struct ip6_hdr *ip6; local
822 uint8_t ip6[] = { IPV6_UDP_HEADER }; local
935 struct ip6_hdr *ip6 = (struct ip6_hdr *) udp_ipv6; local
[all...]
/external/tcpdump/
H A Dprint-frag6.c37 #include "ip6.h"
47 register const struct ip6_hdr *ip6; local
50 ip6 = (const struct ip6_hdr *)bp2;
58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
H A Dprint-sunrpc.c64 #include "ip6.h"
91 register const struct ip6_hdr *ip6; local
117 ip6 = (struct ip6_hdr *)bp2;
119 ip6addr_string(&ip6->ip6_src), srcid,
120 ip6addr_string(&ip6->ip6_dst), dstid, length);
H A Dprint-ip6.c24 "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.52 2007-09-21 07:05:33 hannes Exp $";
44 #include "ip6.h"
51 nextproto6_cksum(const struct ip6_hdr *ip6, const u_int8_t *data, argument
65 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr));
66 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6->ip6_dst, sizeof (struct in6_addr));
84 register const struct ip6_hdr *ip6; local
94 ip6 = (const struct ip6_hdr *)bp;
96 TCHECK(*ip6);
98 (void)ND_PRINT((ndo, "truncated-ip6 %u", length));
105 payload_len = EXTRACT_16BITS(&ip6
[all...]
H A Dprint-sctp.c59 #include "ip6.h"
92 const struct ip6_hdr *ip6; local
111 ip6 = (const struct ip6_hdr *)bp2;
113 ip6 = NULL;
131 if (ip6) {
133 ip6addr_string(&ip6->ip6_src),
135 ip6addr_string(&ip6->ip6_dst),
H A Dprint-dccp.c31 #include "ip6.h"
81 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument
83 return nextproto6_cksum(ip6, (const u_int8_t *)(void *)dh,
173 const struct ip6_hdr *ip6; local
185 ip6 = (const struct ip6_hdr *)data2;
187 ip6 = NULL;
206 if (ip6) {
208 ip6addr_string(&ip6->ip6_src), sport,
209 ip6addr_string(&ip6->ip6_dst), dport);
243 sum = dccp6_cksum(ip6, d
[all...]
H A Dprint-esp.c56 #include "ip6.h"
552 struct ip6_hdr *ip6 = NULL; local
604 ip6 = (struct ip6_hdr *)bp2;
606 if (!EXTRACT_16BITS(&ip6->ip6_plen))
609 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen);
616 UNALIGNED_MEMCMP(&sin6->sin6_addr, &ip6->ip6_dst,
H A Dprint-tcp.c51 #include "ip6.h"
166 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
797 struct ip6_hdr *ip6; local
[all...]
H A Dprint-udp.c49 #include "ip6.h"
294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, argument
297 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)up, len,
306 const struct ip6_hdr *ip6; local
309 ip6 = (const struct ip6_hdr *)ip;
311 ip6 = NULL;
313 if (ip6) {
314 if (ip6->ip6_nxt == IPPROTO_UDP) {
317 ip6addr_string(&ip6->ip6_src),
318 ip6addr_string(&ip6
368 register const struct ip6_hdr *ip6; local
[all...]
H A Dprint-nfs.c46 #include "ip6.h"
164 struct ip6_hdr *ip6; local
182 ip6 = (struct ip6_hdr *)bp;
183 strlcpy(srcaddr, ip6addr_string(&ip6->ip6_src),
185 strlcpy(dstaddr, ip6addr_string(&ip6->ip6_dst),
973 struct ip6_hdr *ip6 = NULL; local
985 ip6 = (struct ip6_hdr *)bp;
1004 else if (ip6) {
1006 UNALIGNED_MEMCPY(&xmep->client, &ip6->ip6_src, sizeof(ip6
1028 struct ip6_hdr *ip6 = (struct ip6_hdr *)bp; local
[all...]
H A Dprint-pgm.c37 #include "ip6.h"
170 register const struct ip6_hdr *ip6; local
181 ip6 = (struct ip6_hdr *)bp2;
183 ip6 = NULL;
193 if (ip6) {
195 ip6addr_string(&ip6->ip6_src),
196 ip6addr_string(&ip6->ip6_dst));
212 if (ip6) {
213 if (ip6->ip6_nxt == IPPROTO_PGM) {
215 ip6addr_string(&ip6
[all...]
/external/chromium_org/third_party/webrtc/base/
H A Dipaddress.h61 explicit IPAddress(const in6_addr& ip6) : family_(AF_INET6) { argument
62 u_.ip6 = ip6;
118 in6_addr ip6; member in union:rtc::IPAddress::__anon15668
136 InterfaceAddress(const in6_addr& ip6, int ipv6_flags) argument
137 : IPAddress(ip6), ipv6_flags_(ipv6_flags) {}
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
H A Dp1-11.cpp29 IP<(float*)0> ip6; // expected-error{{null non-type template argument of type 'float *' does not match template parameter of type 'int *'}} variable
/external/iproute2/include/linux/
H A Dnetfilter.h64 __be32 ip6[4]; member in union:nf_inet_addr
/external/iptables/include/linux/
H A Dnetfilter.h64 __be32 ip6[4]; member in union:nf_inet_addr
/external/kernel-headers/original/uapi/linux/
H A Dnetfilter.h68 __be32 ip6[4]; member in union:nf_inet_addr
H A Dif_bridge.h184 struct in6_addr ip6; member in union:br_mdb_entry::__anon23045::__anon23046
/external/clang/test/SemaTemplate/
H A Dtypename-specifier.cpp50 N::X<N::C>::type *ip6 = &i; // expected-note{{in instantiation of template class 'N::X<N::C>' requested here}} variable
/external/chromium_org/net/quic/crypto/
H A Dquic_crypto_server_config_test.cc277 IPEndPoint ip6 = IPEndPoint(Loopback6(), 2); local
282 const string token6 = peer.NewSourceAddressToken(kPrimary, ip6, rand, now);
288 peer.ValidateSourceAddressToken(kPrimary, token4, ip6, now));
294 peer.ValidateSourceAddressToken(kPrimary, token4d, ip6, now));
296 kPrimary, token6, ip6, now));
302 kOverride, ip6, rand, now);
306 peer.ValidateSourceAddressToken(kOverride, override_token4, ip6,
309 kOverride, override_token6, ip6, now));
316 peer.ValidateSourceAddressToken(kOverride, token6, ip6, now));
321 peer.ValidateSourceAddressToken(kPrimary, override_token6, ip6,
[all...]
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/
H A Dsctp6_usrreq.c133 struct ip6_hdr *ip6; local
229 ip6 = mtod(m, struct ip6_hdr *);
244 src.sin6_addr = ip6->ip6_src;
259 dst.sin6_addr = ip6->ip6_dst;
281 length = ntohs(ip6->ip6_plen) + iphlen;
289 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
292 ecn_bits = ((ntohl(ip6->ip6_flow) >> 20) & 0x000000ff);

Completed in 551 milliseconds

12