root / Whitix / branches / scheduler / net / network.c

Revision 608, 1.3 kB (checked in by mwhitworth, 7 months ago)

(Hopefully) convert all source and header files to UNIX line endings.

Line 
1/*  This file is part of Whitix.
2 *
3 *  Whitix is free software; you can redistribute it and/or modify
4 *  it under the terms of the GNU General Public License as published by
5 *  the Free Software Foundation; either version 2 of the License, or
6 *  (at your option) any later version.
7 *
8 *  Whitix is distributed in the hope that it will be useful,
9 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 *  GNU General Public License for more details.
12 *
13 *  You should have received a copy of the GNU General Public License
14 *  along with Whitix; if not, write to the Free Software
15 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16 *
17 */
18
19#include <console.h>
20#include <init.h>
21#include <module.h>
22#include <net/socket.h>
23#include <typedefs.h>
24
25/***********************************************************************
26 *
27 * FUNCTION:    NetworkInit
28 *
29 * DESCRIPTION: Initialize basic network data structures common to all
30 *                              protocols, such as the socket subsystem.
31 *
32 * PARAMETERS:  Nothing.
33 *
34 * RETURNS:     The return value of SocketInit (for now).
35 *
36 ***********************************************************************/
37
38int NetworkInit()
39{
40        KePrint("NETWORK: Initialising network stack.\n");
41
42        EthInit();
43
44        return SocketInit();
45}
46
47SubSysInit(NetworkInit);
Note: See TracBrowser for help on using the browser.