Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
Libnl has some issues with virtual devices and rtnl_link_change; therefore a socket is created artificially( int fd = ::socket(AF_INET, SOCK_STREAM, 0);)and ioctl is used to set the flags/ MAC address/ MTU.
We should investigate if this socket type matters.
If yes, it can be set to AF_UNSPEC or the socket creation should be done depending on the family type of the link(eg: use rtnl_link_get_family/nl_addr_ger_family).