commit 2d96dce0c92b3931e71d555f0fd0774af9168352
parent 9bfab08e43c14e3b4ac01836c2203bdbadc77636
Author: Yersa Nordman <yersa@finwo.nl>
Date: Fri, 13 Oct 2023 23:02:51 +0200
Showing which iface sent to for handle_packet_bond
Diffstat:
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -43,6 +43,29 @@ void handle_packet_bond(struct pmlag_bond *bond) {
? NULL
: rt_find(bond->rt, rcvbuf);
+ if (iface) {
+ printf(
+ "Sending to iface %s for %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
+ iface->name,
+ rcvbuf[0],
+ rcvbuf[1],
+ rcvbuf[2],
+ rcvbuf[3],
+ rcvbuf[4],
+ rcvbuf[5],
+ );
+ } else {
+ printf(
+ "No iface for %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
+ rcvbuf[0],
+ rcvbuf[1],
+ rcvbuf[2],
+ rcvbuf[3],
+ rcvbuf[4],
+ rcvbuf[5],
+ );
+ }
+
// Broadcast on ALL interfaces if no rt entry OR broadcast packet
if (!iface) {
for( i = 0 ; i < bond->iface_count ; i++ ) {