summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_gif.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-10-16 19:49:37 +0000
committerume <ume@FreeBSD.org>2002-10-16 19:49:37 +0000
commit2bb6ef9a3f703f5e4ce9650638cad001d0e9d3f8 (patch)
treeef5672e1d755fcae3719333087302d3e50123b72 /sys/netinet/in_gif.h
parent12d5a1b9ff26477521c7a00578228c90d54d9ae1 (diff)
downloadFreeBSD-src-2bb6ef9a3f703f5e4ce9650638cad001d0e9d3f8.zip
FreeBSD-src-2bb6ef9a3f703f5e4ce9650638cad001d0e9d3f8.tar.gz
- after gif_set_tunnel(), psrc/pdst may be null. set IFF_RUNNING accordingly.
- set IFF_UP on SIOCSIFADDR. be consistent with others. - set if_addrlen explicitly (just in case) - multi destination mode is long gone. - missing break statement - add gif_set_tunnel(), so that we can set tunnel address from within the kernel at ease. - encap_attach/detach dynamically on ioctls - move encap_attach() to dedicated function in in*_gif.c Obtained from: KAME MFC after: 3 weeks
Diffstat (limited to 'sys/netinet/in_gif.h')
-rw-r--r--sys/netinet/in_gif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/in_gif.h b/sys/netinet/in_gif.h
index 262d9ba..8197d29 100644
--- a/sys/netinet/in_gif.h
+++ b/sys/netinet/in_gif.h
@@ -35,8 +35,11 @@
#define GIF_TTL 30
+struct gif_softc;
void in_gif_input(struct mbuf *, int off);
int in_gif_output(struct ifnet *, int, struct mbuf *, struct rtentry *);
int gif_encapcheck4(const struct mbuf *, int, int, void *);
+int in_gif_attach(struct gif_softc *);
+int in_gif_detach(struct gif_softc *);
#endif /*_NETINET_IN_GIF_H_*/
OpenPOWER on IntegriCloud