summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 21:21:50 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 21:21:50 +0000
commit7e763a42c447c63c88dfc0ea85613ea0066af271 (patch)
tree2c7d2fc4990f2f73590c472bef09b3314c9fc8b0 /sys/net
parentad552c9859c9eaf2501ba4067d78c1ae67c6778e (diff)
Keep private definitions private.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_gif.c10
-rw-r--r--sys/net/if_gif.h11
2 files changed, 10 insertions, 11 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index b3d56264d84..18e499a8216 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.75 2015/06/30 13:54:42 mpi Exp $ */
+/* $OpenBSD: if_gif.c,v 1.76 2015/07/16 21:21:49 mpi Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -62,10 +62,18 @@
#include "bpfilter.h"
#include "bridge.h"
+#define GIF_MTU (1280) /* Default MTU */
+#define GIF_MTU_MIN (1280) /* Minimum MTU */
+#define GIF_MTU_MAX (8192) /* Maximum MTU */
+
void gifattach(int);
int gif_clone_create(struct if_clone *, int);
int gif_clone_destroy(struct ifnet *);
int gif_checkloop(struct ifnet *, struct mbuf *);
+void gif_start(struct ifnet *);
+int gif_ioctl(struct ifnet *, u_long, caddr_t);
+int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *,
+ struct rtentry *);
/*
* gif global variable definitions
diff --git a/sys/net/if_gif.h b/sys/net/if_gif.h
index 469be32a86c..df3d52ce604 100644
--- a/sys/net/if_gif.h
+++ b/sys/net/if_gif.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.h,v 1.11 2014/07/09 15:35:53 mpi Exp $ */
+/* $OpenBSD: if_gif.h,v 1.12 2015/07/16 21:21:49 mpi Exp $ */
/* $KAME: if_gif.h,v 1.17 2000/09/11 11:36:41 sumikawa Exp $ */
/*
@@ -45,15 +45,6 @@ struct gif_softc {
LIST_ENTRY(gif_softc) gif_list; /* list of all gifs */
};
-#define GIF_MTU (1280) /* Default MTU */
-#define GIF_MTU_MIN (1280) /* Minimum MTU */
-#define GIF_MTU_MAX (8192) /* Maximum MTU */
-
extern LIST_HEAD(gif_softc_head, gif_softc) gif_softc_list;
-/* Prototypes */
-int gif_output(struct ifnet *, struct mbuf *,
- struct sockaddr *, struct rtentry *);
-int gif_ioctl(struct ifnet *, u_long, caddr_t);
-void gif_start(struct ifnet *);
#endif /* _NET_IF_GIF_H_ */