elad
976bf6cfdd
Multiple inclusion protection, as suggested by christos@ on tech-kern@
...
few days ago.
2005-12-10 23:21:38 +00:00
dsl
de3f63a902
Add prototypes for functions that convert media to/from strings.
...
In libutil/if_media.c (moved from ifconfig.c so that they can be shared
in crunched binaries)
2004-11-11 20:34:30 +00:00
dsl
43dde40d82
Put spaces either side of '|' for clarity ('|' looks too much like 'I' or 'l')
2004-10-16 11:11:04 +00:00
thorpej
15921b5f23
De-__P'ify.
2004-04-09 20:44:57 +00:00
thorpej
13357b24dd
Add flow control-related media bits / descriptions.
...
From HITOSHI Osada.
2004-04-09 20:30:28 +00:00
keihan
2ece851d2e
Add 10GBASE-LR to IFM_10G_LR.
2004-03-10 14:42:10 +00:00
ragge
9a3ec25f87
Add media type 10GbaseLR. Change ifmb_baudrate and ifmedia_baudrate()
...
to u_quad_t instead of int (common speed today exceeds 2Gbit).
2004-02-19 11:58:30 +00:00
dyoung
dd813020b9
Add constants and strings for 802.11 radios with OFDM PHY (802.11a,
...
802.11g).
Add constants and strings for multi-mode devices (a/b/g).
From FreeBSD/Sam Leffler.
2003-10-13 05:06:44 +00:00
itojun
91b11e1eba
prototype must not have variable name
2003-07-08 07:13:50 +00:00
bjh21
c4987984da
Accept standard IEEE 802.3 names for Ethernet medium types.
...
Suggested by Christos, IIRC.
2003-04-23 23:16:43 +00:00
dyoung
595c6d88b2
Add support for Prism monitor mode. From Kevin Lahey
...
<kml@patheticgeek.net>.
This patch does NOT add monitor mode support for the Lucent radios.
awi(4) was only modified for compatibility with the new mediaopt.
It does NOT support monitor mode.
Tested by Kevin, Daniel Carosone, and I.
2003-02-25 01:57:35 +00:00
thorpej
f5c6a07c43
Fix more signed/unsigned comparison warnings.
2002-11-07 08:00:47 +00:00
thorpej
079b24a323
Make ifm_data unsigned.
2002-11-07 07:53:37 +00:00
thorpej
facf465586
Make media and mask unsigned.
2002-11-07 07:42:24 +00:00
onoe
23ab1acf02
Change ifmb_baudrate for IFM_IEEE80211_DS5: 5Mbps -> 5.5Mbps
2002-09-27 05:27:20 +00:00
onoe
63a1f2ed02
Delete IFM_IEEE80211_IBSS [ibss] and IFM_IEEE80211_IBSSMASTER [ibss-master]
...
from media options, since IEEE80211_ADHOC [adhoc] is already defined for
IBSS. Instead, [ibss] is assigned as an alias for IEEE80211_ADHOC.
2002-08-21 03:22:04 +00:00
thorpej
0eee4f1a69
Add "hostap", "ibss", and "ibss-master" 802.11 media options.
...
From OpenBSD.
2002-08-10 23:21:58 +00:00
kleink
e2d6ca2037
Rename an IFM_1000_TX occurrence missed in previous.
2001-06-30 21:23:39 +00:00
bjh21
8d829065a6
IFM_1000_TX -> IFM_1000_T, as (breifly) discussed on tech-net.
2001-06-30 17:53:58 +00:00
thorpej
a6e732946b
Add an Ethernet option bit for master mode (for 1000baseTX, the link
...
master provides the clock -- this is normally the switch, but if you
are doing back-to-back NICs, you need to tell one side to be the master).
2001-05-31 16:30:04 +00:00
thorpej
877704d33e
Add ifmedia_baudrate(), which returns a value suitable for ifi_baudrate
...
given a media word, or 0 for unknown.
2000-03-06 20:50:29 +00:00
sommerfeld
a00eb27e1a
More 802.11 subtypes: there's also 1MB/s DS
...
(the BayStack 660 firmware claims to support it).
2000-02-17 21:53:16 +00:00
thorpej
d87b838524
Fix TMASK to use all 5 lower bits of the media word, and add HomePNA 1.0.
2000-02-16 18:03:14 +00:00
thorpej
3302e4f5a2
Add a way to delete all media for a specified instance.
2000-01-26 21:58:17 +00:00
thorpej
52ee0b9f98
IFM_1000_FX -> IFM_1000_SX, like it's supposed to be, and add a few
...
more gigabit Ethernet tyes from FreeBSD.
2000-01-25 20:18:52 +00:00
thorpej
fe58a40561
Define some convenience information and tables related to ifmedia status
...
bits for ifconfig(8).
2000-01-25 00:58:59 +00:00
augustss
6d0075dcc2
Fix a typo.
2000-01-24 01:20:21 +00:00
chopps
84d74cfd6d
add 802.11 media types
2000-01-23 23:49:48 +00:00
thorpej
e19c356e76
Make the ifmedia_entry list a TAILQ. This is pretty much for cosmetics
...
(media added to tail, so that when e.g. the list is run to print out
what media exist, they appear in-order).
1999-11-03 23:06:35 +00:00
thorpej
98109043a9
Expose the ifmedia_match() function.
1999-10-27 17:59:24 +00:00
thorpej
86f87d7c5f
Add a new shared media option, IFM_FLOW, used to enable link-level
...
flow control. IEEE 802.3x is in mind, but this could be generally
useful for different types of media.
1999-03-23 21:46:47 +00:00
thorpej
be4ce8c3f4
Add "10baseT-FDX" and "100baseTX-FDX" aliases to the end of the subtype
...
table. These are actually subtype+option combos, but these are the
strings displayed by the MII code to indicate 10Mbps full-duplex and
100Mbps full-duplex respectively, and it's Nice that ifconfig(8) can
grok them.
1998-11-02 22:10:26 +00:00
thorpej
798cb235bc
Oops, I forgot aliases for some old names (10baseT/UTP, 10base2/BNC,
...
and 10base5/AUI).
1998-08-12 23:23:29 +00:00
thorpej
f996a2e194
Define IFM_INST_MAX, the largest possible "instance" value.
1998-08-08 22:12:30 +00:00
thorpej
ddb9746a51
Define the minimum and maximum "network type" values. These values are
...
incremented by the minimum to interate through them.
1998-08-06 19:16:37 +00:00
thorpej
dd588c0660
Add a macro to create a media word from type, subtype, options, and instance.
1998-08-06 02:38:19 +00:00
thorpej
b04ded7264
Completely rewrite the way media descriptions are represented. The same
...
data structure is used, but a much saner matching mechanism is used, one
which allows greater ease in adding new types.
1998-08-06 02:19:34 +00:00
thorpej
1b58f59205
Add IFM_10_FL - 10baseFL (fiber)
1998-08-03 12:42:26 +00:00
jtc
7cea5e6bbe
Fix tipo
1998-01-30 08:37:41 +00:00
thorpej
9bba708a7a
Add 1000baseFX and 10baseT/STP Ethernet media types.
1998-01-30 01:24:40 +00:00
thorpej
fecae4de60
Back out the previous change (add IFM_10_EXT) after some dicussion
...
w/ BSDI and Matt Thomas.
1997-03-26 01:19:27 +00:00
thorpej
6adc9b82fd
Add the IFM_10_EXT ("external") ethernet subtype, to accomodate cards
...
that have the notion of an "external media port". Suggested by
Matt Thomas <matt@3am-software.com>.
1997-03-24 06:57:31 +00:00
thorpej
1b1c7ef868
BSD/OS-style network interface media selection, implemented by
...
Jonathan Stone and myself. Many thanks to Matt Thomas for providing
the information necessary to implement this interface, and for helping
to shake out the bugs.
1997-03-17 02:55:12 +00:00