/net/netfilter/ |
D | xt_connlimit.c | 82 for (i = 0; i < ARRAY_SIZE(addr->ip6); ++i) in connlimit_iphash6() 83 res.ip6[i] = addr->ip6[i] & mask->ip6[i]; in connlimit_iphash6() 85 return jhash2((u32 *)res.ip6, ARRAY_SIZE(res.ip6), in connlimit_iphash6() 110 for (i = 0; i < ARRAY_SIZE(addr->ip6); ++i) { in same_source_net() 111 lh.ip6[i] = addr->ip6[i] & mask->ip6[i]; in same_source_net() 112 rh.ip6[i] = u3->ip6[i] & mask->ip6[i]; in same_source_net() 115 return memcmp(&lh.ip6, &rh.ip6, sizeof(lh.ip6)); in same_source_net() 341 memcpy(&addr.ip6, (info->flags & XT_CONNLIMIT_DADDR) ? in connlimit_mt() 342 &iph->daddr : &iph->saddr, sizeof(addr.ip6)); in connlimit_mt()
|
D | xt_NETMAP.c | 32 for (i = 0; i < ARRAY_SIZE(range->min_addr.ip6); i++) in netmap_tg6() 33 netmask.ip6[i] = ~(range->min_addr.ip6[i] ^ in netmap_tg6() 34 range->max_addr.ip6[i]); in netmap_tg6() 42 for (i = 0; i < ARRAY_SIZE(new_addr.ip6); i++) { in netmap_tg6() 43 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6() 44 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6() 45 netmask.ip6[i]; in netmap_tg6()
|
D | xt_HMARK.c | 93 t->src = hmark_addr_mask(otuple->src.l3num, otuple->src.u3.ip6, in hmark_ct_set_htuple() 94 info->src_mask.ip6); in hmark_ct_set_htuple() 95 t->dst = hmark_addr_mask(otuple->src.l3num, rtuple->src.u3.ip6, in hmark_ct_set_htuple() 96 info->dst_mask.ip6); in hmark_ct_set_htuple() 169 struct ipv6hdr *ip6, _ip6; in hmark_pkt_set_htuple_ipv6() local 175 ip6 = (struct ipv6hdr *) (skb->data + skb_network_offset(skb)); in hmark_pkt_set_htuple_ipv6() 184 ip6 = skb_header_pointer(skb, nhoff, sizeof(_ip6), &_ip6); in hmark_pkt_set_htuple_ipv6() 185 if (ip6 == NULL) in hmark_pkt_set_htuple_ipv6() 194 t->src = hmark_addr6_mask(ip6->saddr.s6_addr32, info->src_mask.ip6); in hmark_pkt_set_htuple_ipv6() 195 t->dst = hmark_addr6_mask(ip6->daddr.s6_addr32, info->dst_mask.ip6); in hmark_pkt_set_htuple_ipv6()
|
D | nft_nat.c | 57 memcpy(range.min_addr.ip6, in nft_nat_eval() 59 sizeof(range.min_addr.ip6)); in nft_nat_eval() 60 memcpy(range.max_addr.ip6, in nft_nat_eval() 62 sizeof(range.max_addr.ip6)); in nft_nat_eval() 157 alen = FIELD_SIZEOF(struct nf_nat_range, min_addr.ip6); in nft_nat_init()
|
D | xt_hashlimit.c | 73 } ip6; member 598 memcpy(&dst->ip6.dst, &ipv6_hdr(skb)->daddr, in hashlimit_init_dst() 599 sizeof(dst->ip6.dst)); in hashlimit_init_dst() 600 hashlimit_ipv6_mask(dst->ip6.dst, hinfo->cfg.dstmask); in hashlimit_init_dst() 603 memcpy(&dst->ip6.src, &ipv6_hdr(skb)->saddr, in hashlimit_init_dst() 604 sizeof(dst->ip6.src)); in hashlimit_init_dst() 605 hashlimit_ipv6_mask(dst->ip6.src, hinfo->cfg.srcmask); in hashlimit_init_dst() 943 &ent->dst.ip6.src, in dl_seq_print() 945 &ent->dst.ip6.dst, in dl_seq_print()
|
D | nf_conntrack_ftp.c | 263 (struct in6_addr *)cmd->u3.ip6, delim); in try_eprt() 502 cmd.u3.ip6, in help() 503 ct->tuplehash[dir].tuple.src.u3.ip6); in help()
|
D | nf_nat_ftp.c | 49 &addr->ip6, port); in nf_nat_ftp_fmt_cmd()
|
D | xt_cluster.c | 26 return (__force u32 *)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip6; in nf_ct_orig_ipv6_src()
|
/net/ipv6/netfilter/ |
D | nf_conntrack_l3proto_ipv6.c | 48 memcpy(tuple->src.u3.ip6, ap, sizeof(tuple->src.u3.ip6)); in ipv6_pkt_to_tuple() 49 memcpy(tuple->dst.u3.ip6, ap + 4, sizeof(tuple->dst.u3.ip6)); in ipv6_pkt_to_tuple() 57 memcpy(tuple->src.u3.ip6, orig->dst.u3.ip6, sizeof(tuple->src.u3.ip6)); in ipv6_invert_tuple() 58 memcpy(tuple->dst.u3.ip6, orig->src.u3.ip6, sizeof(tuple->dst.u3.ip6)); in ipv6_invert_tuple() 67 tuple->src.u3.ip6, tuple->dst.u3.ip6); in ipv6_print_tuple() 258 &tuple.src.u3.ip6, ntohs(tuple.src.u.tcp.port), in ipv6_getorigdst() 259 &tuple.dst.u3.ip6, ntohs(tuple.dst.u.tcp.port)); in ipv6_getorigdst()
|
D | nf_nat_l3proto_ipv6.c | 38 struct flowi6 *fl6 = &fl->u.ip6; in nf_nat_ipv6_decode_session() 74 return secure_ipv6_port_ephemeral(t->src.u3.ip6, t->dst.u3.ip6, dport); in nf_nat_ipv6_secure_port() 157 nla_memcpy(&range->min_addr.ip6, tb[CTA_NAT_V6_MINIP], in nf_nat_ipv6_nlattr_to_range() 163 nla_memcpy(&range->max_addr.ip6, tb[CTA_NAT_V6_MAXIP], in nf_nat_ipv6_nlattr_to_range() 195 struct ipv6hdr ip6; in nf_nat_icmpv6_reply_translation() member 230 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation()
|
/net/tipc/ |
D | udp_media.c | 415 struct sockaddr_in6 ip6; in __tipc_nl_add_udp_addr() local 417 memset(&ip6, 0, sizeof(ip6)); in __tipc_nl_add_udp_addr() 418 ip6.sin6_family = AF_INET6; in __tipc_nl_add_udp_addr() 419 ip6.sin6_port = addr->port; in __tipc_nl_add_udp_addr() 420 memcpy(&ip6.sin6_addr, &addr->ipv6, sizeof(struct in6_addr)); in __tipc_nl_add_udp_addr() 421 if (nla_put(skb, nla_t, sizeof(ip6), &ip6)) in __tipc_nl_add_udp_addr() 576 struct sockaddr_in6 *ip6 = (struct sockaddr_in6 *)&sa; in tipc_parse_udp_addr() local 579 addr->port = ip6->sin6_port; in tipc_parse_udp_addr() 580 memcpy(&addr->ipv6, &ip6->sin6_addr, sizeof(struct in6_addr)); in tipc_parse_udp_addr() 586 atype = ipv6_addr_type(&ip6->sin6_addr); in tipc_parse_udp_addr() [all …]
|
/net/ipv6/ |
D | exthdrs_core.c | 197 struct ipv6hdr _ip6, *ip6; in ipv6_find_hdr() local 199 ip6 = skb_header_pointer(skb, *offset, sizeof(_ip6), &_ip6); in ipv6_find_hdr() 200 if (!ip6 || (ip6->version != 6)) { in ipv6_find_hdr() 205 nexthdr = ip6->nexthdr; in ipv6_find_hdr()
|
D | xfrm6_protocol.c | 71 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 = NULL; in xfrm6_esp_rcv() 98 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 = NULL; in xfrm6_ah_rcv() 125 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 = NULL; in xfrm6_ipcomp_rcv()
|
D | fib6_rules.c | 56 struct flowi6 *flp6 = &flp->u.ip6; in fib6_rule_action() 159 struct flowi6 *fl6 = &fl->u.ip6; in fib6_rule_match()
|
D | ip6_gre.c | 556 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_ipv4() 614 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_ipv6() 673 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_other() 722 struct flowi6 *fl6 = &t->fl.u.ip6; in ip6gre_tnl_link_config() 963 t->fl.u.ip6.flowlabel, in ip6gre_header() 964 true, &t->fl.u.ip6)); in ip6gre_header()
|
/net/netfilter/ipvs/ |
D | ip_vs_dh.c | 81 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_dh_hashkey() 82 addr->ip6[2]^addr->ip6[3]; in ip_vs_dh_hashkey()
|
D | ip_vs_sh.c | 96 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_sh_hashkey() 97 addr->ip6[2]^addr->ip6[3]; in ip_vs_sh_hashkey()
|
D | ip_vs_lblc.c | 159 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblc_hashkey() 160 addr->ip6[2]^addr->ip6[3]; in ip_vs_lblc_hashkey()
|
D | ip_vs_proto_udp.c | 106 csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_fast_csum_update() 128 ~csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_partial_csum_update()
|
D | ip_vs_lblcr.c | 322 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblcr_hashkey() 323 addr->ip6[2]^addr->ip6[3]; in ip_vs_lblcr_hashkey()
|
D | ip_vs_proto_tcp.c | 117 csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in tcp_fast_csum_update() 138 ~csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in tcp_partial_csum_update()
|
/net/bridge/ |
D | br_mdb.c | 73 ip->u.ip6 = entry->addr.u.ip6; in __mdb_entry_to_br_ip() 131 e.addr.u.ip6 = p->addr.u.ip6; in br_mdb_fill_info() 315 ipv6_eth_mc_map(&entry->addr.u.ip6, mdb.addr); in __br_mdb_notify() 359 entry.addr.u.ip6 = group->u.ip6; in br_mdb_notify() 445 if (ipv6_addr_is_ll_all_nodes(&entry->addr.u.ip6)) in is_valid_mdb_entry()
|
D | br_multicast.c | 65 return ipv6_addr_equal(&a->u.ip6, &b->u.ip6); in br_ip_equal() 95 return __br_ip6_hash(mdb, &ip->u.ip6, ip->vid); in br_ip_hash() 142 br_dst.u.ip6 = *dst; in br_mdb_ip6_get() 171 ip.u.ip6 = ipv6_hdr(skb)->daddr; in br_mdb_get() 528 return br_ip6_multicast_alloc_query(br, &addr->u.ip6, in br_multicast_alloc_query() 758 br_group.u.ip6 = *group; in br_ip6_multicast_add_group() 829 br->ip6_querier.addr.u.ip6 = ipv6_hdr(skb)->saddr; in br_multicast_select_own_querier() 1189 if (ipv6_addr_cmp(saddr, &br->ip6_querier.addr.u.ip6) <= 0) in br_ip6_multicast_select_querier() 1195 br->ip6_querier.addr.u.ip6 = *saddr; in br_ip6_multicast_select_querier() 1213 return br_ip6_multicast_select_querier(br, port, &saddr->u.ip6); in br_multicast_select_querier() [all …]
|
/net/netfilter/ipset/ |
D | pfxlen.c | 7 {.ip6 = { \ 150 {.ip6 = { (__force __be32)a, (__force __be32)b, \
|
/net/xfrm/ |
D | xfrm_input.c | 216 if (XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6) in xfrm_input() 217 mark = be32_to_cpu(XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6->parms.i_key); in xfrm_input()
|