• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iptables-1.4.12.1/extensions/

Lines Matching defs:range

31 "[!] --src-range ip[-ip]    Match source IP in the specified range\n"
32 "[!] --dst-range ip[-ip] Match destination IP in the specified range\n");
36 {.name = "src-range", .id = O_SRC_RANGE, .type = XTTYPE_STRING,
38 {.name = "dst-range", .id = O_DST_RANGE, .type = XTTYPE_STRING,
44 iprange_parse_spec(const char *from, const char *to, union nf_inet_addr *range,
52 memset(range, 0, sizeof(union nf_inet_addr) * 2);
60 range[i].in6 = *ia6;
68 range[i].in = *ia4;
73 static void iprange_parse_range(const char *oarg, union nf_inet_addr *range,
83 iprange_parse_spec(arg, arg, range, family, optname);
89 iprange_parse_spec(arg, dash + 1, range, family, optname);
90 if (memcmp(&range[0], &range[1], sizeof(*range)) > 0)
91 fprintf(stderr, "xt_iprange: range %s-%s is reversed and "
99 union nf_inet_addr range[2];
107 iprange_parse_range(cb->arg, range, NFPROTO_IPV4, "--src-range");
108 info->src.min_ip = range[0].ip;
109 info->src.max_ip = range[1].ip;
115 iprange_parse_range(cb->arg, range, NFPROTO_IPV4, "--dst-range");
116 info->dst.min_ip = range[0].ip;
117 info->dst.max_ip = range[1].ip;
130 "--src-range");
137 "--dst-range");
159 "iprange match: You must specify `--src-range' or `--dst-range'");
163 print_iprange(const struct ipt_iprange *range)
167 byte_min = (const unsigned char *)&range->min_ip;
168 byte_max = (const unsigned char *)&range->max_ip;
180 printf(" source IP range");
186 printf(" destination IP range");
200 printf(" source IP range");
211 printf(" destination IP range");
226 printf(" source IP range");
237 printf(" destination IP range");
252 printf(" --src-range");
258 printf(" --dst-range");
270 printf(" --src-range %s", xtables_ipaddr_to_numeric(&info->src_min.in));
276 printf(" --dst-range %s", xtables_ipaddr_to_numeric(&info->dst_min.in));
288 printf(" --src-range %s", xtables_ip6addr_to_numeric(&info->src_min.in6));
294 printf(" --dst-range %s", xtables_ip6addr_to_numeric(&info->dst_min.in6));