Home
last modified time | relevance | path

Searched refs:min_ip (Results 1 – 13 of 13) sorted by relevance

/external/libnetfilter_conntrack/src/conntrack/
Dobjopt.c57 ct->snat.min_ip.v4 = ct->repl.dst.v4; in setobjopt_undo_snat()
58 ct->snat.max_ip.v4 = ct->snat.min_ip.v4; in setobjopt_undo_snat()
63 memcpy(&ct->snat.min_ip.v6, &ct->repl.dst.v6, in setobjopt_undo_snat()
65 memcpy(&ct->snat.max_ip.v6, &ct->snat.min_ip.v6, in setobjopt_undo_snat()
80 ct->dnat.min_ip.v4 = ct->repl.src.v4; in setobjopt_undo_dnat()
81 ct->dnat.max_ip.v4 = ct->dnat.min_ip.v4; in setobjopt_undo_dnat()
85 memcpy(&ct->dnat.min_ip.v6, &ct->repl.src.v6, in setobjopt_undo_dnat()
87 memcpy(&ct->dnat.max_ip.v6, &ct->dnat.min_ip.v6, in setobjopt_undo_dnat()
Dcopy.c290 dest->snat.min_ip.v4 = orig->snat.min_ip.v4; in copy_attr_snat_ipv4()
296 dest->dnat.min_ip.v4 = orig->dnat.min_ip.v4; in copy_attr_dnat_ipv4()
302 memcpy(&dest->snat.min_ip.v6, &orig->snat.min_ip.v6, in copy_attr_snat_ipv6()
309 memcpy(&dest->dnat.min_ip.v6, &orig->dnat.min_ip.v6, in copy_attr_dnat_ipv6()
Dgetter.c209 return &ct->snat.min_ip.v4; in get_attr_snat_ipv4()
214 return &ct->dnat.min_ip.v4; in get_attr_dnat_ipv4()
219 return &ct->snat.min_ip.v6; in get_attr_snat_ipv6()
224 return &ct->dnat.min_ip.v6; in get_attr_dnat_ipv6()
Dsetter.c240 ct->snat.min_ip.v4 = ct->snat.max_ip.v4 = *((uint32_t *) value); in set_attr_snat_ipv4()
246 ct->dnat.min_ip.v4 = ct->dnat.max_ip.v4 = *((uint32_t *) value); in set_attr_dnat_ipv4()
252 memcpy(&ct->snat.min_ip.v6, value, sizeof(struct in6_addr)); in set_attr_snat_ipv6()
259 memcpy(&ct->dnat.min_ip.v6, value, sizeof(struct in6_addr)); in set_attr_dnat_ipv6()
Dbuild_mnl.c272 mnl_attr_put_u32(nlh, CTA_NAT_MINIP, nat->min_ip.v4); in nfct_build_nat()
276 &nat->min_ip.v6); in nfct_build_nat()
Dbuild.c284 &nat->min_ip.v4, sizeof(uint32_t)); in __build_nat()
288 &nat->min_ip.v6, sizeof(struct in6_addr)); in __build_nat()
/external/iptables/extensions/
Dlibipt_NETMAP.c61 range->min_ip = cb->val.haddr.ip & cb->val.hmask.ip; in NETMAP_parse()
62 range->max_ip = range->min_ip | ~cb->val.hmask.ip; in NETMAP_parse()
73 a.s_addr = r->min_ip; in __NETMAP_print()
75 a.s_addr = ~(r->min_ip ^ r->max_ip); in __NETMAP_print()
Dlibipt_SNAT.c140 range.min_ip = ip->s_addr; in parse_to()
148 range.max_ip = range.min_ip; in parse_to()
205 a.s_addr = r->min_ip; in print_range()
207 if (r->max_ip != r->min_ip) { in print_range()
261 a.s_addr = r->min_ip; in print_range_xlate()
263 if (r->max_ip != r->min_ip) { in print_range_xlate()
Dlibxt_iprange.c11 __be32 min_ip, max_ip; member
109 info->src.min_ip = range[0].ip; in iprange_parse()
118 info->dst.min_ip = range[0].ip; in iprange_parse()
169 byte_min = (const unsigned char *)&range->min_ip; in print_iprange()
311 byte_min = (const unsigned char *)&range->min_ip; in print_iprange_xlate()
Dlibipt_DNAT.c146 range.min_ip = ip->s_addr; in parse_to()
154 range.max_ip = range.min_ip; in parse_to()
208 a.s_addr = r->min_ip; in print_range()
210 if (r->max_ip != r->min_ip) { in print_range()
260 a.s_addr = r->min_ip; in print_range_xlate()
262 if (r->max_ip != r->min_ip) { in print_range_xlate()
/external/iptables/include/linux/netfilter/
Dnf_nat.h24 __be32 min_ip; member
/external/kernel-headers/original/uapi/linux/netfilter/
Dnf_nat.h27 __be32 min_ip; member
/external/libnetfilter_conntrack/include/internal/
Dobject.h147 union __nfct_address min_ip, max_ip; member