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

net/linux: use NETLINK_SOCK_DIAG #1660

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

Commits on Jun 8, 2024

  1. net/linux: use NETLINK_SOCK_DIAG

    To retrieve network information use NETLINK_SOCK_DIAG instead of walking
    /proc/<PID> and parsing files.
    Consequently this reduces the number of syscalls, as walking /proc/<PID> and
    opening, reading and closing files is no longer required. But it also reduces
    the memory footprint as reading files into memory for processing is no longer
    required.
    
    Related issues:
    - shirou#695
    - shirou#784
    
    Supersedes shirou#809
    
    Signed-off-by: Florian Lehner <[email protected]>
    florianl committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    15f5f5a View commit details
    Browse the repository at this point in the history
  2. fixup: drop unused parameter

    Signed-off-by: Florian Lehner <[email protected]>
    florianl committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    436e078 View commit details
    Browse the repository at this point in the history
  3. fixup: apply gci

    Signed-off-by: Florian Lehner <[email protected]>
    florianl committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    3824db3 View commit details
    Browse the repository at this point in the history