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

Network socket info using objcore #63339

Merged
merged 2 commits into from Oct 24, 2023

Commits on Oct 23, 2023

  1. net: sockets: Add object core support to sockets

    Use the generic object core support to track network sockets
    and their statistics.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
    jukkar committed Oct 23, 2023
    Copy the full SHA
    40925bd View commit details
    Browse the repository at this point in the history
  2. net: shell: Add net-sockets command

    The new "net sockets" command will utilize the object core
    support to track and show information about BSD sockets that
    are created in the system. This command is able to show info
    for all network sockets (native, offloaded etc) in the system.
    
    Example of the output of the new command:
    
    uart:~$ net sockets
     Creator  Name       Flags  FD   Lifetime (ms) Sent  Received
    
        main  af_inet46  6ST    0    3260          819   498
        main  af_inet46  4ST    1    2110          469   142
        main  af_inet46  6DU    2    2110          9941  9941
        main  af_inet46  4DU    3    2110          1375  621
    
    4 active sockets found.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
    jukkar committed Oct 23, 2023
    Copy the full SHA
    f73258c View commit details
    Browse the repository at this point in the history