degroote
9fe6472fc5
Add support for the command list scan in ifconfig (this command permits to scan
...
access point in the neighbourhood).
Complete list of channel attributes and list of management information element
payload.
While here, use estrlcpy instead of strncpy.
From FreeBSD ifconfig and net80211
2007-12-16 13:49:21 +00:00
dyoung
d097d6a596
Let us adjust the 802.11 fragmentation threshold with ifconfig ath0
...
frag 256, for example.
2007-01-09 09:19:02 +00:00
yamt
809ec70bcf
implement ipv6 TSO.
...
partly from Matthias Scheler. tested by him.
2006-11-23 19:41:58 +00:00
dyoung
a25eaede91
Add a source-address selection policy mechanism to the kernel.
...
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses. Make ifconfig(8) set/display preference
numbers.
To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.
Miscellaneous changes in support of source-address selection:
1 Factor out some common code, producing rt_replace_ifa().
2 Abbreviate a for-loop with TAILQ_FOREACH().
3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
IN_PRIVATE(), that are true for link-local unicast
(169.254/16) and RFC1918 private addresses, respectively.
Add the predicate IN_ANY_LOCAL() that is true for link-local
unicast and multicast.
4 Add IPv4-specific interface attach/detach routines,
in_domifattach and in_domifdetach, which build #ifdef
IPSELSRC.
See in_getifa(9) for a more thorough description of source-address
selection policy.
2006-11-13 05:13:38 +00:00
christos
00ab1df137
- get rid of p_cfunc2
...
- add missing initializers
2006-10-16 02:52:43 +00:00
christos
2a1607d040
Programs that use efun.
2006-08-26 18:14:28 +00:00
matt
cca9bcea2e
Nuke a leftover XNS fragment.
2006-08-26 16:59:27 +00:00
matt
bb735e0ef9
Remove XNS support.
2006-08-26 16:20:20 +00:00
martin
50edcae7de
Trying the old "ifconfig <name> x.x.x.x down" issue again:
...
if the kernel does not set the interface up after we set an address,
do it explicitly, unless we (previously) set it down on user request.
This will allow the network drivers to be "fixed" while keeping visible
behaviour the same. Part of fixing PR 30694.
2006-07-13 14:02:03 +00:00
elad
d10cf99230
fix incorrect usage of strncpy() to (an internal implementation of)
...
estrlcpy().
okay christos
2006-06-16 23:48:35 +00:00
liamjfoy
4876c304b1
Integrate Common Address Redundancy Procotol (CARP) from OpenBSD
...
'pseudo-device carp'
Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@
2006-05-18 09:05:49 +00:00
rpaulo
227effc121
Add two new options from FreeBSD:
...
hidessid | -hidessid: SSID broadcast control
apbridge | -apbridge: how to pass packets between wifi clients
2006-04-29 21:32:29 +00:00
rpaulo
630caafc65
Added a new ifconfig flag, -h, allowing, in conjunction with -v, the display
...
of interface I/O bytes in human-format.
Reviewed by Christos Zoulas and Jason Thorpe.
2005-08-11 20:56:05 +00:00
yamt
330cc0a11e
split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.
2005-05-02 15:34:31 +00:00
thorpej
be8f682caf
IFFBITS and IFCAPBITS are now defined in <net/if.h>
2005-03-20 02:51:47 +00:00
thorpej
e00adb14b6
Split the IPv4 support into its own file.
2005-03-20 02:43:50 +00:00
thorpej
20f1388354
Move a comment.
2005-03-20 01:10:51 +00:00
thorpej
26dbe00d59
Split IPv6 support out into its own file.
2005-03-20 01:09:16 +00:00
thorpej
4fd9a96b1d
Split OSI support off into its own file.
2005-03-20 00:02:58 +00:00
thorpej
e7c8ca2ae5
Split XNS support into its own file.
2005-03-19 23:46:03 +00:00
thorpej
acdfacb1c3
Split off AppleTalk support into its own file.
2005-03-19 23:32:55 +00:00
thorpej
c6266968d5
const'ify afswtch
2005-03-19 23:16:55 +00:00
thorpej
1a5470cfdd
Split off 802.11 interface handling into its own file.
2005-03-19 23:13:42 +00:00
thorpej
519737e8ff
Don't hare-code inet/inet6 in tunnel_status(), lookup the address family
...
name instead.
2005-03-19 22:57:06 +00:00
thorpej
e6d38785ff
Split tunnel support into its own file.
2005-03-19 17:32:26 +00:00
thorpej
1054956d85
Move extern decls to extern.h
2005-03-19 03:56:06 +00:00
thorpej
0fded9bea2
Split VLAN configuration bits out into a separate file.
2005-03-19 03:53:55 +00:00
yamt
712c784484
update usage() for agr(4). pointed by Thomas Klausner.
2005-03-18 14:30:08 +00:00
yamt
5240b887db
add agr(4), a pseudo network device driver for link aggregation.
2005-03-18 11:11:50 +00:00
matt
57537259e8
Add ifconfig support for TCP Segment Offload
2005-03-06 00:13:36 +00:00
perry
5c9f370160
remove obsolete "register" declarations.
2005-02-06 06:13:47 +00:00
xtraeme
843cdb1983
Fix the cast for the getnameinfo() call in the status() function, which
...
should be "const struct" not "struct" for sockaddr.
WARNS=3
2005-01-20 16:16:10 +00:00
dyoung
9f2359d605
ifconfig -v prints 802.11 statistics. ifconfig -v prints and zeroes
...
802.11 statistics.
2004-12-20 23:04:55 +00:00
itojun
b95181fc9b
NI_WITHSCOPEID was not picked up by IETF standardization process.
2004-11-16 05:59:32 +00:00
dsl
9d819ed558
Functions for converting media types to/from text are now in libutil.
2004-11-11 20:37:18 +00:00
dsl
57030cf931
More isdigit() calls that need (unsigned char) cast
2004-10-28 20:10:29 +00:00
dsl
eef12d4ee1
De __P
2004-10-11 20:13:37 +00:00
dsl
edfa669ef6
Remove all the caddr_t - mainly casts of the 3rd arg to ioctl()
2004-10-11 17:13:55 +00:00
yamt
230c4c9c74
err -> errx where appropriate.
2004-07-27 14:25:19 +00:00
mycroft
1e7044a4ca
The change in revision 1.38 (in 1997!) was wrong. If we don't want the kernel
...
to automatically bring up interfaces, then we should move that code into
ifconfig(8) and out of the kernel, not cycle the interface up and down. Fixes
PR 9400 -- ifconfig(8) was not working as documented.
2004-07-06 23:26:31 +00:00
perry
be009ae585
Very minimal changes to make "ssid" and "nwid" aliases, and make the
...
ssid print out as "ssid", not "nwid".
XXX Really, someone should go through and change around all the
variable names etc. to ssid, but not today.
2004-03-01 00:11:33 +00:00
itojun
566986e38d
check strlcpy error. idea from Ryan McBride
2004-02-27 21:36:17 +00:00
dyoung
abda32ca8b
Add 'mode' option to change PHY media for 802.11 devices. Also,
...
display PHY mode. E.g., run an 802.11a (5GHz, 54Mbps max) access
point:
> ifconfig ath0 nwid my_access_point mode 11a mediaopt hostap
> ifconfig -m ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
nwid my_access_point
powersave off
bssid 00:05:5d:84:cc:6e chan 3
address: 00:05:5d:84:cc:6e
media: IEEE802.11 autoselect mode 11a hostap
status: active
supported IEEE802.11 media:
media autoselect
media autoselect mediaopt adhoc
media autoselect mediaopt hostap
media autoselect mediaopt monitor
media autoselect mode 11a
media autoselect mode 11a mediaopt adhoc
media autoselect mode 11a mediaopt hostap
media autoselect mode 11a mediaopt monitor
*snip snip*
2003-10-13 08:27:35 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
christos
dffc5f5133
PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6
2003-06-11 19:51:31 +00:00
itojun
fe09a0efcb
use strlcpy
2003-05-17 23:03:28 +00:00
lukem
3b7c75cfba
Change -b from skipping POINTTOPOINT|LOOPBACK to skipping ! BROADCAST.
...
Fixes my [bin/21604]
2003-05-17 00:48:13 +00:00
perry
d229e19ca4
Add an option (-z) like -v except that it clears the input/output
...
stats after printing them.
(Basically this just calls SIOCZIFDATA instead of SIOCGIFDATA).
Submitted by Jean-Edouard BABIN in PR bin/21078
However, he suggested using -c, and cgd (reasonably) noted that -z for
"zero" was probably more reasonable.
I've also changed the code very slightly.
2003-04-12 01:07:43 +00:00
onoe
4b4c894d3f
Hide bssid/chan for 802.11 if not specified nor not associated.
...
Allow "-chan" to allow any channel to associate, it doesn't affect
create channel for IBSS/AP mode.
2002-09-30 05:38:13 +00:00
thorpej
c82ad7ea91
Add missing newline.
2002-09-23 00:10:28 +00:00