commit 782a15ef4e95fbab9debf572f0180ff5a294abef
parent e278a3d02d75a392285baf06100469387af02586
Author: Yersa Nordman <yersa@finwo.nl>
Date: Mon, 20 Mar 2023 22:01:06 +0100
Added debug print to detect if rt detects iface
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/task/bond.c b/src/task/bond.c
@@ -35,6 +35,10 @@ int task_bond_onpacket(struct pmlag_bond *bond, unsigned char *buffer, size_t bu
pmlag_iface_llist *iface_entry;
size_t send_len;
+#ifdef DEBUG
+ printf(" got iface? %s\n", iface ? "yes" : "no");
+#endif
+
// Broadcast on ALL interfaces if no rt entry OR broadcast packet
if ((!iface) || (memcmp(buffer, "\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ALEN) == 0)) {
iface_entry = bond->interfaces;