ng_frame_relay.c (52539) | ng_frame_relay.c (52722) |
---|---|
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@whistle.com> 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@whistle.com> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 52539 1999-10-26 22:33:54Z julian $ | 39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 52722 1999-11-01 00:31:14Z julian $ |
40 * $Whistle: ng_frame_relay.c,v 1.16 1999/01/28 23:54:53 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 * --- 25 unchanged lines hidden (view full) --- 73#define CHAN_ACTIVE 0x02 /* bottom level active */ 74 int dlci; /* the dlci assigned to this context */ 75 hook_p hook; /* if there's a hook assigned.. */ 76}; 77 78#define MAX_CT 16 /* # of dlci's active at a time (POWER OF 2!) */ 79struct frmrel_softc { 80 int unit; /* which card are we? */ | 40 * $Whistle: ng_frame_relay.c,v 1.16 1999/01/28 23:54:53 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 * --- 25 unchanged lines hidden (view full) --- 73#define CHAN_ACTIVE 0x02 /* bottom level active */ 74 int dlci; /* the dlci assigned to this context */ 75 hook_p hook; /* if there's a hook assigned.. */ 76}; 77 78#define MAX_CT 16 /* # of dlci's active at a time (POWER OF 2!) */ 79struct frmrel_softc { 80 int unit; /* which card are we? */ |
81 char nodename[NG_NODELEN + 1]; /* store our node name */ | |
82 int datahooks; /* number of data hooks attached */ 83 node_p node; /* netgraph node */ 84 int addrlen; /* address header length */ 85 int flags; /* state */ 86 int mtu; /* guess */ 87 u_char remote_seq; /* sequence number the remote sent */ 88 u_char local_seq; /* sequence number the remote rcvd */ 89 u_short ALT[1024]; /* map DLCIs to CTX */ --- 437 unchanged lines hidden --- | 81 int datahooks; /* number of data hooks attached */ 82 node_p node; /* netgraph node */ 83 int addrlen; /* address header length */ 84 int flags; /* state */ 85 int mtu; /* guess */ 86 u_char remote_seq; /* sequence number the remote sent */ 87 u_char local_seq; /* sequence number the remote rcvd */ 88 u_short ALT[1024]; /* map DLCIs to CTX */ --- 437 unchanged lines hidden --- |