Bug 79638 - [systemd-networkd] MACAddress based matching fails
Summary: [systemd-networkd] MACAddress based matching fails
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 14:33 UTC by Dave Reisner
Modified: 2014-06-05 13:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dave Reisner 2014-06-04 14:33:31 UTC
Commit 505f8da73 is responsible for downstream bug:

https://bugs.archlinux.org/task/40675

Since this commit, mac addresses are compared to an empty dev_mac in net_match_config, causing any MACAddress based matching rule to be ignored.

To reproduce the failure, use a .network file such as this:

[Match]
MACAddress=fe:ed:fa:ce:be:ef

[Network]
Address=10.0.3.1/24

Assuming a real MAC, the address will never be applied. Matching by other methods, such as interface name, still work as expected.
Comment 1 Dave Reisner 2014-06-04 16:48:52 UTC
Root cause is that nothing ever assigns the MAC address in link_new() or link_initialized() now that udev has been pushed out of the code path.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.