christos
89e8cc1112
PR/50909: David Binderman: Optimize memset
2016-03-07 15:56:17 +00:00
christos
0598d5879b
PR/50909: David Binderman: Optimize memset
2016-03-07 12:48:53 +00:00
riastradh
ab04408fa8
Consistently use estrlcpy for ifr.ifr_name here, not strncpy.
2016-02-29 16:23:25 +00:00
roy
74efc0b2e3
-W seconds will wait for the detached flag to clear on addresses on
...
interfaces marked up to allow time for the carrier to appear on the
interface.
This does not extend the -w option duration.
2016-01-07 11:32:21 +00:00
ozaki-r
e32e871503
Don't divide flags output
...
If there are many enabled flags, ifconfig divides flags output into
multiple formatted strings due to snprintb_m, e.g.,
wm0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX>wm0: flags=8b43<MULTICAST> mtu 1500
This behavior is probably unexpected. The change always outputs enabled
flags at once like this:
wm0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
2015-07-29 07:42:27 +00:00
ozaki-r
44b264d7a7
Fix rump.ifconfig shows host's interface names in link local addresses
2015-05-19 08:14:38 +00:00
roy
e0cc834e99
ioctl -> prog_ioctl as pointed out by pooka@
2015-05-12 14:05:29 +00:00
roy
dbb6db0ed0
Report IN_IFF_TENTATIVE and friends.
...
Wait for IN_IFF_TENTATIVE to be removed with the -w flag.
2015-05-02 14:43:51 +00:00
christos
d5a931670f
remove 80211 stats if small.
2015-04-28 15:14:57 +00:00
roy
a7a37fb042
Move the INET6 specific code for wait_dad_exec() into af_inet6
...
by using a new afswtch hook af_addr_tentative.
2015-04-22 17:42:22 +00:00
roy
9fbc750691
Display the IPv6 address flags autoconf and temporary
2015-01-20 22:13:19 +00:00
roy
38d2e3f021
Remove the ability for userland to toggle IN6_IFF_TENTATIVE.
...
Preserve IN6_IFF_TENTATIVE when updating address flags.
2014-10-20 14:50:09 +00:00
ozaki-r
75f57c494b
Write about -vlanif in ifconfig.8
...
PR 49114
2014-09-15 06:48:05 +00:00
ozaki-r
adf2c730e5
Add -vlanif to the help message of ifconfig
...
PR 49114
2014-09-15 06:46:04 +00:00
martin
58001a8b3d
Initialize timespec "end" for the benefit of some gcc versions getting
...
"may be used uninitialized" warnings wrong.
2014-09-12 08:54:26 +00:00
roy
c6314d6139
Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
...
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.
As discussed on tech-net@
2014-09-11 13:10:03 +00:00
matt
5a355fa389
Rename link to link_pkw to avoid shadowing the link syscall.
2014-01-19 22:31:13 +00:00
christos
6a0886ad81
perror is obsolete, use warn and add missing paren.
2014-01-08 01:56:20 +00:00
degroote
f2475e079d
Before scanning, check if the card is up. If it is not the case, exit
...
with some useful error message. Add some note about this fact in the man
page too.
2014-01-07 20:25:24 +00:00
kefren
88644df51c
Bring tunnel src_addr and dst_addr on the same line
2013-11-09 13:10:35 +00:00
christos
740c6aa538
use correct function
2013-10-19 15:59:15 +00:00
christos
730b60ec52
use symbolic flags
2013-10-19 15:50:26 +00:00
christos
0dd81edd01
use the new scopeid functions
2013-10-19 00:35:30 +00:00
christos
d8748c5de0
print the next parser name instead of just the pointer in debugging.
2013-07-17 15:42:03 +00:00
christos
ee1471609b
Allow -v to be used with other commands (list scan for example) as documented.
2013-07-17 15:40:42 +00:00
joerg
e240adbd0b
Retire OSI network stack. OK core@
2013-03-01 18:25:13 +00:00
apb
819da78f2e
Abort on error from prop_dictionary_augment.
2013-02-07 13:21:34 +00:00
apb
acc2342d2c
Avoid dereferencing NULL. Coverity CID 275201.
...
Also fix a typo in previous: !== should be !=
2013-02-07 13:20:51 +00:00
apb
beb9ef8fe5
Don't call prop_distionary_make_immutable on a NULL pointer.
...
Coverity CID 275179.
2013-02-07 11:24:15 +00:00
christos
17cb1d718c
fix function name in error messages.
2012-12-30 22:52:35 +00:00
christos
082a5b2911
PR/46579: Takahiro HAYASHI: ifconfig clone destroy should not print useless
...
diagnostic and exit with an error code. Get the interface name and flags
opportunistically to allow the code to return normally if it does not need
to do anything.
2012-12-30 22:50:42 +00:00
pgoyette
52dd3d0558
Use snprintb_m(3) to split flags/capabilities/enabled across multiple
...
output lines.
As discussed on current-users
2012-11-01 13:43:23 +00:00
msaitoh
bbc956a9be
Add SIOCGETHERCAP ioctl.
...
There was no way to know the setting of ec_capabilities and ec_capenable
other than grepping the source.
See http://mail-index.netbsd.org/tech-kern/2010/07/28/msg008613.html
2012-10-31 10:17:34 +00:00
christos
54abeff8fd
don't define RUMP_ACTION if MKRUMP = no
2012-08-08 14:10:38 +00:00
christos
c583007244
PR/43141: Tobias Nygren: Print an error on unknown interfaces.
2012-03-17 02:25:08 +00:00
mbalmer
28c55e99d7
When ifconfig is invoked without any arguments, display the list of
...
all network interfaces (equivalent to ifconfig -a), instead of displaying
the usage. (This is consistent with the behaviour on FreeBSD and OpenBSD.)
2012-01-28 15:01:44 +00:00
joerg
baa8e84b6f
Use __dead
2011-08-29 14:34:58 +00:00
christos
f5bc231029
use memcpy to avoid strict aliasing warnings
2011-08-14 12:15:15 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
riastradh
63cdfaffb6
Fix typo: `symbolically' takes three l's, not two.
2011-05-31 16:17:30 +00:00
joerg
b1162954df
Don't use address strings as format string.
2011-05-24 11:38:56 +00:00
pooka
72e657672d
A few weeks ago when i added "linkstr" support I didn't know that
...
the string parser gives a proplib object which isn't a terminated
string. Fix that mistake now.
2010-12-14 10:51:51 +00:00
pooka
67a4f392d8
use crunchops for crunchables
2010-12-13 21:48:01 +00:00
njoly
6c19f9ea7b
op_read return value is a ssize_t, not an int.
2010-12-13 19:17:20 +00:00
pooka
a415ef09e9
Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.
2010-12-13 17:35:08 +00:00
pooka
6f2301fb3c
Implement ifconfig linkstr as proposed on tech-net.
2010-11-15 22:42:36 +00:00
pooka
2ddc760fc7
Need getifaddrs() for the rump client since it executes sysctl(2)
2010-11-05 16:23:56 +00:00
pooka
7d1c54af24
adapt to new rumpclient_init() signature
2010-11-05 13:52:41 +00:00
pooka
23c2b7b527
Update RUMP_ACTION to use the newstyle rump client.
2010-11-04 23:31:12 +00:00
dyoung
aa9db6efb2
Add to the string parse object (pstr), and its constructors, a flag that
...
tells whether it should detect and convert to binary a hexadecimal octet
string of the form 0x0123ABab, or leave those strings undecoded.
If the argument for a 'media', 'mediamode', 'mediaopt', '-mediaopt',
'nwkey', or 'bssid' keyword is a hexadecimal octet string, do not detect
and decode it. (Note that setifnwkey decodes hexadecimal strings on its
own.)
This fixes a bug noticed by Jim Miller where the trailing zero-octets
were discarded from hexadecimal octet-string arguments for 'nwkey'.
2010-07-01 16:44:05 +00:00