ng_UI.c (87599) | ng_UI.c (109623) |
---|---|
1 2/* 3 * ng_UI.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_UI.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_UI.c 87599 2001-12-10 08:09:49Z obrien $ | 39 * $FreeBSD: head/sys/netgraph/ng_UI.c 109623 2003-01-21 08:56:16Z alfred $ |
40 * $Whistle: ng_UI.c,v 1.14 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/errno.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 141 unchanged lines hidden (view full) --- 189 190 /* Must be UI frame */ 191 if (*ptr++ != HDLC_UI) 192 ERROUT(0); 193 194 m_adj(m, ptr - start); 195 NG_FWD_NEW_DATA(error, item, priv->uplink, m); /* m -> NULL */ 196 } else if (hook == priv->uplink) { | 40 * $Whistle: ng_UI.c,v 1.14 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/errno.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 141 unchanged lines hidden (view full) --- 189 190 /* Must be UI frame */ 191 if (*ptr++ != HDLC_UI) 192 ERROUT(0); 193 194 m_adj(m, ptr - start); 195 NG_FWD_NEW_DATA(error, item, priv->uplink, m); /* m -> NULL */ 196 } else if (hook == priv->uplink) { |
197 M_PREPEND(m, 1, M_DONTWAIT); /* Prepend IP NLPID */ | 197 M_PREPEND(m, 1, M_NOWAIT); /* Prepend IP NLPID */ |
198 if (!m) 199 ERROUT(ENOBUFS); 200 mtod(m, u_char *)[0] = HDLC_UI; 201 NG_FWD_NEW_DATA(error, item, priv->downlink, m); /* m -> NULL */ 202 } else 203 panic(__func__); 204 205done: --- 46 unchanged lines hidden --- | 198 if (!m) 199 ERROUT(ENOBUFS); 200 mtod(m, u_char *)[0] = HDLC_UI; 201 NG_FWD_NEW_DATA(error, item, priv->downlink, m); /* m -> NULL */ 202 } else 203 panic(__func__); 204 205done: --- 46 unchanged lines hidden --- |