Source-Changes-HG archive

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

[src/trunk]: src/sys/net Can't hide stuff from userland, because struct route...



details:   https://anonhg.NetBSD.org/src/rev/6e4419cccec5
branches:  trunk
changeset: 819767:6e4419cccec5
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 16 20:11:52 2016 +0000

description:
Can't hide stuff from userland, because struct route is embedded in other
structures (like inpcb) and things like fstat stop working.

diffstat:

 sys/net/route.h |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r c66b0f169b80 -r 6e4419cccec5 sys/net/route.h
--- a/sys/net/route.h   Fri Dec 16 19:52:22 2016 +0000
+++ b/sys/net/route.h   Fri Dec 16 20:11:52 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.109 2016/12/12 03:55:57 ozaki-r Exp $      */
+/*     $NetBSD: route.h,v 1.110 2016/12/16 20:11:52 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -42,8 +42,8 @@
 #include <sys/rwlock.h>
 #include <sys/condvar.h>
 #include <sys/pserialize.h>
+#endif
 #include <sys/psref.h>
-#endif
 
 #if !(defined(_KERNEL) || defined(_STANDALONE))
 #include <stdbool.h>
@@ -66,10 +66,8 @@
        struct  sockaddr        *ro_sa;
        LIST_ENTRY(route)       ro_rtcache_next;
        bool                    ro_invalid;
-#ifdef _KERNEL
        struct  psref           ro_psref;
        int                     ro_bound;
-#endif
 };
 
 /*



Home | Main Index | Thread Index | Old Index