azure-container-networking/netlink
tamilmani1989 0062d048af
fix: Remove NLM_F_EXCL flag from Netlink Delete call (#2150)
* fix: Remove unix.NLM_F_EXCL from Netlink Delete Route api call

unix.NLM_F_EXCL is not expected to set in netlink delete route calls. It's no-op in older kernel and didnt return error. From kernel 5.19+, new flag NLM_F_BULK was defined with same value and serves a purpose in delete route call. This changes breaks azure cni and netlink calls fails in 5.19 kernel and onwards.

The fix is to remove setting unix.NLM_F_EXCL in netlink delete route request.

* fix: Remove unix.NLM_F_EXCL from Netlink Delete Route api call

unix.NLM_F_EXCL is not expected to set in netlink delete route calls. It's no-op in older kernel and didnt return error. From kernel 5.19+, new flag NLM_F_BULK was defined with same value and serves a purpose in delete route call. This changes breaks azure cni and netlink calls fails in 5.19 kernel and onwards.

The fix is to remove setting unix.NLM_F_EXCL in netlink delete route request.

* Add unit tests for netlink add/delete address and add/delete routes
2023-08-18 09:14:20 -07:00
..
ip_linux.go fix: Remove NLM_F_EXCL flag from Netlink Delete call (#2150) 2023-08-18 09:14:20 -07:00
link_linux.go fix: Adding a constant hardware address to the veth (#1524) 2022-08-17 10:53:57 -07:00
mocknetlink.go Set constant mac for host veth interface in transparent vlan mode (#1906) 2023-04-17 14:26:00 -07:00
netlink.go Netlink package interfacing and adding a fake (#996) (#1025) 2021-09-20 13:57:12 -05:00
netlink_linux.go Netlink package interfacing and adding a fake (#996) (#1025) 2021-09-20 13:57:12 -05:00
netlink_test.go fix: Remove NLM_F_EXCL flag from Netlink Delete call (#2150) 2023-08-18 09:14:20 -07:00
netlink_windows.go fix: Adding a constant hardware address to the veth (#1524) 2022-08-17 10:53:57 -07:00
netlinkinterface.go fix: Adding a constant hardware address to the veth (#1524) 2022-08-17 10:53:57 -07:00
protocol.go Adding/Remove static arp entry for pod IP in VM (#273) 2018-12-11 11:18:11 -08:00
socket.go fix: Adding a constant hardware address to the veth (#1524) 2022-08-17 10:53:57 -07:00