mirror_lxc/src
Alexander Mikhalitsyn 5cde898f45
lxc_user_nic: fix get_mtu() error handling
get_mtu() returns int, but "mtu" variable has unsigned int type.
It leads to logical error in error handling, which can end up
with strange -EINVAL error in lxc_veth_create(), cause (mtu > 0)
condition is met, but negative "mtu" value is too large when set
as mtu for network device.

Issue #4232

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
2023-01-06 17:15:44 -05:00
..
include src: Don't use ifdef/defined for config.h 2022-06-08 00:47:05 -04:00
lxc lxc_user_nic: fix get_mtu() error handling 2023-01-06 17:15:44 -05:00
tests tests: lxc-test-reboot: Fix build on ia64 2022-12-16 11:36:15 -05:00