Deleted Added
full compact
sig_coord.c (131826) sig_coord.c (133492)
1/*
2 * Copyright (c) 1996-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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
1/*
2 * Copyright (c) 1996-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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * $Begemot: libunimsg/netnatm/sig/sig_coord.c,v 1.11 2004/07/08 08:22:20 brandt Exp $
29 * $Begemot: libunimsg/netnatm/sig/sig_coord.c,v 1.12 2004/08/05 07:11:01 brandt Exp $
30 *
31 * Coordinator
32 */
33
34#include <netnatm/unimsg.h>
35#include <netnatm/saal/sscfudef.h>
36#include <netnatm/msg/unistruct.h>
37#include <netnatm/msg/unimsglib.h>
38#include <netnatm/sig/uni.h>
39
40#include <netnatm/sig/unipriv.h>
41#include <netnatm/sig/unimkmsg.h>
42
30 *
31 * Coordinator
32 */
33
34#include <netnatm/unimsg.h>
35#include <netnatm/saal/sscfudef.h>
36#include <netnatm/msg/unistruct.h>
37#include <netnatm/msg/unimsglib.h>
38#include <netnatm/sig/uni.h>
39
40#include <netnatm/sig/unipriv.h>
41#include <netnatm/sig/unimkmsg.h>
42
43#define STR(S) [S] #S
43#define STR(S) [S] = #S
44static const char *const cunames[] = {
45 STR(CU_STAT0),
46 STR(CU_STAT1),
47 STR(CU_STAT2),
48 STR(CU_STAT3),
49};
50
44static const char *const cunames[] = {
45 STR(CU_STAT0),
46 STR(CU_STAT1),
47 STR(CU_STAT2),
48 STR(CU_STAT3),
49};
50
51#define DEF_PRIV_SIG(NAME, FROM) [SIG##NAME] "SIG"#NAME,
51#define DEF_PRIV_SIG(NAME, FROM) [SIG##NAME] = "SIG"#NAME,
52static const char *const coord_sigs[] = {
53 DEF_COORD_SIGS
54};
55#undef DEF_PRIV_SIG
56
57static void sig_all_calls(struct uni *, u_int sig);
58static void set_custat(struct uni *, enum cu_stat);
59

--- 1112 unchanged lines hidden ---
52static const char *const coord_sigs[] = {
53 DEF_COORD_SIGS
54};
55#undef DEF_PRIV_SIG
56
57static void sig_all_calls(struct uni *, u_int sig);
58static void set_custat(struct uni *, enum cu_stat);
59

--- 1112 unchanged lines hidden ---