gnome-netstatus doesn't correctly list the interfaces on FreeBSD. This is because the ifreq structure length is not constant.
Created attachment 123615 [details, diff] List interfaces correctly
This appears to be fixed in 2.12.1. The code in question looks like this: p += sizeof (if_req->ifr_name) + NETSTATUS_SA_LEN (&if_req->ifr_addr); Does that work on fbsd?
(In reply to comment #2) > This appears to be fixed in 2.12.1. The code in question looks like this: > > p += sizeof (if_req->ifr_name) + NETSTATUS_SA_LEN (&if_req->ifr_addr); > > Does that work on fbsd? It does and it's the amd64 patch that just changes that line. Silly me for not reviewing our patches! My amd64 is currently toasted, so I don't know if we still need that or not.
Created attachment 125005 [details, diff] List interfaces correctly. OK, the issue is that Linux does not have sa_len, which is optional. If we don't have sa_len then we have to use the size of the ifreq struct and not the sockaddress struct added to the name length. This patch works correctly on Linux x86 + amd64 and FreeBSD x86
Fixed. Thanks, uber, and sorry for the delay. New daughter, and all that.
Congrats! And no worries :)