QinQ



Hi.

I was wondering about the possibility of adding support for QinQ
("Double tagged frames" / "Nested vlans"). Attached is a patch against
-STABLE to add this support. I have not tested this but was told it
should work.

Would it be possible to get this into CURRENT?

//Jon
--- if_vlan.c.orig 2006-10-17 14:24:18.000000000 +0700
+++ if_vlan.c 2007-09-14 14:00:44.000000000 +0700
@@ -327,7 +327,8 @@
/* Check for <etherif>.<vlan> style interface names. */
IFNET_RLOCK();
TAILQ_FOREACH(ifp, &ifnet, if_link) {
- if (ifp->if_type != IFT_ETHER)
+ if (ifp->if_type != IFT_ETHER &&
+ ifp->if_type != IFT_L2VLAN)
continue;
if (strncmp(ifp->if_xname, name, strlen(ifp->if_xname)) != 0)
continue;
@@ -672,6 +673,7 @@
mtag = NULL;
switch (ifp->if_type) {
case IFT_ETHER:
+ case IFT_L2VLAN:
if (m->m_len < sizeof(*evl) &&
(m = m_pullup(m, sizeof(*evl))) == NULL) {
if_printf(ifp, "cannot pullup VLAN header\n");
@@ -748,8 +750,9 @@

VLAN_LOCK_ASSERT();

- if (p->if_type != IFT_ETHER)
- return (EPROTONOSUPPORT);
+ if ((p->if_data.ifi_type != IFT_ETHER) &&
+ (p->if_data.ifi_type != IFT_L2VLAN))
+ return (EPROTONOSUPPORT);
if ((p->if_flags & VLAN_IFFLAGS) != VLAN_IFFLAGS)
return (EPROTONOSUPPORT);
if (ifv->ifv_p)
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: 2.6.23-rc8-mm2
    ... duplicate filename 'switch' can not be created ... 2000-2006 Netfilter Core Team ... # IPVS transport protocol load balancing support ... # Device Drivers ...
    (Linux-Kernel)
  • Re: mfi freebsd7
    ... according to the hardware list on the freebsd site there are only 3 cards supported by the mfi driver on freebsd7 and the LSI MegaSAS 1078 ain't one of them. ... and lsi appears to be a remote company in singapore which apparently doesn't like to support anything that has bsd in it's name. ... A RAID1 config shoudl suit a busy webserver well. ... To unsubscribe, send any mail to ...
    (freebsd-questions)
  • RE: Importing Fixed Width Files with Multiple Occurrences
    ... There is not a -x switch. ... I am trying to create a format file using the BCP utility. ... Microsoft Online Community Support ...
    (microsoft.public.sqlserver.dts)
  • Re: problems with fast user switching
    ... Windows XP Displays the Logon Dialog Box on a Black Screen ... For a complete list of Microsoft Product Support ... try to switch between users I get the Unlock Computer Dialog ...
    (microsoft.public.windowsxp.general)
  • Re: OCD programmers and backwards compatibility :-).
    ... /dev/sdx as part of the switch to libsata. ... the foobar package play nice with the rest of the release. ... and user-hostile changes for arbitrary reasons (and *all* filename changes are ... arbitrary) obviously don't support any existing large integrated systems. ...
    (Fedora)