Page MenuHomeFreeBSD

ether: centralize fake hwaddr generation
ClosedPublic

Authored by kevans on Mar 13 2019, 5:24 PM.

Details

Summary

We currently have two places with identical fake hwaddr generation -- if_vxlan and if_bridge. Lift it into if_ethersubr for reuse in other interfaces that may also need a fake addr.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kevans created this revision.Mar 13 2019, 5:24 PM
kristof accepted this revision.Mar 13 2019, 7:49 PM
kristof added a subscriber: kristof.

LGTM.

This revision is now accepted and ready to land.Mar 13 2019, 7:49 PM
bryanv accepted this revision.Mar 14 2019, 3:48 AM
philip accepted this revision.Mar 14 2019, 4:36 AM
This revision was automatically updated to reflect the committed changes.