Module Name:    src
Committed By:   ozaki-r
Date:           Wed Apr  6 08:45:47 UTC 2016

Modified Files:
        src/sys/net: if_llatbl.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/net/if_llatbl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_llatbl.c
diff -u src/sys/net/if_llatbl.c:1.12 src/sys/net/if_llatbl.c:1.13
--- src/sys/net/if_llatbl.c:1.12	Wed Apr  6 07:59:26 2016
+++ src/sys/net/if_llatbl.c	Wed Apr  6 08:45:46 2016
@@ -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 @@ lltable_dump_entry(struct lltable *llt, 
 		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

Reply via email to