summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2012-11-08 11:05:42 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2012-11-08 11:05:42 +0000
commit6985da982de0d4f075438a8d8e8e99133a26222c (patch)
tree7188ac8064d7e7ef52bcc7b387750ffb87d938e1
parent2ecc7582f66efa70a324011ba7484402a9c99a88 (diff)
When running route -Tx exec arp -an, arp would always use the default
routing domain. Fix it so we use the process rdomain, but still allow command line overrides. noticed by, and OK, mikeb@
-rw-r--r--usr.sbin/arp/arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 60abedf482d..95e079cf7ff 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.50 2011/01/11 16:34:20 jasper Exp $ */
+/* $OpenBSD: arp.c,v 1.51 2012/11/08 11:05:41 phessler Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -106,6 +106,7 @@ main(int argc, char *argv[])
pid = getpid();
opterr = 0;
+ rdomain = getrtable();
while ((ch = getopt(argc, argv, "andsFfV:W")) != -1) {
switch (ch) {
case 'a':