summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-05-20 10:37:03 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-05-20 10:37:03 +0000
commit88d78ab71845627771c02f187cf410a654e42f41 (patch)
tree9129627072849b13f46a589d2065c7eb916cd0ba /usr.sbin
parent6facfbc68461314ffe4f84942c16fbf592101783 (diff)
Include interface name in warning when a RA is recieved from a non-link-local
address OK sthen@ florian@ benno@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rad/engine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rad/engine.c b/usr.sbin/rad/engine.c
index 9ded4c6eb2f..23967f6d2bb 100644
--- a/usr.sbin/rad/engine.c
+++ b/usr.sbin/rad/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.15 2019/03/15 16:47:19 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.16 2020/05/20 10:37:02 claudio Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -482,7 +482,8 @@ parse_rs(struct imsg_ra_rs *rs)
len = rs->len;
if (!IN6_IS_ADDR_LINKLOCAL(&rs->from.sin6_addr)) {
- log_warnx("RA from non link local address %s", hbuf);
+ log_warnx("RA from non link local address %s on %s", hbuf,
+ if_indextoname(rs->if_index, ifnamebuf));
return;
}