Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fill rtm_addrs properly
details: https://anonhg.NetBSD.org/src/rev/9b582f2b7770
branches: trunk
changeset: 344599:9b582f2b7770
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Apr 06 08:45:46 2016 +0000
description:
Fill rtm_addrs properly
This fixes that arp(8) on some archs (only 32bit?) shows "(weird)"
for every entries unexpectedly.
Confirmed on evbarm by ryo@ and i386 by me.
diffstat:
sys/net/if_llatbl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r a4834d626b7b -r 9b582f2b7770 sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c Wed Apr 06 08:18:35 2016 +0000
+++ b/sys/net/if_llatbl.c Wed Apr 06 08:45:46 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_llatbl.c,v 1.12 2016/04/06 07:59:26 ozaki-r Exp $ */
+/* $NetBSD: if_llatbl.c,v 1.13 2016/04/06 08:45:46 ozaki-r Exp $ */
/*
* Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
* Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -111,6 +111,7 @@
rtm->rtm_flags |= (lle->la_flags & LLE_STATIC) ? RTF_STATIC : 0;
if (lle->la_flags & LLE_PUB)
rtm->rtm_flags |= RTF_ANNOUNCE;
+ rtm->rtm_addrs = info.rti_addrs;
if ((error = copyout(rtm, w->w_where, size)) != 0)
w->w_where = NULL;
else
Home |
Main Index |
Thread Index |
Old Index