ng_lmi.c (97897) | ng_lmi.c (109623) |
---|---|
1 2/* 3 * ng_lmi.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: Julian Elischer <julian@freebsd.org> 38 * | 1 2/* 3 * ng_lmi.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: Julian Elischer <julian@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_lmi.c 97897 2002-06-05 23:35:31Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_lmi.c 109623 2003-01-21 08:56:16Z alfred $ |
40 * $Whistle: ng_lmi.c,v 1.38 1999/11/01 09:24:52 julian Exp $ 41 */ 42 43/* 44 * This node performs the frame relay LMI protocol. It knows how 45 * to do ITU Annex A, ANSI Annex D, and "Group-of-Four" variants 46 * of the protocol. 47 * --- 268 unchanged lines hidden (view full) --- 316{ 317 struct mbuf *m; 318 char *cptr, *start; 319 int error; 320 meta_p meta = NULL; 321 322 if (sc->lmi_channel == NULL) 323 return; | 40 * $Whistle: ng_lmi.c,v 1.38 1999/11/01 09:24:52 julian Exp $ 41 */ 42 43/* 44 * This node performs the frame relay LMI protocol. It knows how 45 * to do ITU Annex A, ANSI Annex D, and "Group-of-Four" variants 46 * of the protocol. 47 * --- 268 unchanged lines hidden (view full) --- 316{ 317 struct mbuf *m; 318 char *cptr, *start; 319 int error; 320 meta_p meta = NULL; 321 322 if (sc->lmi_channel == NULL) 323 return; |
324 MGETHDR(m, M_DONTWAIT, MT_DATA); | 324 MGETHDR(m, M_NOWAIT, MT_DATA); |
325 if (m == NULL) { 326 log(LOG_ERR, "nglmi: unable to start up LMI processing\n"); 327 return; 328 } 329 m->m_pkthdr.rcvif = NULL; 330 /* Allocate a meta struct (and leave some slop for options to be 331 * added by other modules). */ 332 MALLOC(meta, meta_p, sizeof(*meta) + META_PAD, M_NETGRAPH_META, M_NOWAIT); --- 754 unchanged lines hidden --- | 325 if (m == NULL) { 326 log(LOG_ERR, "nglmi: unable to start up LMI processing\n"); 327 return; 328 } 329 m->m_pkthdr.rcvif = NULL; 330 /* Allocate a meta struct (and leave some slop for options to be 331 * added by other modules). */ 332 MALLOC(meta, meta_p, sizeof(*meta) + META_PAD, M_NETGRAPH_META, M_NOWAIT); --- 754 unchanged lines hidden --- |