Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ndp Use s6, not mysin.
details: https://anonhg.NetBSD.org/src/rev/0dd7137db366
branches: trunk
changeset: 320554:0dd7137db366
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Jul 12 08:20:49 2018 +0000
description:
Use s6, not mysin.
diffstat:
usr.sbin/ndp/ndp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 5873dd39b600 -r 0dd7137db366 usr.sbin/ndp/ndp.c
--- a/usr.sbin/ndp/ndp.c Thu Jul 12 08:16:14 2018 +0000
+++ b/usr.sbin/ndp/ndp.c Thu Jul 12 08:20:49 2018 +0000
@@ -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 @@
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,
Home |
Main Index |
Thread Index |
Old Index