Module Name: src
Committed By: ozaki-r
Date: Fri Nov 6 08:55:50 UTC 2015
Modified Files:
src/sys/netinet: if_arp.c
Log Message:
Fix db_print_llinfo
rt_llinfo is now struct llentry.
To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/sys/netinet/if_arp.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/netinet/if_arp.c
diff -u src/sys/netinet/if_arp.c:1.192 src/sys/netinet/if_arp.c:1.193
--- src/sys/netinet/if_arp.c:1.192 Fri Nov 6 08:38:43 2015
+++ src/sys/netinet/if_arp.c Fri Nov 6 08:55:49 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arp.c,v 1.192 2015/11/06 08:38:43 ozaki-r Exp $ */
+/* $NetBSD: if_arp.c,v 1.193 2015/11/06 08:55:49 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.192 2015/11/06 08:38:43 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.193 2015/11/06 08:55:49 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -202,7 +202,7 @@ static struct ifnet *myip_ifp = NULL;
#ifdef DDB
static void db_print_sa(const struct sockaddr *);
static void db_print_ifa(struct ifaddr *);
-static void db_print_llinfo(void *);
+static void db_print_llinfo(struct llentry *);
static int db_show_rtentry(struct rtentry *, void *);
#endif
@@ -2069,15 +2069,13 @@ db_print_ifa(struct ifaddr *ifa)
}
static void
-db_print_llinfo(void *li)
+db_print_llinfo(struct llentry *la)
{
- struct llinfo_arp *la;
-
- if (li == NULL)
+ if (la == NULL)
return;
- la = (struct llinfo_arp *)li;
- db_printf(" la_rt=%p la_hold=%p, la_asked=0x%lx\n",
+ db_printf(" la_rt=%p la_hold=%p, la_asked=%d\n",
la->la_rt, la->la_hold, la->la_asked);
+ db_printf(" la_flags=0x%x\n", la->la_flags);
}
/*