ng_pptpgre.c (128657) | ng_pptpgre.c (129823) |
---|---|
1 2/* 3 * ng_pptpgre.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ng_pptpgre.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_pptpgre.c 128657 2004-04-26 14:26:54Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_pptpgre.c 129823 2004-05-29 00:51:19Z julian $ |
40 * $Whistle: ng_pptpgre.c,v 1.7 1999/12/08 00:10:06 archie Exp $ 41 */ 42 43/* 44 * PPTP/GRE netgraph node type. 45 * 46 * This node type does the GRE encapsulation as specified for the PPTP 47 * protocol (RFC 2637, section 4). This includes sequencing and --- 195 unchanged lines hidden (view full) --- 243 NULL, 244 &ng_pptp_stats_type 245 }, 246 { 0 } 247}; 248 249/* Node type descriptor */ 250static struct ng_type ng_pptpgre_typestruct = { | 40 * $Whistle: ng_pptpgre.c,v 1.7 1999/12/08 00:10:06 archie Exp $ 41 */ 42 43/* 44 * PPTP/GRE netgraph node type. 45 * 46 * This node type does the GRE encapsulation as specified for the PPTP 47 * protocol (RFC 2637, section 4). This includes sequencing and --- 195 unchanged lines hidden (view full) --- 243 NULL, 244 &ng_pptp_stats_type 245 }, 246 { 0 } 247}; 248 249/* Node type descriptor */ 250static struct ng_type ng_pptpgre_typestruct = { |
251 NG_ABI_VERSION, 252 NG_PPTPGRE_NODE_TYPE, 253 NULL, 254 ng_pptpgre_constructor, 255 ng_pptpgre_rcvmsg, 256 ng_pptpgre_shutdown, 257 ng_pptpgre_newhook, 258 NULL, 259 NULL, 260 ng_pptpgre_rcvdata, 261 ng_pptpgre_disconnect, 262 ng_pptpgre_cmdlist | 251 .version = NG_ABI_VERSION, 252 .name = NG_PPTPGRE_NODE_TYPE, 253 .constructor = ng_pptpgre_constructor, 254 .rcvmsg = ng_pptpgre_rcvmsg, 255 .shutdown = ng_pptpgre_shutdown, 256 .newhook = ng_pptpgre_newhook, 257 .rcvdata = ng_pptpgre_rcvdata, 258 .disconnect = ng_pptpgre_disconnect, 259 .cmdlist = ng_pptpgre_cmdlist, |
263}; 264NETGRAPH_INIT(pptpgre, &ng_pptpgre_typestruct); 265 266#define ERROUT(x) do { error = (x); goto done; } while (0) 267 268/************************************************************************ 269 NETGRAPH NODE STUFF 270 ************************************************************************/ --- 750 unchanged lines hidden --- | 260}; 261NETGRAPH_INIT(pptpgre, &ng_pptpgre_typestruct); 262 263#define ERROUT(x) do { error = (x); goto done; } while (0) 264 265/************************************************************************ 266 NETGRAPH NODE STUFF 267 ************************************************************************/ --- 750 unchanged lines hidden --- |