ng_frame_relay.c (87599) | ng_frame_relay.c (109623) |
---|---|
1 2/* 3 * ng_frame_relay.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_frame_relay.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_frame_relay.c 87599 2001-12-10 08:09:49Z obrien $ | 39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 109623 2003-01-21 08:56:16Z alfred $ |
40 * $Whistle: ng_frame_relay.c,v 1.20 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43/* 44 * This node implements the frame relay protocol, not including 45 * the LMI line management. This means basically keeping track 46 * of which DLCI's are active, doing frame (de)multiplexing, etc. 47 * --- 313 unchanged lines hidden (view full) --- 361 error = ENETDOWN; 362 goto bad; 363 } 364 365 /* Store the DLCI on the front of the packet */ 366 alen = sc->addrlen; 367 if (alen == 0) 368 alen = 2; /* default value for transmit */ | 40 * $Whistle: ng_frame_relay.c,v 1.20 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43/* 44 * This node implements the frame relay protocol, not including 45 * the LMI line management. This means basically keeping track 46 * of which DLCI's are active, doing frame (de)multiplexing, etc. 47 * --- 313 unchanged lines hidden (view full) --- 361 error = ENETDOWN; 362 goto bad; 363 } 364 365 /* Store the DLCI on the front of the packet */ 366 alen = sc->addrlen; 367 if (alen == 0) 368 alen = 2; /* default value for transmit */ |
369 M_PREPEND(m, alen, M_DONTWAIT); | 369 M_PREPEND(m, alen, M_NOWAIT); |
370 if (m == NULL) { 371 error = ENOBUFS; 372 goto bad; 373 } 374 data = mtod(m, char *); 375 376 /* 377 * Shift the lowest bits into the address field untill we are done. --- 142 unchanged lines hidden --- | 370 if (m == NULL) { 371 error = ENOBUFS; 372 goto bad; 373 } 374 data = mtod(m, char *); 375 376 /* 377 * Shift the lowest bits into the address field untill we are done. --- 142 unchanged lines hidden --- |