summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schwendt <mschwendt@yahoo.com>2002-09-12 07:14:55 +0000
committerHarald Welte <laforge@gnumonks.org>2002-09-12 07:14:55 +0000
commit010491fd08073baedbbb8407056de4428306c936 (patch)
tree236a92b9230b16da080cf4e35fb4a1820a008f5f
parente95bd7a204bd19bc526e599730bc86657d07f57b (diff)
Fix save() functions of mac match,ipv4 and ipv6. (Michael Schwendt)
-rw-r--r--extensions/libip6t_mac.c2
-rw-r--r--extensions/libipt_mac.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_mac.c b/extensions/libip6t_mac.c
index 8fbb8190..aac3980f 100644
--- a/extensions/libip6t_mac.c
+++ b/extensions/libip6t_mac.c
@@ -118,7 +118,7 @@ print(const struct ip6t_ip6 *ip,
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
{
- printf("--mac ");
+ printf("--mac-source ");
print_mac(((struct ip6t_mac_info *)match->data)->srcaddr,
((struct ip6t_mac_info *)match->data)->invert);
}
diff --git a/extensions/libipt_mac.c b/extensions/libipt_mac.c
index e50a887c..3710117d 100644
--- a/extensions/libipt_mac.c
+++ b/extensions/libipt_mac.c
@@ -118,7 +118,7 @@ print(const struct ipt_ip *ip,
/* Saves the union ipt_matchinfo in parsable form to stdout. */
static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
{
- printf("--mac ");
+ printf("--mac-source ");
print_mac(((struct ipt_mac_info *)match->data)->srcaddr,
((struct ipt_mac_info *)match->data)->invert);
}