ng_frame_relay.c (68876) | ng_frame_relay.c (69922) |
---|---|
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 Elisher <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 Elisher <julian@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 68876 2000-11-18 15:17:43Z dwmalone $ | 39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 69922 2000-12-12 18:52:14Z julian $ |
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 * --- 94 unchanged lines hidden (view full) --- 142 NULL, 143 ngfrm_constructor, 144 NULL, 145 ngfrm_rmnode, 146 ngfrm_newhook, 147 NULL, 148 NULL, 149 ngfrm_rcvdata, | 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 * --- 94 unchanged lines hidden (view full) --- 142 NULL, 143 ngfrm_constructor, 144 NULL, 145 ngfrm_rmnode, 146 ngfrm_newhook, 147 NULL, 148 NULL, 149 ngfrm_rcvdata, |
150 ngfrm_rcvdata, | |
151 ngfrm_disconnect, 152 NULL 153}; 154NETGRAPH_INIT(framerelay, &typestruct); 155 156/* 157 * Given a DLCI, return the index of the context table entry for it, 158 * Allocating a new one if needs be, or -1 if none available. --- 173 unchanged lines hidden (view full) --- 332 return 0; 333} 334 335/* 336 * Receive data packet 337 */ 338static int 339ngfrm_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, | 150 ngfrm_disconnect, 151 NULL 152}; 153NETGRAPH_INIT(framerelay, &typestruct); 154 155/* 156 * Given a DLCI, return the index of the context table entry for it, 157 * Allocating a new one if needs be, or -1 if none available. --- 173 unchanged lines hidden (view full) --- 331 return 0; 332} 333 334/* 335 * Receive data packet 336 */ 337static int 338ngfrm_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, |
340 struct mbuf **ret_m, meta_p *ret_meta) | 339 struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp) |
341{ 342 struct ctxinfo *const ctxp = hook->private; 343 int error = 0; 344 int dlci; 345 sc_p sc; 346 int alen; 347 char *data; 348 --- 174 unchanged lines hidden --- | 340{ 341 struct ctxinfo *const ctxp = hook->private; 342 int error = 0; 343 int dlci; 344 sc_p sc; 345 int alen; 346 char *data; 347 --- 174 unchanged lines hidden --- |