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

xsos --ip returns incorrect state for loopback adapter in SOS Report #271

Open
SenseiC opened this issue Feb 11, 2022 · 1 comment
Open

Comments

@SenseiC
Copy link

SenseiC commented Feb 11, 2022

Not 100% certain this constitutes an issue or not... I couldn't determine exactly how the code gets the status of the loopback device, but as an example...

From the SOS Report (sos_commands/networking/ip_-d_address) you can see that the loopback adapter got reported as having a state of UNKNOWN:

$ head -n4 sos_commands/networking/ip_-d_address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever

but xsos reports a state of "up":

$ xsos --ip . | head -n4
IP4
  Interface  Master IF  MAC Address        MTU     State  IPv4 Address
  =========  =========  =================  ======  =====  ==================
  lo         -          -                  65536   up     127.0.0.1/8

SenseiC

@superjamie
Copy link
Collaborator

Thanks for the report. I fixed the code formatting and will try look into this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants