summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2010-03-16 17:59:12 +0000
committerqingli <qingli@FreeBSD.org>2010-03-16 17:59:12 +0000
commit4ff4954e4e9b86c057c52b9d83cd9b7ba9517e0c (patch)
tree7561e70ebfe1fe869d105399b20f5295a570ccd0 /sbin/ifconfig/ifconfig.c
parent61b55f12a23899ec936af095b7b050085cf02e8d (diff)
downloadFreeBSD-src-4ff4954e4e9b86c057c52b9d83cd9b7ba9517e0c.zip
FreeBSD-src-4ff4954e4e9b86c057c52b9d83cd9b7ba9517e0c.tar.gz
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 MFC after: 3 days
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-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 aebcdc0..7af3306 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -881,7 +881,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