openbsd
9 years agoCast ctype functions' arguments to unsigned char.
mmcc [Sat, 24 Oct 2015 17:40:38 +0000 (17:40 +0000)]
Cast ctype functions' arguments to unsigned char.

ok guenther@

9 years agoCast isdigit()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:37:56 +0000 (17:37 +0000)]
Cast isdigit()'s argument to unsigned char.

ok guenther@

9 years agoCast isalpha()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:36:06 +0000 (17:36 +0000)]
Cast isalpha()'s argument to unsigned char.

ok guenther@

9 years agoCast isblank()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:34:16 +0000 (17:34 +0000)]
Cast isblank()'s argument to unsigned char.

ok guenther@

9 years agoCast isdigit()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:33:05 +0000 (17:33 +0000)]
Cast isdigit()'s argument to unsigned char.

ok guenther@

9 years agoCast isblank()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:31:00 +0000 (17:31 +0000)]
Cast isblank()'s argument to unsigned char.

ok guenther@

9 years agoCast toupper()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:29:03 +0000 (17:29 +0000)]
Cast toupper()'s argument to unsigned char.

ok guenther@

9 years agoCast islower()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:27:06 +0000 (17:27 +0000)]
Cast islower()'s argument to unsigned char.

ok guenther@

9 years agoCast islower()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 17:23:14 +0000 (17:23 +0000)]
Cast islower()'s argument to unsigned char.

ok guenther@

9 years agoCast ctype functions' arguments to unsigned char.
mmcc [Sat, 24 Oct 2015 17:20:17 +0000 (17:20 +0000)]
Cast ctype functions' arguments to unsigned char.

ok guenther@

9 years agoCast ctype functions' arguments to unsigned char.
mmcc [Sat, 24 Oct 2015 17:13:27 +0000 (17:13 +0000)]
Cast ctype functions' arguments to unsigned char.

ok guenther@

9 years agosome minor tweaks; ok ajacoutot
jmc [Sat, 24 Oct 2015 17:08:36 +0000 (17:08 +0000)]
some minor tweaks; ok ajacoutot

9 years agoInline trivial myechoreply function in the one place it's used; like
florian [Sat, 24 Oct 2015 16:59:15 +0000 (16:59 +0000)]
Inline trivial myechoreply function in the one place it's used; like
ping(8).

9 years agoConvert to rt_ifidx.
mpi [Sat, 24 Oct 2015 16:57:46 +0000 (16:57 +0000)]
Convert to rt_ifidx.

ok bluhm@

9 years agoFilter our RTM_GET messages which are not from us.
claudio [Sat, 24 Oct 2015 16:42:18 +0000 (16:42 +0000)]
Filter our RTM_GET messages which are not from us.

9 years agononce is unused.
florian [Sat, 24 Oct 2015 16:41:11 +0000 (16:41 +0000)]
nonce is unused.

9 years agoCarry out additional length/size checks in DECnet packet printing, avoiding a
sthen [Sat, 24 Oct 2015 16:32:52 +0000 (16:32 +0000)]
Carry out additional length/size checks in DECnet packet printing, avoiding a
segfault with malformed packets. Adapted from f61639179282 in tcpdump.org git
by Kevin Reay, but not including the header no-copy optimization that was in
the upstream patch.  ok benno@

9 years agoSync ping6 output to ping. ping has been around for longer and so
florian [Sat, 24 Oct 2015 16:32:26 +0000 (16:32 +0000)]
Sync ping6 output to ping. ping has been around for longer and so
defines the canonical output format. Having different output is
getting in the way of a merge.
This moves the output of the src address to the -v option. With the
overly complicated IPv6 address selection it's sometimes usefull to
have this information.
OK benno@, sthen@ can live with it.

9 years agoConvert to rt_ifidx.
mpi [Sat, 24 Oct 2015 16:24:21 +0000 (16:24 +0000)]
Convert to rt_ifidx.

ok bluhm@

9 years agoIgnore Router Advertisment's current hop limit.
mpi [Sat, 24 Oct 2015 16:08:48 +0000 (16:08 +0000)]
Ignore Router Advertisment's current hop limit.

Appart from the usual inet6 axe murdering exercise to keep you fit, this
allows us to get rid of a lot of layer violation due to the use of per-
ifp variables to store the current hop limit.

Imputs from bluhm@, ok phessler@, florian@, bluhm@

9 years agoclarify use of "bgpctl show rib in|out neighbor FOO"
benno [Sat, 24 Oct 2015 16:02:04 +0000 (16:02 +0000)]
clarify use of "bgpctl show rib in|out neighbor FOO"
feedback from jmc@

9 years agothe last user of gensalt has been removed. remove the file.
tedu [Sat, 24 Oct 2015 15:59:51 +0000 (15:59 +0000)]
the last user of gensalt has been removed. remove the file.

9 years agoAdd CAVEATS section and explain why pair(4) is not like vether(4).
reyk [Sat, 24 Oct 2015 15:46:10 +0000 (15:46 +0000)]
Add CAVEATS section and explain why pair(4) is not like vether(4).

With OK and input from jmc@

9 years agoMake it more obvious what exact csplit commands will do.
zhuk [Sat, 24 Oct 2015 15:32:50 +0000 (15:32 +0000)]
Make it more obvious what exact csplit commands will do.

With much help & okay from jmc@

9 years agoFix pledge request to allow for setgroups.
jca [Sat, 24 Oct 2015 15:31:00 +0000 (15:31 +0000)]
Fix pledge request to allow for setgroups.

setgroups needed "proc" before the introduction of "id" on 2015/10/17.
Initial patch from Gregor Best, from which I further removed "proc".

9 years agoThe default modifier should be copied for empty keys even if -b is
millert [Sat, 24 Oct 2015 15:19:01 +0000 (15:19 +0000)]
The default modifier should be copied for empty keys even if -b is
specified.  From Cedric Krier.

9 years agoAdd test for -b and -r when -k is specified.
millert [Sat, 24 Oct 2015 15:16:53 +0000 (15:16 +0000)]
Add test for -b and -r when -k is specified.

9 years ago"bgpctl sh rib in" and "bgpctl sh rib out" require a neighbor argument
benno [Sat, 24 Oct 2015 15:15:55 +0000 (15:15 +0000)]
"bgpctl sh rib in" and "bgpctl sh rib out" require a neighbor argument
to work. send an error if none is given.
ok claudio@

9 years agoWait a short while between setting a USB device's address and reloading
stsp [Sat, 24 Oct 2015 14:01:40 +0000 (14:01 +0000)]
Wait a short while between setting a USB device's address and reloading
its descriptor. Fixes flaky attach of USB devices (most importantly the
detachable keyboard) on the Thinkpad Helix 2, and perhaps elsewhere.
Problem diagnosed by mpi; ok mpi@

9 years ago"enable" and "disable" are here to stay now that they have a real added value
ajacoutot [Sat, 24 Oct 2015 13:57:24 +0000 (13:57 +0000)]
"enable" and "disable" are here to stay now that they have a real added value
(possibility to pass several enable|disable daemons at once); so document them.
While here, add a check to make sure a service|daemon exists when running "order".

"Yay" and ok sthen@

9 years agoDon't compile pwd_gensalt, it's not needed since we use crypt_checkpass.
ajacoutot [Sat, 24 Oct 2015 13:53:20 +0000 (13:53 +0000)]
Don't compile pwd_gensalt, it's not needed since we use crypt_checkpass.

ok tedu@

9 years agovarious fixes;
jmc [Sat, 24 Oct 2015 13:35:33 +0000 (13:35 +0000)]
various fixes;

9 years agovarious clean up;
jmc [Sat, 24 Oct 2015 13:32:45 +0000 (13:32 +0000)]
various clean up;

9 years agonl_langinfo(3) conforms to POSIX.
bentley [Sat, 24 Oct 2015 13:32:18 +0000 (13:32 +0000)]
nl_langinfo(3) conforms to POSIX.

ok jmc@

9 years agoHandling of bogus CA file has changed in syslogd. Adapt tests to
bluhm [Sat, 24 Oct 2015 12:58:32 +0000 (12:58 +0000)]
Handling of bogus CA file has changed in syslogd.  Adapt tests to
new error messages.

9 years agoIf loading the CA certificates at startup had failed, the syslogd
bluhm [Sat, 24 Oct 2015 12:49:37 +0000 (12:49 +0000)]
If loading the CA certificates at startup had failed, the syslogd
child tried to load the default CA file when it was connecting to
a TLS server.  The latter has never worked as the child is chrooted
to /var/empty.  Set the CA storage to an empty string to avoid this
behavior.  As a benefit pledge "rpath" can be removed.
OK benno@

9 years agoConvert some if_ref() to if_get().
mpi [Sat, 24 Oct 2015 12:33:16 +0000 (12:33 +0000)]
Convert some if_ref() to if_get().

ok claudio@

9 years agoSome rt_ifp to rt_ifidx conversions.
mpi [Sat, 24 Oct 2015 11:58:46 +0000 (11:58 +0000)]
Some rt_ifp to rt_ifidx conversions.

ok bluhm@

9 years agoImplement the missing bits to parse the other MRT message types.
claudio [Sat, 24 Oct 2015 11:54:50 +0000 (11:54 +0000)]
Implement the missing bits to parse the other MRT message types.
Printing bgp messages is still missing lots but at least it is a start.
I onced abused tcpdump's bgp protocol handler for this but that is an ugly hack.

9 years agoRemoving xresolve from generating script has been forgotten.
bluhm [Sat, 24 Oct 2015 11:53:41 +0000 (11:53 +0000)]
Removing xresolve from generating script has been forgotten.
OK mpi@

9 years agoDefine ``rt_ifidx'' as rt_ifp->if_index to ease the transtion towards
mpi [Sat, 24 Oct 2015 11:47:07 +0000 (11:47 +0000)]
Define ``rt_ifidx'' as rt_ifp->if_index to ease the transtion towards
getting rid of interface pointers in route entries.

ok bluhm@

9 years agoPrint if a route is redistributed or not at least for static & connected.
claudio [Sat, 24 Oct 2015 11:41:03 +0000 (11:41 +0000)]
Print if a route is redistributed or not at least for static & connected.
With phessler@

9 years agoadd -h flag to SYNOPSIS as well
jung [Sat, 24 Oct 2015 11:38:39 +0000 (11:38 +0000)]
add -h flag to SYNOPSIS as well

prodded and ok jmc

9 years agoclarify where "with tls" can be used.
benno [Sat, 24 Oct 2015 11:37:17 +0000 (11:37 +0000)]
clarify where "with tls" can be used.
ok jmc@

9 years agoRemove superfluous assignment.
reyk [Sat, 24 Oct 2015 11:01:39 +0000 (11:01 +0000)]
Remove superfluous assignment.

Pointed out by and OK mikeb@

9 years agoAdd pair(4), a vether-based virtual Ethernet driver to interconnect
reyk [Sat, 24 Oct 2015 10:52:05 +0000 (10:52 +0000)]
Add pair(4), a vether-based virtual Ethernet driver to interconnect
rdomains and bridges on the local system.  This can be used to route
through local rdomains, to create L2 devices (like trunks) between
them, and many other things.

Discussed with many, with input from mpi@
OK sthen@ phessler@ yasuoka@ mikeb@

9 years agoUnify all the errno names in
bluhm [Sat, 24 Oct 2015 10:42:02 +0000 (10:42 +0000)]
Unify all the errno names in
- include comment
- libc errlist
- nls C msg
- man page
OK tedu@

9 years agoremove a paste error and get section numbers right for sysctl(3);
jmc [Sat, 24 Oct 2015 08:46:05 +0000 (08:46 +0000)]
remove a paste error and get section numbers right for sysctl(3);

9 years agochange one instance of Dl to a display and provide a teeny indent
jmc [Sat, 24 Oct 2015 08:44:49 +0000 (08:44 +0000)]
change one instance of Dl to a display and provide a teeny indent
to avoid line wrap; tj mailed me a diff to make this example work
more generally, but i prefer to try and avoid the line wrap;

9 years agonormalise TUNNEL synopsis; ok dlg
jmc [Sat, 24 Oct 2015 08:42:57 +0000 (08:42 +0000)]
normalise TUNNEL synopsis; ok dlg

9 years agoHandle the split of tun(4) "link0" into tap(4) in ssh tun-forwarding.
sthen [Sat, 24 Oct 2015 08:34:09 +0000 (08:34 +0000)]
Handle the split of tun(4) "link0" into tap(4) in ssh tun-forwarding.
Adapted from portable (using separate devices for this is the normal case
in most OS). ok djm@

9 years agoIntroduce msgtypenames to print bgp msg types (which will be used by bgpctl)
claudio [Sat, 24 Oct 2015 08:06:45 +0000 (08:06 +0000)]
Introduce msgtypenames to print bgp msg types (which will be used by bgpctl)

9 years agoIn all other cases of rde_filter_match() we ensure that asp is valid so
claudio [Sat, 24 Oct 2015 08:02:24 +0000 (08:02 +0000)]
In all other cases of rde_filter_match() we ensure that asp is valid so
do it here as well.

9 years agoseg_type is only set but never used. So remove it. Someone reported this
claudio [Sat, 24 Oct 2015 08:00:42 +0000 (08:00 +0000)]
seg_type is only set but never used. So remove it. Someone reported this
long time ago.

9 years agosync
deraadt [Sat, 24 Oct 2015 07:05:50 +0000 (07:05 +0000)]
sync

9 years agoCast isxdigit()'s argument to unsigned char.
mmcc [Sat, 24 Oct 2015 06:07:43 +0000 (06:07 +0000)]
Cast isxdigit()'s argument to unsigned char.

ok guenther@

9 years agoMake use of hardware RX checksum validation.
visa [Sat, 24 Oct 2015 05:35:42 +0000 (05:35 +0000)]
Make use of hardware RX checksum validation.

ok naddy@

9 years agoCast ctype function arguments to unsigned char.
mmcc [Sat, 24 Oct 2015 05:26:00 +0000 (05:26 +0000)]
Cast ctype function arguments to unsigned char.

ok guenther@

9 years agolookup tap devices in tapkqfilter, not tun devices.
dlg [Sat, 24 Oct 2015 04:12:24 +0000 (04:12 +0000)]
lookup tap devices in tapkqfilter, not tun devices.

libevent likes this more.

9 years agoPasting mouse escape sequences is unlikely, so skip them when working
nicm [Fri, 23 Oct 2015 23:46:36 +0000 (23:46 +0000)]
Pasting mouse escape sequences is unlikely, so skip them when working
out whether the user is pasting.

9 years agoypcipher isn't supported any more - it was already removed from login.conf(5)
sthen [Fri, 23 Oct 2015 22:55:49 +0000 (22:55 +0000)]
ypcipher isn't supported any more - it was already removed from login.conf(5)
and pwd_gensalt.c - so remove it from the default /etc/login.conf files as well.
ok millert@

9 years agoTest syslogd with empty or non existing server certificates and
bluhm [Fri, 23 Oct 2015 22:50:09 +0000 (22:50 +0000)]
Test syslogd with empty or non existing server certificates and
keys.

9 years agoFix a couple of issues in Russian calendar entries:
zhuk [Fri, 23 Oct 2015 19:56:10 +0000 (19:56 +0000)]
Fix a couple of issues in Russian calendar entries:

  * Fix #ifndef safeguards (rename/add where missing);
  * Use consistent spelling for year when it's mentioned in day desc;
  * Tweak some wrong casing cases;
  * Remove calendar.msk since Moscow doesn't have summer time anymore,
    and that was the only thing this file was about;
  * A few other corrections.

Some corrections from Mikhail on tech@, thanks!
Small fix & okay from mikeb@.

9 years agoCast isdigit() argument to unsigned char.
mmcc [Fri, 23 Oct 2015 18:50:54 +0000 (18:50 +0000)]
Cast isdigit() argument to unsigned char.

9 years agoVerify that opened message catalog is valid, i.e. avoid integer overflows
tobias [Fri, 23 Oct 2015 18:49:07 +0000 (18:49 +0000)]
Verify that opened message catalog is valid, i.e. avoid integer overflows
and out of boundary accesses.

with input by miod, ok stsp

9 years agoCast ctype functions' arguments to unsigned char.
mmcc [Fri, 23 Oct 2015 18:47:21 +0000 (18:47 +0000)]
Cast ctype functions' arguments to unsigned char.

9 years agoCast isspace() argument to unsigned char.
mmcc [Fri, 23 Oct 2015 18:44:15 +0000 (18:44 +0000)]
Cast isspace() argument to unsigned char.

9 years agoremove some more ifdef maziness
tedu [Fri, 23 Oct 2015 18:42:55 +0000 (18:42 +0000)]
remove some more ifdef maziness

9 years agoFix renaming in the root directory by correctly setting directory
krw [Fri, 23 Oct 2015 18:04:37 +0000 (18:04 +0000)]
Fix renaming in the root directory by correctly setting directory
offset.

From Serguey Parkhomovsky via bugs@, in response to problem report
from matthieu@. Same fix is in NetBSD for one.

ok tedu@

9 years agoRemove three strange and unused preproc defines. Submitted by Ilya
mmcc [Fri, 23 Oct 2015 17:22:43 +0000 (17:22 +0000)]
Remove three strange and unused preproc defines. Submitted by Ilya
Kaliman.

ok nicm@

9 years agoFix printf() types so kernel compiles with or w/o MSDOSFS_DEBUG.
krw [Fri, 23 Oct 2015 17:21:34 +0000 (17:21 +0000)]
Fix printf() types so kernel compiles with or w/o MSDOSFS_DEBUG.
e.g. print pointers with %p instead of %08x. No changes outside of
MSDOSFS_DEBUG.

9 years agoFrom jmc@ "the exclusive open propery" does not make sense. Try with 'an'.
claudio [Fri, 23 Oct 2015 16:45:51 +0000 (16:45 +0000)]
From jmc@ "the exclusive open propery" does not make sense. Try with 'an'.

9 years agoForgot to install the new tap.4 man page.
claudio [Fri, 23 Oct 2015 16:44:25 +0000 (16:44 +0000)]
Forgot to install the new tap.4 man page.

9 years agoRather than re-opening the driftfile to write, keep it open; rewinding
deraadt [Fri, 23 Oct 2015 16:39:13 +0000 (16:39 +0000)]
Rather than re-opening the driftfile to write, keep it open; rewinding
and coping with error conditions... that lets us avoid a pledge "wpath".

Putting it all together, this lets the master ntpd pledge "stdio rpath
inet settime proc id".  It works like this: "rpath" to load the
certificates, "proc" to create constraint processes, "id" to chroot
and lock the constraint processes into a jail, then "inet" to open a
https session.  "settime" is used by the master to manage the system
time when the ntp-speaking engine instructs the master.

with help from naddy

9 years agoRemove some unnecessary checks before free().
nicm [Fri, 23 Oct 2015 16:30:15 +0000 (16:30 +0000)]
Remove some unnecessary checks before free().

9 years agoIf $TMUX is set, and we are unsure about the session, use it.
nicm [Fri, 23 Oct 2015 16:29:07 +0000 (16:29 +0000)]
If $TMUX is set, and we are unsure about the session, use it.

9 years agoIf writing to a tty blocks, syslogd forked and tried to write again
bluhm [Fri, 23 Oct 2015 16:28:52 +0000 (16:28 +0000)]
If writing to a tty blocks, syslogd forked and tried to write again
in a background process.  A potential fork(2) at every message is
bad, so replace this with an event.  As a bonus the syslogd child
process does not need to pledge "proc" anymore.  Also limit the
number of delayed write events.
OK deraadt@

9 years agotmux can call pledge() in main with large set and then reduce it
nicm [Fri, 23 Oct 2015 16:07:29 +0000 (16:07 +0000)]
tmux can call pledge() in main with large set and then reduce it
slightly in the server to "stdio rpath wpath cpath fattr unix recvfd
proc exec tty ps".

9 years agoFormat for scroll position, from Jorge Morante.
nicm [Fri, 23 Oct 2015 16:02:21 +0000 (16:02 +0000)]
Format for scroll position, from Jorge Morante.

9 years agoAllow SIOCGIFINFO_IN6
deraadt [Fri, 23 Oct 2015 15:53:49 +0000 (15:53 +0000)]
Allow SIOCGIFINFO_IN6

9 years agoUse tty_term_flag not _has for XT, and make -2 force direct use of
nicm [Fri, 23 Oct 2015 15:52:54 +0000 (15:52 +0000)]
Use tty_term_flag not _has for XT, and make -2 force direct use of
256-colour escape sequences (so setaf/setab can be bypassed if needed).

9 years agodocument -h flag and add a .Xr
jung [Fri, 23 Oct 2015 15:48:16 +0000 (15:48 +0000)]
document -h flag and add a .Xr

ok sunil millert

9 years agondp -n -d <addr> does dns lookups, even with -n. it should not.
benno [Fri, 23 Oct 2015 15:47:54 +0000 (15:47 +0000)]
ndp -n -d <addr> does dns lookups, even with -n. it should not.
found through pledge. ok deraadt@

9 years agonetstart bits for tap(4)
claudio [Fri, 23 Oct 2015 15:22:49 +0000 (15:22 +0000)]
netstart bits for tap(4)

9 years agoSync (MAKEDEV addition of tap)
claudio [Fri, 23 Oct 2015 15:18:01 +0000 (15:18 +0000)]
Sync (MAKEDEV addition of tap)

9 years agoAdjust tun(4) and tap(4) after the split.
claudio [Fri, 23 Oct 2015 15:17:24 +0000 (15:17 +0000)]
Adjust tun(4) and tap(4) after the split.
Note: "pseudo-device tun" is used by both devices this is not a typo
OK dlg@ mpi@

9 years agoSync (after tap addition)
claudio [Fri, 23 Oct 2015 15:14:46 +0000 (15:14 +0000)]
Sync (after tap addition)

9 years agoMAKEDEV bits for tap(4)
claudio [Fri, 23 Oct 2015 15:14:11 +0000 (15:14 +0000)]
MAKEDEV bits for tap(4)
OK dlg@ mpi@

9 years agoAllocate a new major for tap(4) also note that pseudo-device tun is for tap
claudio [Fri, 23 Oct 2015 15:10:52 +0000 (15:10 +0000)]
Allocate a new major for tap(4) also note that pseudo-device tun is for tap
as well. OK dlg@ mpi@

9 years agoSplit up tun(4) into tun(4) & tap(4). Killing the link0 magic to switch
claudio [Fri, 23 Oct 2015 15:08:24 +0000 (15:08 +0000)]
Split up tun(4) into tun(4) & tap(4). Killing the link0 magic to switch
between modes. The two drivers still share most of the code but the mode
switcher is gone.
OK dlg@ mpi@

9 years agoroute has 3 code paths: monitor (listening on route socket); show
deraadt [Fri, 23 Oct 2015 15:03:25 +0000 (15:03 +0000)]
route has 3 code paths: monitor (listening on route socket); show
(sysctl and then print), change (getsocket, then read/write on that).
Refactor lightly and insert pledge "stdio rpath dns" in each case.
ok claudio benno phessler

9 years agoAllowing upstream servers of ntp being in multiple routing tables is
phessler [Fri, 23 Oct 2015 14:52:20 +0000 (14:52 +0000)]
Allowing upstream servers of ntp being in multiple routing tables is
non-sensical.  The dns lookups happened in the process routing table
(usually '0'), which is very likely to have different results from the
other routing domains.  If you do depend on having this behaviour,
you'll need to use pf to cross the rtable boundary.

"listen on * rtable X" is still supported.

Users of "server * rtable X" will need to switch to launching ntpd with
"route -T X exec /usr/sbin/ntpd"

OK deraadt@

9 years agortfree(9) and rtalloc(9) no longer need to be called under KERNEL_LOCK.
mpi [Fri, 23 Oct 2015 14:49:36 +0000 (14:49 +0000)]
rtfree(9) and rtalloc(9) no longer need to be called under KERNEL_LOCK.

9 years agoapply bold and italic to all non-ASCII Unicode codepoints,
schwarze [Fri, 23 Oct 2015 14:49:13 +0000 (14:49 +0000)]
apply bold and italic to all non-ASCII Unicode codepoints,
fixing input like \fB\('e; issue reported by bentley@

9 years agoUpdate route entries reference counters atomically.
mpi [Fri, 23 Oct 2015 14:48:22 +0000 (14:48 +0000)]
Update route entries reference counters atomically.

This allows us to only grab the KERNEL_LOCK when the last reference
of an entry has been dropped.

For symmetry also grab the KERNEL_LOCK inside rtalloc(9).

ok dlg@, bluhm@

9 years agodon't need MMAP to compile now
tedu [Fri, 23 Oct 2015 14:17:24 +0000 (14:17 +0000)]
don't need MMAP to compile now

9 years agocorrect spelling of statistic in function name, from Pablo Hernandez
tedu [Fri, 23 Oct 2015 14:16:02 +0000 (14:16 +0000)]
correct spelling of statistic in function name, from Pablo Hernandez

9 years agoCheck that syslogd delays a blocking write to tty and that that all
bluhm [Fri, 23 Oct 2015 14:06:55 +0000 (14:06 +0000)]
Check that syslogd delays a blocking write to tty and that that all
messages still appear on the tty.

9 years agoIt was possible to create a gateway route pointing to another gateway
bluhm [Fri, 23 Oct 2015 13:41:41 +0000 (13:41 +0000)]
It was possible to create a gateway route pointing to another gateway
route by changing the gateway.  Despite the error message when doing
so, the route did actually change.  The gateway is modified by
rt_setgate(), the error is created by rt_getifa().  Do these
operations the other way around.
OK mpi@

9 years ago``rt_ifp'' cannot be NULL.
mpi [Fri, 23 Oct 2015 13:26:07 +0000 (13:26 +0000)]
``rt_ifp'' cannot be NULL.

ok claudio@