[PATCH][EBTABLES] fix vlan match

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Hi Dave,

The ebtables vlan match uses a struct vlan_ethhdr where it should use a
struct vlan_hdr. The patch below fixes this.

cheers,
Bart

--- linux-2.6.0-test6/net/bridge/netfilter/ebt_vlan.c.old	2003-09-28 19:27:47.000000000 +0200
+++ linux-2.6.0-test6/net/bridge/netfilter/ebt_vlan.c	2003-09-28 19:28:11.000000000 +0200
@@ -48,7 +48,7 @@ ebt_filter_vlan(const struct sk_buff *sk
 		const void *data, unsigned int datalen)
 {
 	struct ebt_vlan_info *info = (struct ebt_vlan_info *) data;
-	struct vlan_ethhdr frame;
+	struct vlan_hdr frame;
 
 	unsigned short TCI;	/* Whole TCI, given from parsed frame */
 	unsigned short id;	/* VLAN ID, given from frame TCI */



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.