summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2014-01-31 08:58:32 +0000
committerbrad <brad@openbsd.org>2014-01-31 08:58:32 +0000
commit5bb31ffa379a863e29a248a8fe8696055e13f794 (patch)
treefe0f1eeae73b2eea7b834dae44c85db35d4676c1
parentRewrite the receive filter handling code, reinstate the hash filter and cleanup (diff)
downloadwireguard-openbsd-5bb31ffa379a863e29a248a8fe8696055e13f794.tar.xz
wireguard-openbsd-5bb31ffa379a863e29a248a8fe8696055e13f794.zip
tl(4) already allowed for reception of frames up to MCLBYTES in size so
set IFCAP_VLAN_MTU to allow for VLAN sized frames.
-rw-r--r--sys/dev/pci/if_tl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c
index 7148fb2b7e4..5e474793dab 100644
--- a/sys/dev/pci/if_tl.c
+++ b/sys/dev/pci/if_tl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tl.c,v 1.58 2014/01/31 06:05:40 brad Exp $ */
+/* $OpenBSD: if_tl.c,v 1.59 2014/01/31 08:58:32 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1987,6 +1987,8 @@ tl_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_READY(&ifp->if_snd);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
/*
* Reset adapter (again).
*/