90 |
|
|
91 |
|
|
92 |
|
/* |
93 |
+ |
* Remove all protocols |
94 |
+ |
*/ |
95 |
+ |
|
96 |
+ |
static void remove_all_protocols(void) |
97 |
+ |
{ |
98 |
+ |
NetProtocol *p; |
99 |
+ |
while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL) |
100 |
+ |
delete p; |
101 |
+ |
} |
102 |
+ |
|
103 |
+ |
|
104 |
+ |
/* |
105 |
|
* Initialization |
106 |
|
*/ |
107 |
|
|
260 |
|
delete_area(buffer_area); |
261 |
|
|
262 |
|
// Remove all protocols |
263 |
< |
NetProtocol *p; |
252 |
< |
while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL) |
253 |
< |
delete p; |
263 |
> |
remove_all_protocols(); |
264 |
|
} |
265 |
|
} |
266 |
|
|
271 |
|
|
272 |
|
void EtherReset(void) |
273 |
|
{ |
274 |
< |
// Remove all protocols |
265 |
< |
NetProtocol *p; |
266 |
< |
while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL) |
267 |
< |
delete p; |
274 |
> |
remove_all_protocols(); |
275 |
|
} |
276 |
|
|
277 |
|
|