Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Drop RTF_CONNECTED from a result of RTM_GET for ARP/...



details:   https://anonhg.NetBSD.org/src/rev/94ebee5dafb4
branches:  trunk
changeset: 824731:94ebee5dafb4
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Jun 16 02:26:17 2017 +0000

description:
Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries

ARP/NDP entries aren't connected routes.

Reported by ryo@

diffstat:

 sys/net/rtsock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 24de848a6b2f -r 94ebee5dafb4 sys/net/rtsock.c
--- a/sys/net/rtsock.c  Fri Jun 16 02:24:54 2017 +0000
+++ b/sys/net/rtsock.c  Fri Jun 16 02:26:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.215 2017/06/16 02:24:54 ozaki-r Exp $     */
+/*     $NetBSD: rtsock.c,v 1.216 2017/06/16 02:26:17 ozaki-r Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.215 2017/06/16 02:24:54 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.216 2017/06/16 02:26:17 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -916,6 +916,7 @@
                                rtm = new_rtm;
                        }
                        rtm->rtm_flags |= RTF_LLDATA;
+                       rtm->rtm_flags &= ~RTF_CONNECTED;
                        rtm->rtm_flags |= (ll_flags & LLE_STATIC) ? RTF_STATIC : 0;
                        break;
                }



Home | Main Index | Thread Index | Old Index