Subject: two vlan questions
To: None <tech-net@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-net
Date: 08/20/2003 19:23:29
This is a multipart MIME message.

--==_Exmh_7870554694000
Content-Type: text/plain; charset=us-ascii


Hi -
I'm just getting the vlan support in the 3c990 "txp" to work,
and found 2 problems with ETHERCAP_VLAN_HWTAGGING:
-It doesn't work:-)
 It seems that outgoing packets just don't get tagged. The appended
 patch fixes it for me. Is that OK to commit?
 (still strange that nobody noticed it, the last change to if_vlan.c
  was in january)
-tcpdump at the underlying interface doesn't show the tags. Should
 be synthesized at the bpf layer, or what?

best regards
Matthias



--==_Exmh_7870554694000
Content-Type: text/plain ; name="vlan.txt"; charset=us-ascii
Content-Description: vlan.txt
Content-Disposition: attachment; filename="vlan.txt"

--- if_vlan.c.~1.35.~	Mon Jan 20 12:00:55 2003
+++ if_vlan.c	Wed Aug 20 19:09:26 2003
@@ -740,6 +740,7 @@
 				continue;
 			}
 			*(u_int *)(mtag + 1) = ifv->ifv_tag;
+			m_tag_prepend(m, mtag);
 		} else {
 			/*
 			 * insert the tag ourselves

--==_Exmh_7870554694000--