Commit 49ea6c0f authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

lib/lldp: fix return value of lldp_poll

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 5884ef61
......@@ -159,7 +159,7 @@ static void lldp_init(void)
lldp_add_tlv(END_LLDP);
}
static void lldp_poll(void)
static int lldp_poll(void)
{
static int ticks;
......@@ -174,8 +174,10 @@ static void lldp_poll(void)
ptpd_netif_sendto(lldp_socket, &addr, lldpdu, LLDP_PKT_LEN, 0);
ticks = 0;
return 1;
} else {
ticks += 1;
return 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment