1 //==========================================================================
5 //==========================================================================
6 //####BSDCOPYRIGHTBEGIN####
8 // -------------------------------------------
10 // Portions of this software may have been derived from OpenBSD,
11 // FreeBSD or other sources, and are covered by the appropriate
12 // copyright disclaimers included herein.
14 // Portions created by Red Hat are
15 // Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
17 // -------------------------------------------
19 //####BSDCOPYRIGHTEND####
20 //==========================================================================
22 //==========================================================================
26 // Networking package initializer class
28 //==========================================================================
29 //==========================================================================
30 //#####DESCRIPTIONBEGIN####
33 // Contributors: gthomas
39 //####DESCRIPTIONEND####
41 //==========================================================================
44 // Network initialization
46 #include <pkgconf/system.h>
47 #include <pkgconf/hal.h>
48 #include <cyg/infra/cyg_type.h>
50 #define NET_INIT CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC)
52 // This is a dummy class just so we can execute the network package
53 // initialization at it's proper priority
55 externC void cyg_net_init(void);
57 class net_init_class {
59 net_init_class(void) {
64 // And here's an instance of the class just to make the code run
65 static net_init_class _net_init NET_INIT;