]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix save() functions of mac match,ipv4 and ipv6. (Michael Schwendt)
authorMichael Schwendt <mschwendt@yahoo.com>
Thu, 12 Sep 2002 07:14:55 +0000 (07:14 +0000)
committerHarald Welte <laforge@gnumonks.org>
Thu, 12 Sep 2002 07:14:55 +0000 (07:14 +0000)
extensions/libip6t_mac.c
extensions/libipt_mac.c

index 8fbb8190b16cccc9db31b990bfe1026d24eadf11..aac3980fa7bccf1d1f319360c72cd55dae3603b9 100644 (file)
@@ -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);
 }
index e50a887ccf41cb42842bbc912dd9928757eb73ee..3710117d44270138d66e0c6bd2be5f40fb2608c5 100644 (file)
@@ -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);
 }