summaryrefslogtreecommitdiff
path: root/sys/net/if_enc.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-23 11:37:30 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-23 11:37:30 +0000
commit10d5036c590dfcd39b88dee569d1a0bc0e5f3259 (patch)
tree96749bb77c7258aed2b501fb0c420c79513f84b5 /sys/net/if_enc.c
parent9fe6fad4fe28032c58a94b8bc3d8cf94e5171903 (diff)
Flag pseudo-interfaces as such in order to call add_net_randomness()
only once per packet. Fix a regression introduced when if_input() started to be called by every pseudo-driver. ok claudio@, dlg@
Diffstat (limited to 'sys/net/if_enc.c')
-rw-r--r--sys/net/if_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c
index 15e9a8a597a..1f749fc3a16 100644
--- a/sys/net/if_enc.c
+++ b/sys/net/if_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_enc.c,v 1.66 2017/01/20 00:51:56 mpi Exp $ */
+/* $OpenBSD: if_enc.c,v 1.67 2017/01/23 11:37:29 mpi Exp $ */
/*
* Copyright (c) 2010 Reyk Floeter <reyk@vantronix.net>
@@ -86,6 +86,7 @@ enc_clone_create(struct if_clone *ifc, int unit)
ifp = &sc->sc_if;
ifp->if_softc = sc;
ifp->if_type = IFT_ENC;
+ ifp->if_xflags = IFXF_CLONED;
ifp->if_start = enc_start;
ifp->if_output = enc_output;
ifp->if_ioctl = enc_ioctl;