Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet remove unnecessary dependency on gif.h to become...



details:   https://anonhg.NetBSD.org/src/rev/1a0ecfdd0dc7
branches:  trunk
changeset: 347214:1a0ecfdd0dc7
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu Aug 18 11:34:09 2016 +0000

description:
remove unnecessary dependency on gif.h to become friendly with module and rump.

When in_gif.c become compile target, NGIF is always more than 1.

diffstat:

 sys/netinet/in_gif.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r 30bb2640b5f5 -r 1a0ecfdd0dc7 sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c      Thu Aug 18 09:34:43 2016 +0000
+++ b/sys/netinet/in_gif.c      Thu Aug 18 11:34:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_gif.c,v 1.82 2016/08/01 03:15:30 ozaki-r Exp $      */
+/*     $NetBSD: in_gif.c,v 1.83 2016/08/18 11:34:09 knakahara Exp $    */
 /*     $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.82 2016/08/01 03:15:30 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.83 2016/08/18 11:34:09 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -65,18 +65,12 @@
 
 #include <net/if_gif.h>
 
-#include "gif.h"
-
 #include <net/net_osdep.h>
 
 static int gif_validate4(const struct ip *, struct gif_softc *,
        struct ifnet *);
 
-#if NGIF > 0
 int ip_gif_ttl = GIF_TTL;
-#else
-int ip_gif_ttl = 0;
-#endif
 
 static const struct encapsw in_gif_encapsw = {
        .encapsw4 = {



Home | Main Index | Thread Index | Old Index