Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing args up to GenericNetlinkSocket constructor #1113

Merged
merged 1 commit into from
Jul 24, 2023

Commits on Jul 21, 2023

  1. Allow passing args up to GenericNetlinkSocket constructor

    Currently, most subclasses of GenericNetlinkSocket do not pass unused
    args up to GenericNetlinkSocket.__init__.
    
    One use case of this is to pass fileno= with an existing file descriptor
    that was opened in another process/network namespace.
    
    This patch fixes the following subclasses
    
      - EventSocket
      - NL80211
      - DevlinkSocket
      - L2tp
      - WireGuard
    
    by passing up *args and **kwargs.
    
    We also fix TaskStats by simply removing the __init__ method that just
    calls super.
    
    We did not need to fix MPTCP and NlEthtool as they don't overwrite
    __init__.
    kleinweby committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    5d53baa View commit details
    Browse the repository at this point in the history