Module Name: src Committed By: yamaguchi Date: Wed Nov 22 03:28:57 UTC 2023
Modified Files: src/sys/net/lagg: if_lagg.c Log Message: lagg(4): Fix missing pfil_run_hooks() and bpf_mtap() To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/net/lagg/if_lagg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/lagg/if_lagg.c diff -u src/sys/net/lagg/if_lagg.c:1.51 src/sys/net/lagg/if_lagg.c:1.52 --- src/sys/net/lagg/if_lagg.c:1.51 Wed Oct 18 06:37:08 2023 +++ src/sys/net/lagg/if_lagg.c Wed Nov 22 03:28:57 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: if_lagg.c,v 1.51 2023/10/18 06:37:08 yamaguchi Exp $ */ +/* $NetBSD: if_lagg.c,v 1.52 2023/11/22 03:28:57 yamaguchi Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <r...@openbsd.org> @@ -20,7 +20,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.51 2023/10/18 06:37:08 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.52 2023/11/22 03:28:57 yamaguchi Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1056,6 +1056,11 @@ lagg_output(struct lagg_softc *sc, struc len = m->m_pkthdr.len; mflags = m->m_flags; + error = pfil_run_hooks(ifp->if_pfil, &m, ifp, PFIL_OUT); + if (error != 0) + return; + bpf_mtap(ifp, m, BPF_D_OUT); + error = lagg_port_xmit(lp, m); if (error) { /* mbuf is already freed */