mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
network/vxcan: refuse when peer and the main interface names are equivalent
This commit is contained in:
parent
2d5f58cf41
commit
971c0ce85c
@ -38,6 +38,10 @@ static int netdev_vxcan_verify(NetDev *netdev, const char *filename) {
|
||||
return log_netdev_warning_errno(netdev, SYNTHETIC_ERRNO(EINVAL),
|
||||
"VxCan NetDev without peer name configured in %s. Ignoring", filename);
|
||||
|
||||
if (streq(v->ifname_peer, netdev->ifname))
|
||||
return log_netdev_warning_errno(netdev, SYNTHETIC_ERRNO(EINVAL),
|
||||
"VxCan peer name cannot be the same as the main interface name.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user