ifmedia changes:
authorerj <erj@FreeBSD.org>
Tue, 7 Apr 2015 21:31:17 +0000 (21:31 +0000)
committererj <erj@FreeBSD.org>
Tue, 7 Apr 2015 21:31:17 +0000 (21:31 +0000)
commit363cef70bb6cd59b2fe8f695078eeb99ed91814c
tree1b63cfe3c66ab0529a46da0bf5f434d22404da4c
parent86419259e34a2d1a2e00743f754541ba82400172
ifmedia changes:

- Extend the number of available subtypes for Ethernet media by using some
of the ifmedia word's option bits to help denote subtypes. As a result, the
number of possible Ethernet subtype values increases from 31 to 511.

- Use some of those new values to define new media types.

- lacp_compose_key() recgonizes the new Ethernet media types added.
  (Change made as required by a comment in if_media.h)

- New ioctl, SIOGIFXMEDIA, to handle getting the new extended media types.
  SIOCGIFMEDIA is retained for backwards compatibility.

- Changes to ifconfig to allow it to handle the new extended media types.

Submitted by: mike@karels.net (original), hselasky
Reviewed by: jfvogel, gnn, hselasky
Approved by: jfvogel (mentor), gnn (mentor)
Differential Revision: http://reviews.freebsd.org/D1965
sbin/ifconfig/ifmedia.c
sys/net/ieee8023ad_lacp.c
sys/net/if.c
sys/net/if_media.c
sys/net/if_media.h
sys/sys/sockio.h