summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvs <mvs@openbsd.org>2020-07-10 09:26:36 +0000
committermvs <mvs@openbsd.org>2020-07-10 09:26:36 +0000
commit990768e05f53d8996565633feb870230831d9fe9 (patch)
tree64f0b4c0b270e2cc980732da01d2c4efd80f10fa
parentadd back orientation quirk for Kogan Atlas 2-in-1 D300 (diff)
downloadwireguard-openbsd-990768e05f53d8996565633feb870230831d9fe9.tar.xz
wireguard-openbsd-990768e05f53d8996565633feb870230831d9fe9.zip
Set missing `IFXF_CLONED' flag to pppx(4) related `ifnet'. That should
prevent collecting entropy from pppx(4). ok mpi@
-rw-r--r--sys/net/if_pppx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 97670b2af91..876b614edc2 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.91 2020/07/06 20:37:51 mvs Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.92 2020/07/10 09:26:36 mvs Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -705,6 +705,7 @@ pppx_add_session(struct pppx_dev *pxd, struct pipex_session_req *req)
snprintf(ifp->if_xname, sizeof(ifp->if_xname), "%s%d", "pppx", unit);
ifp->if_mtu = req->pr_peer_mru; /* XXX */
ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST | IFF_UP;
+ ifp->if_xflags = IFXF_CLONED;
ifp->if_start = pppx_if_start;
ifp->if_output = pppx_if_output;
ifp->if_ioctl = pppx_if_ioctl;