Deleted Added
full compact
ng_sscfu.c (121461) ng_sscfu.c (123812)
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Netgraph module for ITU-T Q.2120 UNI SSCF.
30 */
31
32#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Netgraph module for ITU-T Q.2120 UNI SSCF.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netgraph/atm/sscfu/ng_sscfu.c 121461 2003-10-24 07:39:11Z harti $");
33__FBSDID("$FreeBSD: head/sys/netgraph/atm/sscfu/ng_sscfu.c 123812 2003-12-24 18:51:01Z alfred $");
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>
38#include <sys/malloc.h>
39#include <sys/mbuf.h>
40#include <sys/errno.h>
41#include <sys/syslog.h>

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

201 sbuf_printf(&sbuf, "lower hook: %s connected to %s:%s\n",
202 NG_HOOK_NAME(priv->lower),
203 NG_NODE_NAME(NG_HOOK_NODE(NG_HOOK_PEER(priv->lower))),
204 NG_HOOK_NAME(NG_HOOK_PEER(priv->lower)));
205 else
206 sbuf_printf(&sbuf, "lower hook: <not connected>\n");
207
208 sbuf_printf(&sbuf, "sscf state: %s\n",
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>
38#include <sys/malloc.h>
39#include <sys/mbuf.h>
40#include <sys/errno.h>
41#include <sys/syslog.h>

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

201 sbuf_printf(&sbuf, "lower hook: %s connected to %s:%s\n",
202 NG_HOOK_NAME(priv->lower),
203 NG_NODE_NAME(NG_HOOK_NODE(NG_HOOK_PEER(priv->lower))),
204 NG_HOOK_NAME(NG_HOOK_PEER(priv->lower)));
205 else
206 sbuf_printf(&sbuf, "lower hook: <not connected>\n");
207
208 sbuf_printf(&sbuf, "sscf state: %s\n",
209 priv->enabled == NULL ? "<disabled>" :
209 priv->enabled == 0 ? "<disabled>" :
210 sscfu_statename(sscfu_getstate(priv->sscf)));
211
212 sbuf_finish(&sbuf);
213 return (sbuf_len(&sbuf));
214}
215
216static int
217ng_sscfu_rcvmsg(node_p node, item_p item, hook_p lasthook)

--- 394 unchanged lines hidden ---
210 sscfu_statename(sscfu_getstate(priv->sscf)));
211
212 sbuf_finish(&sbuf);
213 return (sbuf_len(&sbuf));
214}
215
216static int
217ng_sscfu_rcvmsg(node_p node, item_p item, hook_p lasthook)

--- 394 unchanged lines hidden ---