summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2010-04-02 05:12:46 +0000
committerqingli <qingli@FreeBSD.org>2010-04-02 05:12:46 +0000
commit103baea9240b5ccaea44e22c2809b2ed736bf095 (patch)
tree102d28b4f95cd4193109d870d842c3002201eb37 /sbin
parent65f5ca51888f0f99a568861371923ce2679c5267 (diff)
downloadFreeBSD-src-103baea9240b5ccaea44e22c2809b2ed736bf095.zip
FreeBSD-src-103baea9240b5ccaea44e22c2809b2ed736bf095.tar.gz
MFC 205222
Verify interface up status using its link state only if the interface has such capability. The interface capability flag indicates whether such capability exists. This approach is much more backward compatible. Physical device driver changes will be part of another commit. Also updated the ifconfig utility to show the LINKSTATE capability if present. Reviewed by: rwatson, imp, juli
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 45c6d40..e46dcdb 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -865,7 +865,7 @@ unsetifdescr(const char *val, int value, int s, const struct afswtch *afp)
#define IFCAPBITS \
"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
-"\21VLAN_HWFILTER\23VLAN_HWTSO"
+"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE"
/*
* Print the status of the interface. If an address family was
OpenPOWER on IntegriCloud