Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

rtnetlink: add a way to set netlink flags in requests #246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 6, 2022

  1. rtnl/neighs: add append method to af_bridge

    Bochev authored and little-dude committed Mar 6, 2022
    Configuration menu
    Copy the full SHA
    f3440d8 View commit details
    Browse the repository at this point in the history
  2. rtnetlink: add a way to set netlink flags in requests

    There has been several PRs to add helper methods to set the flags in
    the netlink header, so it seems that this is something we should
    provide systematically.
    
    This PR introduces three new types to manipulate netlink flags:
    
    - `NewFlags`: flags used for "set" and "add" requests
    - `DelFlags`: flags used to "del" requests
    - `GetFlags:` flags used for "get" requests
    
    Each request now has a `set_flags` method to force a certain set of
    flags. This may interfere with other builder methods for certain
    requests, or may simply render the request ineffective, so the
    documentation always warns users.
    little-dude committed Mar 6, 2022
    Configuration menu
    Copy the full SHA
    6a1ae03 View commit details
    Browse the repository at this point in the history