Deleted Added
full compact
ng_frame_relay.c (67506) ng_frame_relay.c (68876)
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 67506 2000-10-24 17:32:45Z julian $
39 * $FreeBSD: head/sys/netgraph/ng_frame_relay.c 68876 2000-11-18 15:17:43Z dwmalone $
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 *

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

213 * Node constructor
214 */
215static int
216ngfrm_constructor(node_p *nodep)
217{
218 sc_p sc;
219 int error = 0;
220
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 *

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

213 * Node constructor
214 */
215static int
216ngfrm_constructor(node_p *nodep)
217{
218 sc_p sc;
219 int error = 0;
220
221 MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT);
221 MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO);
222 if (!sc)
223 return (ENOMEM);
222 if (!sc)
223 return (ENOMEM);
224 bzero(sc, sizeof(*sc));
225 if ((error = ng_make_node_common(&typestruct, nodep))) {
226 FREE(sc, M_NETGRAPH);
227 return (error);
228 }
229 sc->addrlen = 2; /* default */
230
231 /* Link the node and our private info */
232 (*nodep)->private = sc;

--- 291 unchanged lines hidden ---
224 if ((error = ng_make_node_common(&typestruct, nodep))) {
225 FREE(sc, M_NETGRAPH);
226 return (error);
227 }
228 sc->addrlen = 2; /* default */
229
230 /* Link the node and our private info */
231 (*nodep)->private = sc;

--- 291 unchanged lines hidden ---