diff options
author | 2017-01-23 11:37:29 +0000 | |
---|---|---|
committer | 2017-01-23 11:37:29 +0000 | |
commit | 99bf4b5f302a5fedb8d3e4f30e0812a8af18dd3c (patch) | |
tree | 869077de3a08ee04f710000a00256a89d8df9ca8 /sys/net/if_mpe.c | |
parent | Refactor a bit to make it look a bit more like the rde_update_update code. (diff) | |
download | wireguard-openbsd-99bf4b5f302a5fedb8d3e4f30e0812a8af18dd3c.tar.xz wireguard-openbsd-99bf4b5f302a5fedb8d3e4f30e0812a8af18dd3c.zip |
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_mpe.c')
-rw-r--r-- | sys/net/if_mpe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c index b16f395bcde..c7b38b3e6e4 100644 --- a/sys/net/if_mpe.c +++ b/sys/net/if_mpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpe.c,v 1.56 2016/12/20 12:18:44 mpi Exp $ */ +/* $OpenBSD: if_mpe.c,v 1.57 2017/01/23 11:37:29 mpi Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -89,6 +89,7 @@ mpe_clone_create(struct if_clone *ifc, int unit) ifp = &mpeif->sc_if; snprintf(ifp->if_xname, sizeof ifp->if_xname, "mpe%d", unit); ifp->if_flags = IFF_POINTOPOINT; + ifp->if_xflags = IFXF_CLONED; ifp->if_softc = mpeif; ifp->if_mtu = MPE_MTU; ifp->if_ioctl = mpeioctl; |