Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net nd: give missed a default of ND_LLINFO_NOSTATE
details: https://anonhg.NetBSD.org/src/rev/6c0799add9d7
branches: trunk
changeset: 976266:6c0799add9d7
user: roy <roy%NetBSD.org@localhost>
date: Tue Sep 15 23:40:03 2020 +0000
description:
nd: give missed a default of ND_LLINFO_NOSTATE
It's impossible to miss from this state, where-as 0 is ND_LLINFO_INCOMPLETE
which we can miss from.
diffstat:
sys/net/nd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5f5c79e630d5 -r 6c0799add9d7 sys/net/nd.c
--- a/sys/net/nd.c Tue Sep 15 23:34:16 2020 +0000
+++ b/sys/net/nd.c Tue Sep 15 23:40:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd.c,v 1.3 2020/09/15 10:05:36 roy Exp $ */
+/* $NetBSD: nd.c,v 1.4 2020/09/15 23:40:03 roy Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd.c,v 1.3 2020/09/15 10:05:36 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd.c,v 1.4 2020/09/15 23:40:03 roy Exp $");
#include <sys/callout.h>
#include <sys/mbuf.h>
@@ -57,7 +57,7 @@
struct psref psref;
struct mbuf *m = NULL;
bool send_ns = false;
- uint16_t missed = 0;
+ int16_t missed = ND_LLINFO_NOSTATE;
union l3addr taddr, *daddrp = NULL;
SOFTNET_KERNEL_LOCK_UNLESS_NET_MPSAFE();
@@ -203,7 +203,7 @@
LLE_FREE_LOCKED(ln);
SOFTNET_KERNEL_UNLOCK_UNLESS_NET_MPSAFE();
- if (missed)
+ if (missed != ND_LLINFO_NOSTATE)
nd->nd_missed(ifp, &taddr, missed, m);
if (ifp != NULL)
if_release(ifp, &psref);
Home |
Main Index |
Thread Index |
Old Index