Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   roy
Date:           Tue Sep 22 14:14:17 UTC 2020

Modified Files:
        src/sbin/ifconfig: ifconfig.c media.c media.h
        src/sys/net: if.h

Log Message:
ifconfig: Report link state even if media is not supported

For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data.
This in turn holds ifi_link_state which we can use to report
link status if the interface does not support media where it's normally
reported.

Based on OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.242 -r1.243 src/sbin/ifconfig/ifconfig.c
cvs rdiff -u -r1.9 -r1.10 src/sbin/ifconfig/media.c
cvs rdiff -u -r1.1 -r1.2 src/sbin/ifconfig/media.h
cvs rdiff -u -r1.284 -r1.285 src/sys/net/if.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index