netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Oeser <netdev@axxeo.de>
To: "Dawid Ciężarkiewicz" <dpc@asn.pl>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH][ebtables][vlan] ebt_vlan_t target
Date: Thu, 6 Jul 2006 13:15:16 +0200	[thread overview]
Message-ID: <200607061315.17109.netdev@axxeo.de> (raw)
In-Reply-To: <200607052149.16473.dpc@asn.pl>

Hi Dawid,

Dawid Ciężarkiewicz schrieb:
>  my name is Dawid Ciezarkiewicz. As a part of my daily job I was to write 
> kernel module for ebtables to let linux bridges change vlan ids in fly using 
> logic provided by ebtables matches. After hours of tries and kernel learning, 
> reading and googlin' I've finally come to the place where I've got working 
> module that does what I want. I'm looking for comments of more advanced linux 
> developers. Please note that this is my first linux patch I've ever made. 

First of all: 
	You should not implemented "--vlan-target". 
	Always return EBT_CONTINUE. That saves a lot of (duplicated) code
	(you can express the same using some more rules) while keeping 
	the same flexibility level. Rules for transforming/mangling 
	and decision rules should be seperate.


> diff -Nur linux-2.6.17.orig/net/bridge/netfilter/Kconfig 
> linux-2.6.17/net/bridge/netfilter/Kconfig
> --- linux-2.6.17.orig/net/bridge/netfilter/Kconfig	2006-06-18 
> 03:49:35.000000000 +0200
> +++ linux-2.6.17/net/bridge/netfilter/Kconfig	2006-06-28 20:48:27.000000000 
> +0200
> @@ -165,6 +165,15 @@
> 
>  	  To compile it as a module, choose M here.  If unsure, say N.
> 
> +config BRIDGE_EBT_VLAN_T
> +	tristate "ebt: vlan target support"
> +	depends on BRIDGE_NF_EBTABLES
> +	help
> +	  This option adds the vlan target.
> +
> +	  To compile it as a module, choose M here.  If unsure, say N.
> +
> +

Please put your nice explanations "to change vlan ids in fly" from your email here.

And short ebtables example for the common use case might help, too. But only,
if it is not more than two lines or such. Otherwise omit it.

I cannot comment on rest of the patch and hope other people will do :-)


Regards

Ingo Oeser

  reply	other threads:[~2006-07-06 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-05 19:49 [PATCH][ebtables][vlan] ebt_vlan_t target Dawid Ciężarkiewicz
2006-07-06 11:15 ` Ingo Oeser [this message]
2006-07-06 11:34   ` Dawid Ciezarkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200607061315.17109.netdev@axxeo.de \
    --to=netdev@axxeo.de \
    --cc=dpc@asn.pl \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).