NetworkManager/src/libnm-lldp
Fernando Fernandez Mancera 9ac1d6e22b libnm-lldp: use ETH_P_ALL instead of NM_ETHERTYPE_LLDP for the socket
When creating the socket for listening to LLDP frames we are setting
NM_ETHERTYPE_LLDP (0x88cc) as protocol. In most of the cases, that is
correct but when the interface is attached as a port to a OVS bridge,
kernel is not matching the protocol correctly. The reason might be that
some metadata is added to the packet, but we are not completely sure
about it.

Instead, we should use ETH_P_ALL to match all the protocols. Later, we
have a eBPF filter to drop the packet by multicast MAC address or
protocol. This is how lldpd is doing it for example.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1903
2024-04-02 15:59:43 +02:00
..
meson.build lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-neighbor.c core: workaround "-Wnonnull-compare" warning in nm_lldp_neighbor_tlv_get_oui() 2024-02-09 08:27:41 +00:00
nm-lldp-neighbor.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-network.c libnm-lldp: use ETH_P_ALL instead of NM_ETHERTYPE_LLDP for the socket 2024-04-02 15:59:43 +02:00
nm-lldp-network.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-rx-internal.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-rx.c all: ensure signendess for arguments of NM_{MIN,MAX,CLAMP}() macros matches 2023-08-07 09:24:36 +02:00
nm-lldp-rx.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00