diff mbox

m_xt: stop using xtables_set_revision()

Message ID 1290374214-26743-1-git-send-email-vapier@gentoo.org
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Mike Frysinger Nov. 21, 2010, 9:16 p.m. UTC
iptables dropped the xtables_set_revision() function around version 1.4.9,
so set the rev directly ourselves.  This should be compatible back to the
original version m_xt itself is designed for.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 tc/m_xt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

stephen hemminger Nov. 30, 2010, 5:49 p.m. UTC | #1
On Sun, 21 Nov 2010 16:16:54 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> iptables dropped the xtables_set_revision() function around version 1.4.9,
> so set the rev directly ourselves.  This should be compatible back to the
> original version m_xt itself is designed for.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  tc/m_xt.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tc/m_xt.c b/tc/m_xt.c
> index bfc4937..ede9913 100644
> --- a/tc/m_xt.c
> +++ b/tc/m_xt.c
> @@ -88,7 +88,7 @@ build_st(struct xtables_target *target, struct xt_entry_target *t)
>  		target->t = xtables_calloc(1, size);
>  		target->t->u.target_size = size;
>  		strcpy(target->t->u.user.name, target->name);
> -		xtables_set_revision(target->t->u.user.name, target->revision);
> +		target->t->u.user.revision = target->revision;
>  
>  		if (target->init != NULL)
>  			target->init(target->t);


Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tc/m_xt.c b/tc/m_xt.c
index bfc4937..ede9913 100644
--- a/tc/m_xt.c
+++ b/tc/m_xt.c
@@ -88,7 +88,7 @@  build_st(struct xtables_target *target, struct xt_entry_target *t)
 		target->t = xtables_calloc(1, size);
 		target->t->u.target_size = size;
 		strcpy(target->t->u.user.name, target->name);
-		xtables_set_revision(target->t->u.user.name, target->revision);
+		target->t->u.user.revision = target->revision;
 
 		if (target->init != NULL)
 			target->init(target->t);