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.


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