tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Fwd: 10-BETA : some network issues
On Sun, Jan 01, 2023 at 04:56:12PM +0100, BERTRAND Joël wrote:
> > Looks like it, while lagg registers as an ethernet device (which
> > adds a packet tap), it doesn't emit packages itself, but relays
> > it only to the output routine of a member interface. It needs to
> > invoke the tap routine itself, so that tcpdump (and other packet
> > filters like npf) can see the packets.
>
> I have installed a VM with -10 to test tap device.
Something like this might help (sorry, can't test now):
Index: sys/net/lagg/if_lagg.c
===================================================================
RCS file: /cvsroot/src/sys/net/lagg/if_lagg.c,v
retrieving revision 1.48
diff -p -u -r1.48 if_lagg.c
--- sys/net/lagg/if_lagg.c 26 Jun 2022 17:55:24 -0000 1.48
+++ sys/net/lagg/if_lagg.c 1 Jan 2023 18:06:38 -0000
@@ -1051,6 +1051,8 @@ lagg_output(struct lagg_softc *sc, struc
len = m->m_pkthdr.len;
mflags = m->m_flags;
+ bpf_mtap(ifp, m, BPF_D_OUT);
+
error = lagg_port_xmit(lp, m);
if (error) {
/* mbuf is already freed */
Greetings,
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index