diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-23 11:37:30 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-23 11:37:30 +0000 |
commit | 10d5036c590dfcd39b88dee569d1a0bc0e5f3259 (patch) | |
tree | 96749bb77c7258aed2b501fb0c420c79513f84b5 /sys/net/if_pflog.c | |
parent | 9fe6fad4fe28032c58a94b8bc3d8cf94e5171903 (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_pflog.c')
-rw-r--r-- | sys/net/if_pflog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c index ec032eb7f81..1a38758bea1 100644 --- a/sys/net/if_pflog.c +++ b/sys/net/if_pflog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflog.c,v 1.76 2016/11/22 19:29:54 procter Exp $ */ +/* $OpenBSD: if_pflog.c,v 1.77 2017/01/23 11:37:29 mpi Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -150,6 +150,7 @@ pflog_clone_create(struct if_clone *ifc, int unit) ifp->if_ioctl = pflogioctl; ifp->if_output = pflogoutput; ifp->if_start = pflogstart; + ifp->if_xflags = IFXF_CLONED; ifp->if_type = IFT_PFLOG; IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); ifp->if_hdrlen = PFLOG_HDRLEN; |