From nobody Thu Feb 03 13:40:21 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D9989196F59D for ; Thu, 3 Feb 2022 13:40:24 +0000 (UTC) (envelope-from franco@opnsense.org) Received: from mail.opnsense.org (mail.opnsense.org [81.171.24.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JqKYM6Z3wz4dry for ; Thu, 3 Feb 2022 13:40:23 +0000 (UTC) (envelope-from franco@opnsense.org) Received: from localhost (mail.opnsense.org [127.0.0.1]) by mail.opnsense.org (Postfix) with ESMTP id B45F1153335 for ; Thu, 3 Feb 2022 14:40:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.opnsense.org Received: from mail.opnsense.org ([127.0.0.1]) by localhost (mail.opnsense.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UrkqnpxZurjK for ; Thu, 3 Feb 2022 14:40:22 +0100 (CET) From: Franco Fichtner DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=opnsense.org; s=dkim; t=1643895622; bh=rEwKh0OjtLu/unSyv1mmTlwCqWA1MIVZXKTwoxISzN8=; h=From:Subject:Date:To:From; b=VQ0t4YIp8lnLQb+744nWcHqPN0LMAgfd4wxIuguEmT/aC5XWHk38ORePlGuXn/+MA JSiJKNCXHz/o5QqSvxKZ6SMqejZ+i4gfghTgYHHjCuP8Mj+ybf3QPtfIj0U5yxi7eh 9M311uF1PCmhsbEpLQcDWva4bStEDiAnhqp2jlF0= Content-Type: multipart/alternative; boundary="Apple-Mail=_69306099-D6D7-4653-B9E7-9CEE2578B585" List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: dhclient VLAN 0 decapsulation Message-Id: Date: Thu, 3 Feb 2022 14:40:21 +0100 To: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 4JqKYM6Z3wz4dry X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=opnsense.org header.s=dkim header.b=VQ0t4YIp; dmarc=pass (policy=quarantine) header.from=opnsense.org; spf=pass (mx1.freebsd.org: domain of franco@opnsense.org designates 81.171.24.236 as permitted sender) smtp.mailfrom=franco@opnsense.org X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[opnsense.org:s=dkim]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[opnsense.org:+]; DMARC_POLICY_ALLOW(-0.50)[opnsense.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:60781, ipnet:81.171.0.0/19, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --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 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 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
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--