* libxt_iprange: fix option names
@ 2008-08-15 22:56 Jan Engelhardt
2008-09-01 12:19 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2008-08-15 22:56 UTC (permalink / raw)
To: kaber; +Cc: Netfilter Developer Mailing List
commit 7d8353abfe708cfdd3b62a323a4a26c8adcb2cc1
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Fri Aug 15 18:50:22 2008 -0400
libxt_iprange: fix option names
There is no --src-ip, just --src-range. (Same for --dst-range.)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
extensions/libxt_iprange.c | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/extensions/libxt_iprange.c b/extensions/libxt_iprange.c
index 8c8521e..503372f 100644
--- a/extensions/libxt_iprange.c
+++ b/extensions/libxt_iprange.c
@@ -106,18 +106,18 @@ iprange_mt4_parse(int c, char **argv, int invert, unsigned int *flags,
char *end;
switch (c) {
- case '1': /* --src-ip */
+ case '1': /* --src-range */
end = strchr(optarg, '-');
if (end == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", optarg);
*end = '\0';
ia = numeric_to_ipaddr(optarg);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", optarg);
memcpy(&info->src_min.in, ia, sizeof(*ia));
ia = numeric_to_ipaddr(end+1);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", end + 1);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", end + 1);
memcpy(&info->src_max.in, ia, sizeof(*ia));
info->flags |= IPRANGE_SRC;
if (invert)
@@ -125,18 +125,18 @@ iprange_mt4_parse(int c, char **argv, int invert, unsigned int *flags,
*flags |= F_SRCIP;
return true;
- case '2': /* --dst-ip */
+ case '2': /* --dst-range */
end = strchr(optarg, '-');
if (end == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", optarg);
*end = '\0';
ia = numeric_to_ipaddr(optarg);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", optarg);
memcpy(&info->dst_min.in, ia, sizeof(*ia));
ia = numeric_to_ipaddr(end + 1);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", end + 1);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", end + 1);
memcpy(&info->dst_max.in, ia, sizeof(*ia));
info->flags |= IPRANGE_DST;
if (invert)
@@ -156,18 +156,18 @@ iprange_mt6_parse(int c, char **argv, int invert, unsigned int *flags,
char *end;
switch (c) {
- case '1': /* --src-ip */
+ case '1': /* --src-range */
end = strchr(optarg, '-');
if (end == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", optarg);
*end = '\0';
ia = numeric_to_ip6addr(optarg);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", optarg);
memcpy(&info->src_min.in, ia, sizeof(*ia));
ia = numeric_to_ip6addr(end+1);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--src-ip", end + 1);
+ param_act(P_BAD_VALUE, "iprange", "--src-range", end + 1);
memcpy(&info->src_max.in, ia, sizeof(*ia));
info->flags |= IPRANGE_SRC;
if (invert)
@@ -175,18 +175,18 @@ iprange_mt6_parse(int c, char **argv, int invert, unsigned int *flags,
*flags |= F_SRCIP;
return true;
- case '2': /* --dst-ip */
+ case '2': /* --dst-range */
end = strchr(optarg, '-');
if (end == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", optarg);
*end = '\0';
ia = numeric_to_ip6addr(optarg);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", optarg);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", optarg);
memcpy(&info->dst_min.in, ia, sizeof(*ia));
ia = numeric_to_ip6addr(end + 1);
if (ia == NULL)
- param_act(P_BAD_VALUE, "iprange", "--dst-ip", end + 1);
+ param_act(P_BAD_VALUE, "iprange", "--dst-range", end + 1);
memcpy(&info->dst_max.in, ia, sizeof(*ia));
info->flags |= IPRANGE_DST;
if (invert)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: libxt_iprange: fix option names
2008-08-15 22:56 libxt_iprange: fix option names Jan Engelhardt
@ 2008-09-01 12:19 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-09-01 12:19 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Netfilter Developer Mailing List
Jan Engelhardt wrote:
> libxt_iprange: fix option names
>
> There is no --src-ip, just --src-range. (Same for --dst-range.)
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-01 12:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 22:56 libxt_iprange: fix option names Jan Engelhardt
2008-09-01 12:19 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.