Page MenuHomeFreeBSD

netlink: improve interface handling
ClosedPublic

Authored by melifaro on Dec 10 2022, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 9:28 AM
Unknown Object (File)
Sun, Mar 22, 10:17 AM
Unknown Object (File)
Sat, Mar 21, 7:15 PM
Unknown Object (File)
Wed, Mar 18, 12:31 PM
Unknown Object (File)
Wed, Mar 18, 1:41 AM
Unknown Object (File)
Mon, Mar 16, 3:37 AM
Unknown Object (File)
Sun, Mar 15, 9:33 PM
Unknown Object (File)
Tue, Mar 10, 2:51 AM
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 Not Applicable
Unit
Tests Not Applicable

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.