Deleted Added
full compact
ng_vjc.c (67506) ng_vjc.c (68876)
1
2/*
3 * ng_vjc.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_vjc.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_vjc.c 67506 2000-10-24 17:32:45Z julian $
39 * $FreeBSD: head/sys/netgraph/ng_vjc.c 68876 2000-11-18 15:17:43Z dwmalone $
40 * $Whistle: ng_vjc.c,v 1.17 1999/11/01 09:24:52 julian Exp $
41 */
42
43/*
44 * This node performs Van Jacobson IP header (de)compression.
45 * You must have included net/slcompress.c in your kernel compilation.
46 */
47

--- 199 unchanged lines hidden (view full) ---

247 */
248static int
249ng_vjc_constructor(node_p *nodep)
250{
251 priv_p priv;
252 int error;
253
254 /* Allocate private structure */
40 * $Whistle: ng_vjc.c,v 1.17 1999/11/01 09:24:52 julian Exp $
41 */
42
43/*
44 * This node performs Van Jacobson IP header (de)compression.
45 * You must have included net/slcompress.c in your kernel compilation.
46 */
47

--- 199 unchanged lines hidden (view full) ---

247 */
248static int
249ng_vjc_constructor(node_p *nodep)
250{
251 priv_p priv;
252 int error;
253
254 /* Allocate private structure */
255 MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT);
255 MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO);
256 if (priv == NULL)
257 return (ENOMEM);
256 if (priv == NULL)
257 return (ENOMEM);
258 bzero(priv, sizeof(*priv));
259
260 /* Call generic node constructor */
261 if ((error = ng_make_node_common(&ng_vjc_typestruct, nodep))) {
262 FREE(priv, M_NETGRAPH);
263 return (error);
264 }
265 (*nodep)->private = priv;
266

--- 361 unchanged lines hidden ---
258
259 /* Call generic node constructor */
260 if ((error = ng_make_node_common(&ng_vjc_typestruct, nodep))) {
261 FREE(priv, M_NETGRAPH);
262 return (error);
263 }
264 (*nodep)->private = priv;
265

--- 361 unchanged lines hidden ---