Hardware sets the default LACP partner information to 0 so this
commit follows. The collector delay is a more interesting
case. Hardware sets it to 32768 and Linux sets it to 0. The
collector delay relates to a part of the LACP protocol which we
don't implement so we follow Linux in this case.
pdu->collector_type = 3;
pdu->collector_len = 16;
- pdu->collector_delay = htons(UINT16_MAX);
+ pdu->collector_delay = htons(0);
}
/* Parses 'b' which represents a packet containing a LACP PDU. This function
static void
iface_set_lacp_defaulted(struct iface *iface)
{
- memset(&iface->lacp_partner, 0xff, sizeof iface->lacp_partner);
- iface->lacp_partner.state = 0;
+ memset(&iface->lacp_partner, 0, sizeof iface->lacp_partner);
iface->lacp_status = LACP_STATUS_DEFAULTED;
iface->lacp_tx = 0;