netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] m_xt: stop using xtables_set_revision()
@ 2010-11-21 21:16 Mike Frysinger
  2010-11-30 17:49 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-11-21 21:16 UTC (permalink / raw)
  To: stephen.hemminger, netdev

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);
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] m_xt: stop using xtables_set_revision()
  2010-11-21 21:16 [PATCH] m_xt: stop using xtables_set_revision() Mike Frysinger
@ 2010-11-30 17:49 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2010-11-30 17:49 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: stephen.hemminger, netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-30 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-21 21:16 [PATCH] m_xt: stop using xtables_set_revision() Mike Frysinger
2010-11-30 17:49 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).