.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | * |
---|
3 | 4 | * (C)Copyright 1998,1999 SysKonnect, |
---|
4 | 5 | * a business unit of Schneider & Koch & Co. Datensysteme GmbH. |
---|
5 | 6 | * |
---|
6 | 7 | * See the file "skfddi.c" for further information. |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | 8 | * |
---|
13 | 9 | * The information in this file is provided "AS IS" without warranty. |
---|
14 | 10 | * |
---|
.. | .. |
---|
39 | 35 | |
---|
40 | 36 | #define KERNEL |
---|
41 | 37 | #include "h/smtstate.h" |
---|
42 | | - |
---|
43 | | -#ifndef lint |
---|
44 | | -static const char ID_sccs[] = "@(#)cfm.c 2.18 98/10/06 (C) SK " ; |
---|
45 | | -#endif |
---|
46 | 38 | |
---|
47 | 39 | /* |
---|
48 | 40 | * FSM Macros |
---|
.. | .. |
---|
212 | 204 | { |
---|
213 | 205 | int state ; /* remember last state */ |
---|
214 | 206 | int cond ; |
---|
215 | | - int oldstate ; |
---|
216 | 207 | |
---|
217 | 208 | /* We will do the following: */ |
---|
218 | 209 | /* - compute the variable WC_Flag for every port (This is where */ |
---|
.. | .. |
---|
226 | 217 | /* - change the portstates */ |
---|
227 | 218 | cem_priv_state (smc, event); |
---|
228 | 219 | |
---|
229 | | - oldstate = smc->mib.fddiSMTCF_State ; |
---|
230 | 220 | do { |
---|
231 | 221 | DB_CFM("CFM : state %s%s event %s", |
---|
232 | 222 | smc->mib.fddiSMTCF_State & AFLAG ? "ACTIONS " : "", |
---|
.. | .. |
---|
254 | 244 | if (cond != smc->mib.fddiSMTPeerWrapFlag) |
---|
255 | 245 | smt_srf_event(smc,SMT_COND_SMT_PEER_WRAP,0,cond) ; |
---|
256 | 246 | |
---|
257 | | -#if 0 |
---|
258 | 247 | /* |
---|
259 | | - * Don't send ever MAC_PATH_CHANGE events. Our MAC is hard-wired |
---|
| 248 | + * Don't ever send MAC_PATH_CHANGE events. Our MAC is hard-wired |
---|
260 | 249 | * to the primary path. |
---|
261 | 250 | */ |
---|
262 | | - /* |
---|
263 | | - * path change |
---|
264 | | - */ |
---|
265 | | - if (smc->mib.fddiSMTCF_State != oldstate) { |
---|
266 | | - smt_srf_event(smc,SMT_EVENT_MAC_PATH_CHANGE,INDEX_MAC,0) ; |
---|
267 | | - } |
---|
268 | | -#endif |
---|
| 251 | + |
---|
269 | 252 | #endif /* no SLIM_SMT */ |
---|
270 | 253 | |
---|
271 | 254 | /* |
---|