Adding a new target to add the vlan tag

"Jon Petralanda" <[email protected]> Wed, 24 Sep 2008 18:07:10 +0200
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
--===============3885436223386569922==
Content-Type: multipart/alternative; 
	boundary="----=_Part_90106_17369417.1222272430624"

------=_Part_90106_17369417.1222272430624
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi! I'm trying to do a tool to ensure QoS on layer 2 on Linux and for that I
need to add the VLAN tag to especified packets and change the field
depending on diferent network parameters on layer 2.

To manage that I am trying to do a new target for ebtables like Kashyap
Ashwin was doing some time ago here:
http://osdir.com/ml/linux.network.bridge.ebtables.devel/2003-12/msg00027.htmladding
the 802.1q tag but with adding two options: the user can change vlan
ID and change priority fields.

I was seeing around the net and I see the functions __vlan_put_tag and
__vlan_get_tag from /usr/include/linux/if_vlan.h. And I also saw the
function vlan_dev_hard_start_xmit from Bart's response in
http://article.gmane.org/gmane.linux.network.bridge.ebtables.user/381. I
also read the Ebtables hacking howto and talk with Ashwin.

My question is about the dificulty of doing this knowing that I'm a newbie
on ebtables and from where can I start doing this. I read about copying the
dnat userspace and kernel code and linking the ebt_target_vnat with
__vlan_put_tag (from if_vlan.h) but after I write the codes of Kernel and
userspace... How I can add it to ebtables for testing?

PD: Ashwin told me about a patch sent by him to you Bart, still have you it?

Sorry for my poor English.

Regards, Jon.

------=_Part_90106_17369417.1222272430624
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi! I&#39;m trying to do a tool to ensure QoS on layer 2 on Linux and for that I need to add the VLAN tag to especified packets and change the field depending on diferent network parameters on layer 2.<br><br>
To manage that I am trying to do a new target for ebtables like Kashyap Ashwin was doing some time ago here: <a href="http://osdir.com/ml/linux.network.bridge.ebtables.devel/2003-12/msg00027.html">http://osdir.com/ml/linux.network.bridge.ebtables.devel/2003-12/msg00027.html</a> adding the 802.1q tag but with adding two options: the user can change vlan ID and change priority fields.<br>
<br>I was seeing around the net and I see the functions __vlan_put_tag and __vlan_get_tag from /usr/include/linux/if_vlan.h. And I also saw the function vlan_dev_hard_start_xmit from Bart&#39;s response in <a href="http://article.gmane.org/gmane.linux.network.bridge.ebtables.user/381">http://article.gmane.org/gmane.linux.network.bridge.ebtables.user/381</a>. I also read the Ebtables hacking howto and talk with Ashwin.<br>
<br>My question is about the dificulty of doing this knowing that I&#39;m a newbie on ebtables and from where can I start doing this. I read about copying the dnat userspace and kernel code and linking the ebt_target_vnat with __vlan_put_tag (from if_vlan.h) but after I write the codes of Kernel and userspace... How I can add it to ebtables for testing?<br>
<br>PD: Ashwin told me about a patch sent by him to you Bart, still have you it?<br><br>Sorry for my poor English.<br><br>Regards, Jon.<br></div>

------=_Part_90106_17369417.1222272430624--


--===============3885436223386569922==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============3885436223386569922==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ebtables-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebtables-devel

--===============3885436223386569922==--