GNOME Bugzilla – Bug 757005
[review] bg/lldp-test-bgo757005: add test for LLDP listener
Last modified: 2015-11-10 13:32:17 UTC
Add a test for the LLDP listener to ensure that things don't accidentally break when we import new code from systemd upstream. Unfortunately root privileges are required in order to create a tap interface on which frames can be received by the listener. Please review.
LGTM
Is it not possible to create the tap device as non-root in a separate namespace? You could reuse platforms common code (like the route-manager test does). Otherwise, LGTM
(In reply to Thomas Haller from comment #2) > Is it not possible to create the tap device as non-root in a separate > namespace? > You could reuse platforms common code (like the route-manager test does). Cool, I didn't know this was possible. Pushed a fixup.
Nitpicks: missing space before "*/" 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03, /* Destination MAC*/ 0x06, 0x02, 0x00, 0x78, /* TTL: 120 seconds*/ Otherwise LGTM.
(In reply to Jiri Klimes from comment #4) > Nitpicks: > missing space before "*/" Fixed and merged: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=33d626b2958427b99ae7c92d712e2d15a73a05d5