summaryrefslogtreecommitdiff
path: root/sys/net/if_loop.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_loop.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_loop.c')
-rw-r--r--sys/net/if_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 5d98bc380e2..c14d7e2d840 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_loop.c,v 1.78 2017/01/19 23:16:47 mpi Exp $ */
+/* $OpenBSD: if_loop.c,v 1.79 2017/01/23 11:37:29 mpi Exp $ */
/* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */
/*
@@ -174,6 +174,7 @@ loop_clone_create(struct if_clone *ifc, int unit)
ifp->if_softc = NULL;
ifp->if_mtu = LOMTU;
ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST;
+ ifp->if_xflags = IFXF_CLONED;
ifp->if_rtrequest = lortrequest;
ifp->if_ioctl = loioctl;
ifp->if_output = looutput;