diff options
author | sobomax <sobomax@FreeBSD.org> | 2004-01-26 12:33:56 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2004-01-26 12:33:56 +0000 |
commit | 7029665c48134fdfa0d0a791cad666b9395e1437 (patch) | |
tree | 5c5c96b17f9d310360115eac89b4737a0956a175 /sys/net/if_gre.h | |
parent | cbc4150e39de8a374e24f7dd77eaace267720350 (diff) | |
download | FreeBSD-src-7029665c48134fdfa0d0a791cad666b9395e1437.zip FreeBSD-src-7029665c48134fdfa0d0a791cad666b9395e1437.tar.gz |
Add support for WCCPv2. It should be enablem manually using link2
ifconfig(8) flag since header for version 2 is the same but IP payload
is prepended with additional 4-bytes field.
Inspired by: Roman Synyuk <roman@univ.kiev.ua>
MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_gre.h')
-rw-r--r-- | sys/net/if_gre.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/net/if_gre.h b/sys/net/if_gre.h index 73fed0b..21fab39 100644 --- a/sys/net/if_gre.h +++ b/sys/net/if_gre.h @@ -44,6 +44,16 @@ #ifdef _KERNEL #include <sys/queue.h> +/* + * Version of the WCCP, need to be configured manually since + * header for version 2 is the same but IP payload is prepended + * with additional 4-bytes field. + */ +typedef enum { + WCCP_V1 = 0, + WCCP_V2 +} wccp_ver_t; + struct gre_softc { struct ifnet sc_if; LIST_ENTRY(gre_softc) sc_list; @@ -58,6 +68,8 @@ struct gre_softc { const struct encaptab *encap; /* encapsulation cookie */ int called; /* infinite recursion preventer */ + + wccp_ver_t wccp_ver; /* version of the WCCP */ }; |