diff options
author | ume <ume@FreeBSD.org> | 2002-10-16 19:49:37 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-10-16 19:49:37 +0000 |
commit | 2bb6ef9a3f703f5e4ce9650638cad001d0e9d3f8 (patch) | |
tree | ef5672e1d755fcae3719333087302d3e50123b72 /sys/net/if_gif.h | |
parent | 12d5a1b9ff26477521c7a00578228c90d54d9ae1 (diff) | |
download | FreeBSD-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/net/if_gif.h')
-rw-r--r-- | sys/net/if_gif.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_gif.h b/sys/net/if_gif.h index 1d02348..8a0ac56 100644 --- a/sys/net/if_gif.h +++ b/sys/net/if_gif.h @@ -69,7 +69,7 @@ struct gif_softc { const struct encaptab *encap_cookie4; const struct encaptab *encap_cookie6; void *gif_netgraph; /* ng_gif(4) netgraph node info */ - LIST_ENTRY(gif_softc) gif_link; /* all gif's are linked */ + LIST_ENTRY(gif_softc) gif_list; /* all gif's are linked */ }; #define gif_ro gifsc_gifscr.gifscr_ro @@ -82,10 +82,14 @@ struct gif_softc { #define GIF_MTU_MAX (8192) /* Maximum MTU */ /* Prototypes */ +void gifattach0(struct gif_softc *); void gif_input(struct mbuf *, int, struct ifnet *); int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *); int gif_ioctl(struct ifnet *, u_long, caddr_t); +int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *); +void gif_delete_tunnel(struct ifnet *); +int gif_encapcheck(const struct mbuf *, int, int, void *); #endif /* _KERNEL */ |