ng_sppp.c (147256) | ng_sppp.c (147611) |
---|---|
1/* 2 * ng_sppp.c Netgraph to Sppp module. 3 */ 4 5/*- 6 * Copyright (C) 2002-2004 Cronyx Engineering. 7 * Copyright (C) 2002-2004 Roman Kurakin <rik@cronyx.ru> 8 * 9 * This software is distributed with NO WARRANTIES, not even the implied 10 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 * 12 * Authors grant any other persons or organisations a permission to use, 13 * modify and redistribute this software in source and binary forms, 14 * as long as this message is kept with the software, all derivative 15 * works or modified versions. 16 * 17 * Cronyx Id: ng_sppp.c,v 1.1.2.10 2004/03/01 15:17:21 rik Exp $ 18 */ 19#include <sys/cdefs.h> | 1/* 2 * ng_sppp.c Netgraph to Sppp module. 3 */ 4 5/*- 6 * Copyright (C) 2002-2004 Cronyx Engineering. 7 * Copyright (C) 2002-2004 Roman Kurakin <rik@cronyx.ru> 8 * 9 * This software is distributed with NO WARRANTIES, not even the implied 10 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 * 12 * Authors grant any other persons or organisations a permission to use, 13 * modify and redistribute this software in source and binary forms, 14 * as long as this message is kept with the software, all derivative 15 * works or modified versions. 16 * 17 * Cronyx Id: ng_sppp.c,v 1.1.2.10 2004/03/01 15:17:21 rik Exp $ 18 */ 19#include <sys/cdefs.h> |
20__FBSDID("$FreeBSD: head/sys/netgraph/ng_sppp.c 147256 2005-06-10 16:49:24Z brooks $"); | 20__FBSDID("$FreeBSD: head/sys/netgraph/ng_sppp.c 147611 2005-06-26 18:11:11Z dwmalone $"); |
21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/errno.h> 25#include <sys/kernel.h> 26#include <sys/malloc.h> 27#include <sys/mbuf.h> 28#include <sys/errno.h> --- 255 unchanged lines hidden (view full) --- 284 /* Give this node the same name as the interface (if possible) */ 285 if (ng_name_node(node, SP2IFP(pp)->if_xname) != 0) 286 log (LOG_WARNING, "%s: can't acquire netgraph name\n", 287 SP2IFP(pp)->if_xname); 288 289 /* Attach the interface */ 290 sppp_attach (ifp); 291 if_attach (ifp); | 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/errno.h> 25#include <sys/kernel.h> 26#include <sys/malloc.h> 27#include <sys/mbuf.h> 28#include <sys/errno.h> --- 255 unchanged lines hidden (view full) --- 284 /* Give this node the same name as the interface (if possible) */ 285 if (ng_name_node(node, SP2IFP(pp)->if_xname) != 0) 286 log (LOG_WARNING, "%s: can't acquire netgraph name\n", 287 SP2IFP(pp)->if_xname); 288 289 /* Attach the interface */ 290 sppp_attach (ifp); 291 if_attach (ifp); |
292 bpfattach (ifp, DLT_NULL, sizeof(u_int)); | 292 bpfattach (ifp, DLT_NULL, sizeof(u_int32_t)); |
293 294 /* Done */ 295 return (0); 296} 297 298/* 299 * Give our ok for a hook to be added 300 */ --- 122 unchanged lines hidden --- | 293 294 /* Done */ 295 return (0); 296} 297 298/* 299 * Give our ok for a hook to be added 300 */ --- 122 unchanged lines hidden --- |