Deleted Added
full compact
ng_lmi.c (68876) ng_lmi.c (69922)
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 68876 2000-11-18 15:17:43Z dwmalone $
39 * $FreeBSD: head/sys/netgraph/ng_lmi.c 69922 2000-12-12 18:52:14Z julian $
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 *

--- 55 unchanged lines hidden (view full) ---

103 NULL,
104 nglmi_constructor,
105 nglmi_rcvmsg,
106 nglmi_rmnode,
107 nglmi_newhook,
108 NULL,
109 NULL,
110 nglmi_rcvdata,
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 *

--- 55 unchanged lines hidden (view full) ---

103 NULL,
104 nglmi_constructor,
105 nglmi_rcvmsg,
106 nglmi_rmnode,
107 nglmi_newhook,
108 NULL,
109 NULL,
110 nglmi_rcvdata,
111 nglmi_rcvdata,
112 nglmi_disconnect,
113 NULL
114};
115NETGRAPH_INIT(lmi, &typestruct);
116
117/*
118 * Info and status per node
119 */

--- 434 unchanged lines hidden (view full) ---

554 } while (0)
555
556/*
557 * receive data, and use it to update our status.
558 * Anything coming in on the debug port is discarded.
559 */
560static int
561nglmi_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
111 nglmi_disconnect,
112 NULL
113};
114NETGRAPH_INIT(lmi, &typestruct);
115
116/*
117 * Info and status per node
118 */

--- 434 unchanged lines hidden (view full) ---

553 } while (0)
554
555/*
556 * receive data, and use it to update our status.
557 * Anything coming in on the debug port is discarded.
558 */
559static int
560nglmi_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
562 struct mbuf **ret_m, meta_p *ret_meta)
561 struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp)
563{
564 sc_p sc = hook->node->private;
565 u_char *data;
566 unsigned short dlci;
567 u_short packetlen;
568 int resptype_seen = 0;
569 int seq_seen = 0;
570

--- 522 unchanged lines hidden ---
562{
563 sc_p sc = hook->node->private;
564 u_char *data;
565 unsigned short dlci;
566 u_short packetlen;
567 int resptype_seen = 0;
568 int seq_seen = 0;
569

--- 522 unchanged lines hidden ---