mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
lacp: Require non-zero system ID.
It's a bug if LACP is configured with a system ID of zero. This patch assert fails in this case.
This commit is contained in:
@@ -224,6 +224,8 @@ lacp_destroy(struct lacp *lacp)
|
||||
void
|
||||
lacp_configure(struct lacp *lacp, const struct lacp_settings *s)
|
||||
{
|
||||
assert(!eth_addr_is_zero(s->id));
|
||||
|
||||
if (!lacp->name || strcmp(s->name, lacp->name)) {
|
||||
free(lacp->name);
|
||||
lacp->name = xstrdup(s->name);
|
||||
|
||||
Reference in New Issue
Block a user