Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


modified copyright tags
[palacios.git] / palacios / src / geekos / net.c
1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
3
4
5 #include <geekos/net.h>
6 #include <geekos/socket.h>
7 #include <geekos/ne2k.h>
8
9 void Init_Network() {
10   init_socket_layer();
11 }
12
13
14
15
16 void test_network() {
17
18     uchar_t local_addr[4];
19     uchar_t remote_addr[4];
20
21     local_addr[0] = 10;
22     local_addr[1] = 0;
23     local_addr[2] = 2;
24     local_addr[3] = 21;
25
26     set_ip_addr(local_addr);
27
28     remote_addr[0] = 10;
29     remote_addr[1] = 0;
30     remote_addr[2] = 2;
31     remote_addr[3] = 20;
32
33
34     connect(remote_addr, 4301);
35
36 }