diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-12-23 16:17:37 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-12-23 16:17:37 +0000 |
commit | 132c449079aa5834921025145b0ae86bf72443d0 (patch) | |
tree | b7df5eca3f8bcb4444b92a9eafe1bf621e38594c /sys/net/if_gif.c | |
parent | 1a868688a49c8c1e9201aeb4b089f6ab1266b8e1 (diff) |
Remove in_gif.h and in6_gif.h files. They only contain function
declarations used by gif(4). Instead declare these functions in C files.
Also make some variables static.
Notes
Notes:
svn path=/head/; revision=276148
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 674060dda210..421d1b34b8d9 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -72,7 +72,6 @@ __FBSDID("$FreeBSD$"); #include <netinet/ip_ecn.h> #ifdef INET #include <netinet/in_var.h> -#include <netinet/in_gif.h> #include <netinet/ip_var.h> #endif /* INET */ @@ -85,7 +84,6 @@ __FBSDID("$FreeBSD$"); #include <netinet6/ip6_ecn.h> #include <netinet6/ip6_var.h> #include <netinet6/scope6_var.h> -#include <netinet6/in6_gif.h> #include <netinet6/ip6protosw.h> #endif /* INET6 */ @@ -120,6 +118,16 @@ void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af); void (*ng_gif_attach_p)(struct ifnet *ifp); void (*ng_gif_detach_p)(struct ifnet *ifp); +#ifdef INET +extern int in_gif_output(struct ifnet *, struct mbuf *, int, uint8_t); +extern int in_gif_encapcheck(const struct mbuf *, int, int, void *); +extern int in_gif_attach(struct gif_softc *); +#endif +#ifdef INET6 +extern int in6_gif_output(struct ifnet *, struct mbuf *, int, uint8_t); +extern int in6_gif_encapcheck(const struct mbuf *, int, int, void *); +extern int in6_gif_attach(struct gif_softc *); +#endif static int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *); static void gif_delete_tunnel(struct ifnet *); |