ng_gif.c (108172) | ng_gif.c (109623) |
---|---|
1/* 2 * ng_gif.c 3 * 4 * Copyright 2001 The Aerospace Corporation. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 46 unchanged lines hidden (view full) --- 55 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 56 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 57 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 58 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 59 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 60 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 61 * OF SUCH DAMAGE. 62 * | 1/* 2 * ng_gif.c 3 * 4 * Copyright 2001 The Aerospace Corporation. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 46 unchanged lines hidden (view full) --- 55 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 56 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 57 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 58 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 59 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 60 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 61 * OF SUCH DAMAGE. 62 * |
63 * $FreeBSD: head/sys/netgraph/ng_gif.c 108172 2002-12-22 05:35:03Z hsu $ | 63 * $FreeBSD: head/sys/netgraph/ng_gif.c 109623 2003-01-21 08:56:16Z alfred $ |
64 */ 65 66/* 67 * ng_gif(4) netgraph node type 68 */ 69 70#include <sys/param.h> 71#include <sys/systm.h> --- 232 unchanged lines hidden (view full) --- 304 * Doing anything more is likely to get more 305 * expensive than it's worth.. 306 * it's probable that everything else is in one 307 * big lump. The next node will do an m_pullup() 308 * for exactly the amount of data it needs and 309 * hopefully everything after that will not 310 * need one. So let's just use M_PREPEND. 311 */ | 64 */ 65 66/* 67 * ng_gif(4) netgraph node type 68 */ 69 70#include <sys/param.h> 71#include <sys/systm.h> --- 232 unchanged lines hidden (view full) --- 304 * Doing anything more is likely to get more 305 * expensive than it's worth.. 306 * it's probable that everything else is in one 307 * big lump. The next node will do an m_pullup() 308 * for exactly the amount of data it needs and 309 * hopefully everything after that will not 310 * need one. So let's just use M_PREPEND. 311 */ |
312 M_PREPEND(m, sizeof (tmp_af), M_DONTWAIT); | 312 M_PREPEND(m, sizeof (tmp_af), M_NOWAIT); |
313 if (m == NULL) { 314 error = ENOBUFS; 315 goto done; 316 } 317 318#if 0 319copy: 320#endif --- 281 unchanged lines hidden --- | 313 if (m == NULL) { 314 error = ENOBUFS; 315 goto done; 316 } 317 318#if 0 319copy: 320#endif --- 281 unchanged lines hidden --- |