Lines Matching defs:range
1 /* Shared library add-on to iptables to add IP range matching support. */
17 "[!] --src-range ip-ip Match source IP in the specified range\n"
18 "[!] --dst-range ip-ip Match destination IP in the specified range\n"
24 { "src-range", 1, 0, '1' },
25 { "dst-range", 1, 0, '2' },
30 parse_iprange(char *arg, struct ipt_iprange *range)
43 range->min_ip = ip->s_addr;
50 range->max_ip = ip->s_addr;
52 range->max_ip = range->min_ip;
69 "iprange match: Only use --src-range ONCE!");
84 "iprange match: Only use --dst-range ONCE!");
102 /* Final check; must have specified --src-range or --dst-range. */
108 "iprange match: You must specify `--src-range' or `--dst-range'");
112 print_iprange(const struct ipt_iprange *range)
116 byte_min = (const unsigned char *) &(range->min_ip);
117 byte_max = (const unsigned char *) &(range->max_ip);
132 printf("source IP range ");
138 printf("destination IP range ");
154 printf("--src-range ");
162 printf("--dst-range ");