Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2022 14:40:21 +0100
From:      Franco Fichtner <franco@opnsense.org>
To:        freebsd-net@freebsd.org
Subject:   dhclient VLAN 0 decapsulation
Message-ID:  <B42110A7-B806-4144-8627-CE17C927F09A@opnsense.org>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_69306099-D6D7-4653-B9E7-9CEE2578B585
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi all,

We've been working on VLAN 0 decapsulation for dhclient last year and =
would like
a wider audience for the proposed change at =
https://reviews.freebsd.org/D31515 <https://reviews.freebsd.org/D31515>;

Basically what is being done is extend the BPF read filter program to =
parse an optional
VLAN tag if found and skipped over when the priority is zero. The write =
side does not
require any changes as the server can read the packet without the =
priority tag inserted.

The code has been deployed in two OPNsense releases and is being used =
out in
the wild as some ISPs send VLAN-0 wrapped responses to DHCP requests =
which
will not be seen by the client without said patch.

All functional and technical feedback is welcome.


Cheers,
Franco=

--Apple-Mail=_69306099-D6D7-4653-B9E7-9CEE2578B585
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi =
all,<div class=3D""><br class=3D""></div><div class=3D"">We've been =
working on VLAN 0 decapsulation for dhclient last year and would =
like</div><div class=3D"">a wider audience for the proposed change =
at&nbsp;<a href=3D"https://reviews.freebsd.org/D31515" =
class=3D"">https://reviews.freebsd.org/D31515</a></div><div class=3D""><br=
 class=3D""></div><div class=3D"">Basically what is being done is extend =
the BPF read filter program to parse an optional</div><div class=3D"">VLAN=
 tag if found and skipped over when the priority is zero. The write side =
does not</div><div class=3D"">require any changes as the server can read =
the packet without the priority tag inserted.</div><div class=3D""><br =
class=3D""></div><div class=3D"">The code has been deployed in two =
OPNsense releases and is being used out in</div><div class=3D"">the wild =
as some ISPs send VLAN-0 wrapped responses to DHCP requests =
which</div><div class=3D"">will not be seen by the client without said =
patch.</div><div class=3D""><br class=3D""></div><div class=3D"">All =
functional and technical feedback is welcome.</div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D"">Franco</div></body></html>=

--Apple-Mail=_69306099-D6D7-4653-B9E7-9CEE2578B585--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B42110A7-B806-4144-8627-CE17C927F09A>