/net/netfilter/ |
D | xt_connlimit.c | 60 for (i = 0; i < ARRAY_SIZE(addr->ip6); ++i) in connlimit_iphash6() 61 res.ip6[i] = addr->ip6[i] & mask->ip6[i]; in connlimit_iphash6() 63 return jhash2((u32 *)res.ip6, ARRAY_SIZE(res.ip6), connlimit_rnd) & 0xFF; in connlimit_iphash6() 86 for (i = 0; i < ARRAY_SIZE(addr->ip6); ++i) { in same_source_net() 87 lh.ip6[i] = addr->ip6[i] & mask->ip6[i]; in same_source_net() 88 rh.ip6[i] = u3->ip6[i] & mask->ip6[i]; in same_source_net() 91 return memcmp(&lh.ip6, &rh.ip6, sizeof(lh.ip6)) == 0; in same_source_net() 197 memcpy(&addr.ip6, (info->flags & XT_CONNLIMIT_DADDR) ? in connlimit_mt() 198 &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 | xt_hashlimit.c | 72 } ip6; member 544 memcpy(&dst->ip6.dst, &ipv6_hdr(skb)->daddr, in hashlimit_init_dst() 545 sizeof(dst->ip6.dst)); in hashlimit_init_dst() 546 hashlimit_ipv6_mask(dst->ip6.dst, hinfo->cfg.dstmask); in hashlimit_init_dst() 549 memcpy(&dst->ip6.src, &ipv6_hdr(skb)->saddr, in hashlimit_init_dst() 550 sizeof(dst->ip6.src)); in hashlimit_init_dst() 551 hashlimit_ipv6_mask(dst->ip6.src, hinfo->cfg.srcmask); in hashlimit_init_dst() 810 &ent->dst.ip6.src, in dl_seq_real_show() 812 &ent->dst.ip6.dst, in dl_seq_real_show()
|
D | nf_conntrack_ftp.c | 230 (struct in6_addr *)cmd->u3.ip6, delim); in try_eprt() 478 cmd.u3.ip6, in help() 479 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()
|
D | nf_nat_sip.c | 74 return sprintf(buffer, "[%pI6c]", &addr->ip6); in sip_sprintf_addr() 76 return sprintf(buffer, "%pI6c", &addr->ip6); in sip_sprintf_addr() 86 return sprintf(buffer, "[%pI6c]:%u", &addr->ip6, port); in sip_sprintf_addr_port()
|
/net/ipv6/netfilter/ |
D | nf_conntrack_l3proto_ipv6.c | 47 memcpy(tuple->src.u3.ip6, ap, sizeof(tuple->src.u3.ip6)); in ipv6_pkt_to_tuple() 48 memcpy(tuple->dst.u3.ip6, ap + 4, sizeof(tuple->dst.u3.ip6)); in ipv6_pkt_to_tuple() 56 memcpy(tuple->src.u3.ip6, orig->dst.u3.ip6, sizeof(tuple->src.u3.ip6)); in ipv6_invert_tuple() 57 memcpy(tuple->dst.u3.ip6, orig->src.u3.ip6, sizeof(tuple->dst.u3.ip6)); in ipv6_invert_tuple() 66 tuple->src.u3.ip6, tuple->dst.u3.ip6); in ipv6_print_tuple() 318 &tuple.src.u3.ip6, ntohs(tuple.src.u.tcp.port), in ipv6_getorigdst() 319 &tuple.dst.u3.ip6, ntohs(tuple.dst.u.tcp.port)); in ipv6_getorigdst() 347 &tuple->src.u3.ip6) || in ipv6_tuple_to_nlattr() 349 &tuple->dst.u3.ip6)) in ipv6_tuple_to_nlattr() 368 memcpy(&t->src.u3.ip6, nla_data(tb[CTA_IP_V6_SRC]), in ipv6_nlattr_to_tuple() [all …]
|
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() 165 nla_memcpy(&range->min_addr.ip6, tb[CTA_NAT_V6_MINIP], in nf_nat_ipv6_nlattr_to_range() 171 nla_memcpy(&range->max_addr.ip6, tb[CTA_NAT_V6_MAXIP], in nf_nat_ipv6_nlattr_to_range() 200 struct ipv6hdr ip6; in nf_nat_icmpv6_reply_translation() member 235 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation()
|
D | ip6table_nat.c | 43 &ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip6 : in alloc_null_binding() 44 &ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3.ip6); in alloc_null_binding()
|
/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 | fib6_rules.c | 53 struct flowi6 *flp6 = &flp->u.ip6; in fib6_rule_action() 118 struct flowi6 *fl6 = &fl->u.ip6; in fib6_rule_match()
|
D | xfrm6_state.c | 26 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_init_tempsel()
|
D | netfilter.c | 123 result = ip6_route_output(net, sk, &fl->u.ip6); in nf_ip6_route()
|
D | ip6_gre.c | 791 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_ipv4() 843 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_ipv6() 897 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6gre_xmit_other() 943 struct flowi6 *fl6 = &t->fl.u.ip6; in ip6gre_tnl_link_config() 1195 ip6_flow_hdr(ipv6h, 0, t->fl.u.ip6.flowlabel); in ip6gre_header()
|
/net/bridge/ |
D | br_mdb.c | 90 e.addr.u.ip6 = p->addr.u.ip6; in br_mdb_fill_info() 239 entry.addr.u.ip6 = group->u.ip6; in br_mdb_notify() 256 if (!ipv6_is_transient_multicast(&entry->addr.u.ip6)) in is_valid_mdb_entry() 376 ip.u.ip6 = entry->addr.u.ip6; in __br_mdb_add() 425 ip.u.ip6 = entry->addr.u.ip6; in __br_mdb_del()
|
D | br_multicast.c | 49 return ipv6_addr_equal(&a->u.ip6, &b->u.ip6); in br_ip_equal() 79 return __br_ip6_hash(mdb, &ip->u.ip6, ip->vid); in br_ip_hash() 126 br_dst.u.ip6 = *dst; in br_mdb_ip6_get() 155 ip.u.ip6 = ipv6_hdr(skb)->daddr; in br_mdb_get() 501 return br_ip6_multicast_alloc_query(br, &addr->u.ip6); in br_multicast_alloc_query() 730 br_group.u.ip6 = *group; in br_ip6_multicast_add_group() 1335 br_group.u.ip6 = *group; in br_ip6_multicast_leave_group()
|
/net/netfilter/ipvs/ |
D | ip_vs_sh.c | 83 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_sh_hashkey() 84 addr->ip6[2]^addr->ip6[3]; in ip_vs_sh_hashkey()
|
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_lblc.c | 158 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblc_hashkey() 159 addr->ip6[2]^addr->ip6[3]; in ip_vs_lblc_hashkey()
|
D | ip_vs_proto_udp.c | 92 csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_fast_csum_update() 114 ~csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_partial_csum_update()
|
D | ip_vs_lblcr.c | 332 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblcr_hashkey() 333 addr->ip6[2]^addr->ip6[3]; in ip_vs_lblcr_hashkey()
|
D | ip_vs_proto_tcp.c | 95 csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in tcp_fast_csum_update() 116 ~csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in tcp_partial_csum_update()
|
/net/netfilter/ipset/ |
D | pfxlen.c | 9 {.ip6 = { \ 153 {.ip6 = { (__force __be32) a, (__force __be32) b, \
|