Searched refs:newrange (Results 1 – 3 of 3) sorted by relevance
/net/netfilter/ |
D | xt_NETMAP.c | 22 struct nf_nat_range2 newrange; in netmap_tg6() local 45 newrange.flags = range->flags | NF_NAT_RANGE_MAP_IPS; in netmap_tg6() 46 newrange.min_addr = new_addr; in netmap_tg6() 47 newrange.max_addr = new_addr; in netmap_tg6() 48 newrange.min_proto = range->min_proto; in netmap_tg6() 49 newrange.max_proto = range->max_proto; in netmap_tg6() 51 return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(xt_hooknum(par))); in netmap_tg6() 75 struct nf_nat_range2 newrange; in netmap_tg4() local 92 memset(&newrange.min_addr, 0, sizeof(newrange.min_addr)); in netmap_tg4() 93 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in netmap_tg4() [all …]
|
D | nf_nat_masquerade.c | 34 struct nf_nat_range2 newrange; in nf_nat_masquerade_ipv4() local 64 memset(&newrange.min_addr, 0, sizeof(newrange.min_addr)); in nf_nat_masquerade_ipv4() 65 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in nf_nat_masquerade_ipv4() 66 newrange.flags = range->flags | NF_NAT_RANGE_MAP_IPS; in nf_nat_masquerade_ipv4() 67 newrange.min_addr.ip = newsrc; in nf_nat_masquerade_ipv4() 68 newrange.max_addr.ip = newsrc; in nf_nat_masquerade_ipv4() 69 newrange.min_proto = range->min_proto; in nf_nat_masquerade_ipv4() 70 newrange.max_proto = range->max_proto; in nf_nat_masquerade_ipv4() 73 return nf_nat_setup_info(ct, &newrange, NF_NAT_MANIP_SRC); in nf_nat_masquerade_ipv4() 243 struct nf_nat_range2 newrange; in nf_nat_masquerade_ipv6() local [all …]
|
D | nf_nat_redirect.c | 32 struct nf_nat_range2 newrange; in nf_nat_redirect() local 38 memset(&newrange, 0, sizeof(newrange)); in nf_nat_redirect() 40 newrange.flags = range->flags | NF_NAT_RANGE_MAP_IPS; in nf_nat_redirect() 41 newrange.min_addr = *newdst; in nf_nat_redirect() 42 newrange.max_addr = *newdst; in nf_nat_redirect() 43 newrange.min_proto = range->min_proto; in nf_nat_redirect() 44 newrange.max_proto = range->max_proto; in nf_nat_redirect() 46 return nf_nat_setup_info(ct, &newrange, NF_NAT_MANIP_DST); in nf_nat_redirect()
|