/external/tcpdump/ |
D | print-ip6.c | 48 const struct ip6_hdr *ip6) in ip6_finddst() argument 59 cp = (const u_char *)ip6; in ip6_finddst() 61 nh = ip6->ip6_nxt; in ip6_finddst() 62 dst_addr = &ip6->ip6_dst; in ip6_finddst() 164 const struct ip6_hdr *ip6, const uint8_t *data, in nextproto6_cksum() argument 178 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr)); in nextproto6_cksum() 179 switch (ip6->ip6_nxt) { in nextproto6_cksum() 192 ip6_finddst(ndo, &ph.ph_dst, ip6); in nextproto6_cksum() 196 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6->ip6_dst, sizeof (struct in6_addr)); in nextproto6_cksum() 216 register const struct ip6_hdr *ip6; in ip6_print() local [all …]
|
D | print-tcp.c | 151 register const struct ip6_hdr *ip6, in tcp6_cksum() argument 155 return nextproto6_cksum(ndo, ip6, (const uint8_t *)tp, len, len, in tcp6_cksum() 174 register const struct ip6_hdr *ip6; in tcp_print() local 179 ip6 = (const struct ip6_hdr *)bp2; in tcp_print() 181 ip6 = NULL; in tcp_print() 193 if (ip6) { in tcp_print() 194 if (ip6->ip6_nxt == IPPROTO_TCP) { in tcp_print() 196 ip6addr_string(ndo, &ip6->ip6_src), in tcp_print() 198 ip6addr_string(ndo, &ip6->ip6_dst), in tcp_print() 252 if (ip6) { in tcp_print() [all …]
|
D | print-frag6.c | 39 register const struct ip6_hdr *ip6; in frag6_print() local 42 ip6 = (const struct ip6_hdr *)bp2; in frag6_print() 50 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print() 55 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
|
D | print-udp.c | 309 static int udp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in udp6_cksum() argument 312 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)up, len, len, in udp6_cksum() 319 const struct ip6_hdr *ip6; in udpipaddr_print() local 322 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print() 324 ip6 = NULL; in udpipaddr_print() 326 if (ip6) { in udpipaddr_print() 327 if (ip6->ip6_nxt == IPPROTO_UDP) { in udpipaddr_print() 330 ip6addr_string(ndo, &ip6->ip6_src), in udpipaddr_print() 331 ip6addr_string(ndo, &ip6->ip6_dst))); in udpipaddr_print() 334 ip6addr_string(ndo, &ip6->ip6_src), in udpipaddr_print() [all …]
|
D | print-dccp.c | 207 static int dccp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in dccp6_cksum() argument 210 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)dh, len, in dccp6_cksum() 273 const struct ip6_hdr *ip6; in dccp_print() local 284 ip6 = (const struct ip6_hdr *)data2; in dccp_print() 286 ip6 = NULL; in dccp_print() 313 if (ip6) { in dccp_print() 315 ip6addr_string(ndo, &ip6->ip6_src), sport, in dccp_print() 316 ip6addr_string(ndo, &ip6->ip6_dst), dport)); in dccp_print() 348 sum = dccp6_cksum(ndo, ip6, dh, len); in dccp_print()
|
D | print-sunrpc.c | 173 register const struct ip6_hdr *ip6; in sunrpcrequest_print() local 197 ip6 = (const struct ip6_hdr *)bp2; in sunrpcrequest_print() 199 ip6addr_string(ndo, &ip6->ip6_src), srcid, in sunrpcrequest_print() 200 ip6addr_string(ndo, &ip6->ip6_dst), dstid, length)); in sunrpcrequest_print()
|
D | print-pgm.c | 156 register const struct ip6_hdr *ip6; in pgm_print() local 163 ip6 = (const struct ip6_hdr *)bp2; in pgm_print() 165 ip6 = NULL; in pgm_print() 168 if (ip6) { in pgm_print() 170 ip6addr_string(ndo, &ip6->ip6_src), in pgm_print() 171 ip6addr_string(ndo, &ip6->ip6_dst))); in pgm_print() 183 if (ip6) { in pgm_print() 184 if (ip6->ip6_nxt == IPPROTO_PGM) { in pgm_print() 186 ip6addr_string(ndo, &ip6->ip6_src), in pgm_print() 188 ip6addr_string(ndo, &ip6->ip6_dst), in pgm_print()
|
D | print-nfs.c | 206 const struct ip6_hdr *ip6; in print_nfsaddr() local 217 ip6 = (const struct ip6_hdr *)bp; in print_nfsaddr() 218 strlcpy(srcaddr, ip6addr_string(ndo, &ip6->ip6_src), in print_nfsaddr() 220 strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst), in print_nfsaddr() 870 const struct ip6_hdr *ip6 = NULL; in xid_map_enter() local 880 ip6 = (const struct ip6_hdr *)bp; in xid_map_enter() 897 else if (ip6) { in xid_map_enter() 899 UNALIGNED_MEMCPY(&xmep->client, &ip6->ip6_src, sizeof(ip6->ip6_src)); in xid_map_enter() 900 UNALIGNED_MEMCPY(&xmep->server, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in xid_map_enter() 919 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; in xid_map_find() local [all …]
|
/external/android-clat/ |
D | clatd_test.cpp | 97 #define IPV6_PSEUDOHEADER(ip6, protocol, tlen) \ argument 98 ip6[8], ip6[9], ip6[10], ip6[11], /* Source address */ \ 99 ip6[12], ip6[13], ip6[14], ip6[15], \ 100 ip6[16], ip6[17], ip6[18], ip6[19], \ 101 ip6[20], ip6[21], ip6[22], ip6[23], \ 102 ip6[24], ip6[25], ip6[26], ip6[27], /* Destination address */ \ 103 ip6[28], ip6[29], ip6[30], ip6[31], \ 104 ip6[32], ip6[33], ip6[34], ip6[35], \ 105 ip6[36], ip6[37], ip6[38], ip6[39], \ 193 int is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) { in is_ipv6_fragment() argument [all …]
|
D | ipv6.c | 80 const struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in ipv6_packet() local 94 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ipv6_packet() 95 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet() 105 if (!(is_in_plat_subnet(&ip6->ip6_src) && in ipv6_packet() 106 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet() 107 !(is_in_plat_subnet(&ip6->ip6_dst) && in ipv6_packet() 108 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet() 109 ip6->ip6_nxt != IPPROTO_ICMPV6) { in ipv6_packet() 110 log_bad_address("ipv6_packet/wrong source address: %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet() 117 protocol = ip6->ip6_nxt; in ipv6_packet() [all …]
|
D | translate.c | 159 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header() argument 161 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header() 163 ip6->ip6_vfc = 6 << 4; in fill_ip6_header() 164 ip6->ip6_plen = htons(payload_len); in fill_ip6_header() 165 ip6->ip6_nxt = protocol; in fill_ip6_header() 166 ip6->ip6_hlim = old_header->ttl; in fill_ip6_header() 168 ip6->ip6_src = ipv4_addr_to_ipv6_addr(old_header->saddr); in fill_ip6_header() 169 ip6->ip6_dst = ipv4_addr_to_ipv6_addr(old_header->daddr); in fill_ip6_header()
|
D | dump.h | 38 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, 40 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload,
|
/external/mdnsresponder/mDNSPosix/ |
D | nss_mdns.conf | 6 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/ltp/testcases/network/sctp/ |
D | sctp_big_chunk.c | 59 struct ip6_hdr ip6; in setup_client() local 60 const size_t ip6_hdr_len = sizeof(ip6); in setup_client() 65 memset(&ip6, 0, sizeof(ip6)); in setup_client() 66 ip6.ip6_flow = htonl(6 << 28 | 2 << 20); in setup_client() 67 ip6.ip6_hops = 64; in setup_client() 68 ip6.ip6_nxt = IPPROTO_SCTP; in setup_client() 69 ip6.ip6_src.s6_addr[15] = 1; in setup_client() 70 ip6.ip6_dst.s6_addr[15] = 1; in setup_client() 129 ip6.ip6_plen = htons(pkt_len - ip6_hdr_len); in setup_client() 130 memcpy(packet, &ip6, ip6_hdr_len); in setup_client()
|
/external/iptables/extensions/ |
D | libip6t_NETMAP.c | 45 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()
|
D | libxt_ipvs.c | 143 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/libnl/etc/ |
D | pktloc | 29 ip6.version u8 net+0 0xF0 4 30 ip6.tc u16 net+0 0xFF0 4 31 ip6.flowlabel u32 net+0 0xFFFFF 32 ip6.length u16 net+4 33 ip6.nexthdr u8 net+6 34 ip6.hoplimit u8 net+7 35 ip6.src 16 net+8 36 ip6.dst 16 net+24
|
/external/webrtc/webrtc/base/ |
D | ipaddress.h | 61 explicit IPAddress(const in6_addr& ip6) : family_(AF_INET6) { in IPAddress() argument 62 u_.ip6 = ip6; in IPAddress() 119 in6_addr ip6; member 135 InterfaceAddress(const in6_addr& ip6, int ipv6_flags) in InterfaceAddress() argument 136 : IPAddress(ip6), ipv6_flags_(ipv6_flags) {} in InterfaceAddress()
|
D | ipaddress.cc | 80 return memcmp(&u_.ip6, &other.u_.ip6, sizeof(u_.ip6)) == 0; in operator ==() 111 return memcmp(&u_.ip6.s6_addr, &other.u_.ip6.s6_addr, 16) < 0; in operator <() 124 return u_.ip6; in ipv6_address() 138 src = &u_.ip6; in ToString() 185 in_addr addr = ExtractMappedAddress(u_.ip6); in Normalized()
|
/external/curl/tests/data/ |
D | test241 | 33 HTTP-IPv6 GET (using ip6-localhost) 36 -g "http://ip6-localhost:%HTTP6PORT/241" 39 ./server/resolve --ipv6 ip6-localhost 51 Host: ip6-localhost:%HTTP6PORT
|
D | test1083 | 36 HTTP-IPv6 GET with ip6-localhost --interface 39 -g "http://%HOST6IP:%HTTP6PORT/1083" --interface ip6-localhost 42 …es default test client host address';} else {exec './server/resolve --ipv6 ip6-localhost'; print '…
|
/external/ltp/testcases/lib/ |
D | tst_net_vars.c | 138 const struct in6_addr *mask, const struct in6_addr *ip6) in is_in_subnet_ipv6() argument 143 if (((((int *) ip6)[i] & ((int *) mask)[i])) != in is_in_subnet_ipv6() 272 static char *get_ipv6_net32_unused(const struct in6_addr *ip6, in get_ipv6_net32_unused() argument 298 if (!is_in_subnet_ipv6(ip6, &mask, &network)) in get_ipv6_net32_unused() 305 (rand() % 128) + (ip6->s6_addr[1] < 128 ? 128 : 0), in get_ipv6_net32_unused() 311 if (!is_in_subnet_ipv6(ip6, &mask, &network)) in get_ipv6_net32_unused() 316 256 * (rand() % 128) + (256 * ip6->s6_addr[0] < 128 ? in get_ipv6_net32_unused() 322 if (!is_in_subnet_ipv6(ip6, &mask, &network)) in get_ipv6_net32_unused() 592 struct in6_addr ip6; in main() local 609 get_in6_addr(lip_str, &ip6); in main() [all …]
|
D | tst_net_ip_prefix.c | 65 struct in6_addr ip6; in main() local 88 get_in6_addr(ip_str, &ip6); in main()
|
/external/scapy/scapy/arch/ |
D | __init__.py | 94 ip6= get_if_addr6(iff) 95 if ip6 is not None: 96 return inet_pton(socket.AF_INET6, ip6)
|
/external/tcpdump/tests/ |
D | cve2015-0261-ipv6.out | 1 IP6 truncated-ip6 - 26325 bytes missing!(class 0x76, flowlabel 0x76767, hlim 103, next-header Mobil… 2 IP6 truncated-ip6 - 26325 bytes missing!(class 0x76, flowlabel 0x76767, hlim 103, next-header Mobil…
|