summaryrefslogtreecommitdiffstats
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2012-11-08 11:05:41 +0000
committerphessler <phessler@openbsd.org>2012-11-08 11:05:41 +0000
commitae71d88d89bc84c941a80dc114b3d8a688fdda9c (patch)
treebb6946749294aa18c400a8b5ae1a5cdfc267bac0 /usr.sbin/arp/arp.c
parentsync up device ids with freebsd (diff)
downloadwireguard-openbsd-ae71d88d89bc84c941a80dc114b3d8a688fdda9c.tar.xz
wireguard-openbsd-ae71d88d89bc84c941a80dc114b3d8a688fdda9c.zip
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@
Diffstat (limited to 'usr.sbin/arp/arp.c')
-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':