Age | Commit message (Collapse) | Author |
|
buffer per file; also use that buffer to expand macros.
ok sashan@ dennis@ krw@
|
|
available for all wsmouse devices.
|
|
from paul de weerd
ok kn
|
|
|
|
|
|
the routing table.
However, if -d is provided route monitor lists all interfaces and
their associated addresses and exits. This is confusing, unexpected
and no longer needed (if ever).
Make -d a proper no-op for route monitor and get rid of the interfaces
function which didn't use the correct sysctl idiom anyway.
OK benno
|
|
mpi.
Remaining differences are pledge and priority handling which only
route(8) has.
While here switch flushroutes to get_sysctl() function.
OK benno
|
|
* avoid double lookups for unresolvable names without -net
* more fitting error message for unresolvable names after -net
OK florian@
|
|
one specified by the T flag. No need to pass a flag around if the
tableid is valid. It always is.
This code is now in sync between flushroutes() and p_rttables().
OK benno, no objection claudio
|
|
filtering by address family and / or priority; similar to what
p_rttables() is doing.
(At the time of writing we need to copy about 150MB for the whole
table on a router that is in the default free zone).
OK benno
|
|
While here make and to see that this is correct and not touching any
global state make af a local variable and pass it around.
Input & OK benno
|
|
|
|
1) after schwarze@'s rampage (thanks!) we can drop rpath since asr is no
longer opening /etc/networks behind our back
2) we have the "route" pledge for the NET_RT_DUMP sysctl so we can
pledge earlier in main; flushroutes() and p_rttables() now tighten the
pledge instead of being the first pledge
3) the pledge in monitor() was just a repeat of the main() pledge, it
can go.
OK schwarze, deraadt
|
|
ok otto@
|
|
user. Doesn't handle units, '*', etc. Replace the more complex
getuint64 when getting things like the number of tracks per cylinder.
ok otto@
|
|
values of getuint64 that indicate errors.
Suggested by & ok otto@
|
|
ok deraadt@
|
|
ok pirofti@ krw@
|
|
|
|
that we can drop the sendfd pledge.
|
|
|
|
While here, delete some extra #includes and apply style(9) sort rules.
ok deraadt@ krw@ mpi@
|
|
getstring() to get the string and then parse that in getuint64().
Fix a mis-use of %lld and some whitespace while passing.
ok otto@
|
|
too large for the receiving fields. Change a couple of do{}while() to
for(;;) for consistancy.
Tweaks & ok otto@
|
|
ok benno@
|
|
ok otto krw
|
|
The following removes the functionality of the SIOCS80211SCAN ioctl.
After long discussions with stps@, mpi@, and deraadt@ we decided that
this was the correct way of fixing ifconfig scan from blocking the
network stack.
The kernel will continue scanning in the background and filling the
nodes array, but ifconfig scan commands will now basically do just a
SIOCG80211ALLNODES and pretty print the array. So the output stays the
same but is instant.
In fact, when the interface is freshly brought up, if you type fast
enough, you can see the array being filled by running multiple ifconfig
scans in sequence.
The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4)
still need it around. But not for long...
Another change that this introduces is the fact that ifconfig scan no
longer plays with UP and DOWN. If the interface is down it complains and
exits. This is needed in order to maintain the nodes list.
Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4).
Tested by mpi@, landry@, florian@, thanks!
OK mpi@.
|
|
This is part of the project to delete /etc/networks support.
OK deraadt@
|
|
space before '(', eliminate extraneous '{}'. Start of cleaning
up user input processing.
No intentional functional change.
ok otto@ give or take a few '{}' removals.
|
|
to be consistent with the '-rdomain' option.
Suggested by dlg
OK benno, jca, kn, phessler, jmc
|
|
ok krw@
|
|
to solicit a router advertisment shortly before their pltime runs out
so that we generate a new one.
Reported by naddy@.
OK benno@
|
|
the Listen-on directive in isakmpd.conf(5). This directive can be necessary
in multi-homed situations, and if isakmpd(8) is used with carp(4).
ok sthen@ mpi@
|
|
1. Stop telling our PID to the world: the ident values could overlap
anyway since PID space is larger than 16 bits for some time already.
2. No need for htons/ntohs dance with ident in IPv6 case.
okay benno@ deraadt@ florian@
|
|
Admins don't necessarily reside in the same timezone as the
machine. If an admin mistakenly schedules downtime for a
machine at the wrong time this could be quite bad.
Users, too, don't necessarily reside in the same timezone as the
machine. Saying the box is going down at "15:40" is potentially
ambiguous.
So, display the local timezone in all logs, broadcasts, printouts,
messages, etc. Give the admin a chance to correct the mistake; give
the user a better idea of when the box is actually going down.
This also updates the process' understanding of the present time
before printing estimates. The system's wall clock could have
changed after the shutdown was scheduled, making subsequent
broadcasts potentially misleading for users.
ok deraadt@
|
|
Improve emitted verbiage while there.
tweaks & ok otto@
|
|
array. Just point at the provided optarg like '-l' does. Also,
no need to initialize a static pointer to NULL.
|
|
ignored.
|
|
alongside 'request'.
|
|
the regression test uncovered code paths in the TS and CP payload parser
that can trigger access to invalid memory locations. This changes the
TS and CP payload parsing to add additional length checks.
With hshoexer@ and markus@; OK sthen@
|
|
NULL, on failure.
Eliminates possible "option = ;' lines in lease files.
|
|
strtonum(3) accepts a single leading '+', so if we increment timearg we
allow input with two leading pluses. If we don't increment, we still
have a valid input for strtonum(3).
While here, use errstr to say what was wrong with timearg.
Don't increase the range for offsets yet: it exposes segfaults elsewhere
in the program that need to be addressed.
ok millert@ tb@
|
|
with suggestions from jmc and ok mpi@
|
|
|
|
From Raf Czlonka, ok sthen@
|
|
| The Interface Identifier is finally obtained by taking as many
| bits from the RID value (computed in the previous step) as
| necessary, starting from the least significant bit.
Copy bits from the end of the digest array, not from the beginning.
While here initialize iid.
Problem that IPv6 addresses change while they should not pointed out
by semarie@.
OK sthen, phessler
|
|
out the "wait for mount" code into a function to see more easily
what is going on. ok visa@ tedu@
|
|
chunk, not the total amount of free space on the disk. Removes
need for 'totsecs'.
ok otto@ as part of larger diff now completely committed
|
|
end in SUN_CYLCHECK case. Fixes potential off-by-one in calculating
the number of cylinders available in a chunk.
ok otto@ as part of larger diff
|
|
goto from one to the other, just move the logic after the if/else. One
less #ifdef. Decrements total_secs in either case.
ok otto@ as part of larger diff
|