route has 3 code paths: monitor (listening on route socket); show
authorderaadt <deraadt@openbsd.org>
Fri, 23 Oct 2015 15:03:25 +0000 (15:03 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 23 Oct 2015 15:03:25 +0000 (15:03 +0000)
commite77d39333bd7f493a5477693de18ed2b19e16caf
tree3f5bafee83b886954fba79226a63b77e6f85e2ad
parent12a126dd4a8ce37f0fa604d19088082eab2b4bde
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
sbin/route/route.c
sbin/route/show.c