Page MenuHomeFreeBSD

netlink: improve interface handling
ClosedPublic

Authored by melifaro on Dec 10 2022, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 7:09 PM
Unknown Object (File)
Wed, Sep 9, 11:16 PM
Unknown Object (File)
Wed, Sep 9, 2:56 PM
Unknown Object (File)
Sun, Sep 6, 11:44 PM
Unknown Object (File)
Sun, Sep 6, 6:18 PM
Unknown Object (File)
Sun, Sep 6, 5:53 PM
Unknown Object (File)
Sat, Sep 5, 1:48 PM
Unknown Object (File)
Sat, Sep 5, 1:31 PM
Subscribers

Details

Summary
  • Separate interface creation from interface modification code
  • Support setting some interface attributes (ifdescr, mtu, up/down, promisc)
  • Improve interaction with the cloners requiring to parse/write custom interface attributes
  • Add bitmask-based way of checking if the attribute is present in the

message

  • Don't use multipart RTM_GETLINK replies when searching for the

specific interface names

  • Use ENODEV instead of ENOENT in case of failed RTM_GETLINK search
  • Add python netlink test helpers
  • Add first netlink interface tests

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Errors
Unit
No Test Coverage
Build Status
Buildable 48694
Build 45580: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Dec 14 2022, 7:53 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.