Module Name: src
Committed By: nonaka
Date: Thu Jul 12 08:20:49 UTC 2018
Modified Files:
src/usr.sbin/ndp: ndp.c
Log Message:
Use s6, not mysin.
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.sbin/ndp/ndp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ndp/ndp.c
diff -u src/usr.sbin/ndp/ndp.c:1.53 src/usr.sbin/ndp/ndp.c:1.54
--- src/usr.sbin/ndp/ndp.c:1.53 Thu Jul 12 08:16:14 2018
+++ src/usr.sbin/ndp/ndp.c Thu Jul 12 08:20:49 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ndp.c,v 1.53 2018/07/12 08:16:14 nonaka Exp $ */
+/* $NetBSD: ndp.c,v 1.54 2018/07/12 08:20:49 nonaka Exp $ */
/* $KAME: ndp.c,v 1.121 2005/07/13 11:30:13 keiichi Exp $ */
/*
@@ -494,8 +494,8 @@ delete(struct rt_msghdr *rtm, char *host
if (rtmsg(RTM_DELETE, rtm) == 0) {
struct sockaddr_in6 s6 = *mysin; /* XXX: for safety */
- mysin->sin6_scope_id = 0;
- inet6_putscopeid(mysin, INET6_IS_ADDR_LINKLOCAL);
+ s6.sin6_scope_id = 0;
+ inet6_putscopeid(&s6, INET6_IS_ADDR_LINKLOCAL);
(void)getnameinfo((struct sockaddr *)(void *)&s6,
(socklen_t)s6.sin6_len, delete_host_buf,
sizeof(delete_host_buf), NULL, 0,