debug.c (b92367948a1777de80dd7ee31a15a90df0b727bf) debug.c (41fa1ea96a1c8e170942421c27069006423dc734)
1/*
2 * debug.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

54#include <netgraph/ng_message.h>
55#include <netgraph/ng_socket.h>
56
57#include "netgraph.h"
58#include "internal.h"
59
60#include <netgraph/ng_UI.h>
61#include <netgraph/ng_async.h>
1/*
2 * debug.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

54#include <netgraph/ng_message.h>
55#include <netgraph/ng_socket.h>
56
57#include "netgraph.h"
58#include "internal.h"
59
60#include <netgraph/ng_UI.h>
61#include <netgraph/ng_async.h>
62#include <netgraph/ng_atmllc.h>
62#include <netgraph/ng_bpf.h>
63#include <netgraph/ng_bpf.h>
64#include <netgraph/ng_bridge.h>
63#include <netgraph/ng_cisco.h>
65#include <netgraph/ng_cisco.h>
66#include <netgraph/ng_device.h>
64#include <netgraph/ng_echo.h>
67#include <netgraph/ng_echo.h>
68#include <netgraph/ng_eiface.h>
69#include <netgraph/ng_etf.h>
65#include <netgraph/ng_ether.h>
70#include <netgraph/ng_ether.h>
71#include <netgraph/ng_fec.h>
66#include <netgraph/ng_frame_relay.h>
72#include <netgraph/ng_frame_relay.h>
73#include <netgraph/ng_gif.h>
74#include <netgraph/ng_gif_demux.h>
67#include <netgraph/ng_hole.h>
75#include <netgraph/ng_hole.h>
76#include <netgraph/ng_hub.h>
68#include <netgraph/ng_iface.h>
77#include <netgraph/ng_iface.h>
78#include <netgraph/ng_ip_input.h>
79#include <netgraph/ng_ipfw.h>
69#include <netgraph/ng_ksocket.h>
80#include <netgraph/ng_ksocket.h>
81#include <netgraph/ng_l2tp.h>
70#include <netgraph/ng_lmi.h>
82#include <netgraph/ng_lmi.h>
83#include <netgraph/ng_mppc.h>
84#include <netgraph/ng_nat.h>
85#include <netgraph/ng_one2many.h>
71#include <netgraph/ng_ppp.h>
72#include <netgraph/ng_pppoe.h>
86#include <netgraph/ng_ppp.h>
87#include <netgraph/ng_pppoe.h>
88#include <netgraph/ng_pptpgre.h>
73#include <netgraph/ng_rfc1490.h>
74#include <netgraph/ng_socket.h>
89#include <netgraph/ng_rfc1490.h>
90#include <netgraph/ng_socket.h>
91#include <netgraph/ng_source.h>
92#include <netgraph/ng_split.h>
93#include <netgraph/ng_sppp.h>
94#include <netgraph/ng_tcpmss.h>
75#include <netgraph/ng_tee.h>
76#include <netgraph/ng_tty.h>
77#include <netgraph/ng_vjc.h>
95#include <netgraph/ng_tee.h>
96#include <netgraph/ng_tty.h>
97#include <netgraph/ng_vjc.h>
98#include <netgraph/ng_vlan.h>
78#ifdef WHISTLE
79#include <machine/../isa/df_def.h>
80#include <machine/../isa/if_wfra.h>
81#include <machine/../isa/ipac.h>
82#include <netgraph/ng_df.h>
83#include <netgraph/ng_ipac.h>
99#ifdef WHISTLE
100#include <machine/../isa/df_def.h>
101#include <machine/../isa/if_wfra.h>
102#include <machine/../isa/ipac.h>
103#include <netgraph/ng_df.h>
104#include <netgraph/ng_ipac.h>
84#include <netgraph/ng_mppc.h>
85#include <netgraph/ng_pptpgre.h>
86#include <netgraph/ng_tn.h>
87#endif
88
89/* Global debug level */
90int _gNgDebugLevel = 0;
91
92/* Debug printing functions */
93void (*_NgLog) (const char *fmt,...) = warn;

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

103};
104
105#define COOKIE(c) { NGM_ ## c ## _COOKIE, #c }
106
107/* List of known cookies */
108static const struct ng_cookie cookies[] = {
109 COOKIE(UI),
110 COOKIE(ASYNC),
105#include <netgraph/ng_tn.h>
106#endif
107
108/* Global debug level */
109int _gNgDebugLevel = 0;
110
111/* Debug printing functions */
112void (*_NgLog) (const char *fmt,...) = warn;

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

122};
123
124#define COOKIE(c) { NGM_ ## c ## _COOKIE, #c }
125
126/* List of known cookies */
127static const struct ng_cookie cookies[] = {
128 COOKIE(UI),
129 COOKIE(ASYNC),
130 COOKIE(ATMLLC),
111 COOKIE(BPF),
131 COOKIE(BPF),
132 COOKIE(BRIDGE),
112 COOKIE(CISCO),
133 COOKIE(CISCO),
134 COOKIE(DEVICE),
113 COOKIE(ECHO),
135 COOKIE(ECHO),
136 COOKIE(EIFACE),
137 COOKIE(ETF),
114 COOKIE(ETHER),
138 COOKIE(ETHER),
139 COOKIE(FEC),
115 COOKIE(FRAMERELAY),
140 COOKIE(FRAMERELAY),
141 COOKIE(GIF),
142 COOKIE(GIF_DEMUX),
116 COOKIE(GENERIC),
117 COOKIE(HOLE),
143 COOKIE(GENERIC),
144 COOKIE(HOLE),
145 COOKIE(HUB),
118 COOKIE(IFACE),
146 COOKIE(IFACE),
147 COOKIE(IP_INPUT),
148 COOKIE(IPFW),
119 COOKIE(KSOCKET),
149 COOKIE(KSOCKET),
150 COOKIE(L2TP),
120 COOKIE(LMI),
151 COOKIE(LMI),
152 COOKIE(MPPC),
153 COOKIE(NAT),
154 COOKIE(ONE2MANY),
121 COOKIE(PPP),
122 COOKIE(PPPOE),
155 COOKIE(PPP),
156 COOKIE(PPPOE),
157 COOKIE(PPTPGRE),
123 COOKIE(RFC1490),
124 COOKIE(SOCKET),
158 COOKIE(RFC1490),
159 COOKIE(SOCKET),
160 COOKIE(SOURCE),
161 COOKIE(SPLIT),
162 COOKIE(SPPP),
163 COOKIE(TCPMSS),
125 COOKIE(TEE),
126 COOKIE(TTY),
127 COOKIE(VJC),
164 COOKIE(TEE),
165 COOKIE(TTY),
166 COOKIE(VJC),
167 COOKIE(VLAN),
128#ifdef WHISTLE
129 COOKIE(DF),
130 COOKIE(IPAC),
168#ifdef WHISTLE
169 COOKIE(DF),
170 COOKIE(IPAC),
131 COOKIE(MPPC),
132 COOKIE(PPTPGRE),
133 COOKIE(TN),
134 COOKIE(WFRA),
135#endif
136 { 0, NULL }
137};
138
139/*
140 * Set debug level, ie, verbosity, if "level" is non-negative.

--- 168 unchanged lines hidden ---
171 COOKIE(TN),
172 COOKIE(WFRA),
173#endif
174 { 0, NULL }
175};
176
177/*
178 * Set debug level, ie, verbosity, if "level" is non-negative.

--- 168 unchanged lines hidden ---