Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net if_llatbl.c: adjust for nd changes
details: https://anonhg.NetBSD.org/src/rev/2d3dfdcb0828
branches: trunk
changeset: 1014072:2d3dfdcb0828
user: roy <roy%NetBSD.org@localhost>
date: Fri Sep 11 15:01:26 2020 +0000
description:
if_llatbl.c: adjust for nd changes
diffstat:
sys/net/if_llatbl.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 15771afb4b7f -r 2d3dfdcb0828 sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c Fri Sep 11 14:59:22 2020 +0000
+++ b/sys/net/if_llatbl.c Fri Sep 11 15:01:26 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_llatbl.c,v 1.31 2019/09/25 09:53:37 ozaki-r Exp $ */
+/* $NetBSD: if_llatbl.c,v 1.32 2020/09/11 15:01:26 roy Exp $ */
/*
* Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
* Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -59,11 +59,11 @@
#include <net/if_llatbl.h>
#include <net/if.h>
#include <net/if_dl.h>
+#include <net/nd.h>
#include <net/route.h>
#include <netinet/if_inarp.h>
#include <netinet/in_var.h>
#include <netinet6/in6_var.h>
-#include <netinet6/nd6.h>
static SLIST_HEAD(, lltable) lltables;
krwlock_t lltable_rwlock;
@@ -716,13 +716,14 @@
if ((rtm_flags & RTF_ANNOUNCE))
lle->la_flags |= LLE_PUB;
lle->la_flags |= LLE_VALID;
+ switch (dst->sa_family) {
#ifdef INET6
- /*
- * ND6
- */
- if (dst->sa_family == AF_INET6)
- lle->ln_state = ND6_LLINFO_REACHABLE;
+ case AF_INET6:
+ lle->ln_state = ND_LLINFO_REACHABLE;
+ break;
#endif
+ }
+
/*
* NB: arp and ndp always set (RTF_STATIC | RTF_HOST)
*/
Home |
Main Index |
Thread Index |
Old Index