X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fmain.c;fp=palacios%2Fsrc%2Fgeekos%2Fmain.c;h=eab0aa045219cbd9ffaea996aced0f57a3d2e1c4;hb=c3bf21ce75d6ea7ffb74b2d548d0c0b2d2843ea7;hp=f634c966d9efb110cfb14e2ca83987d13131a910;hpb=b2d5697513a87d61e63a4317c89a0927b62b7ea1;p=palacios-OLD.git diff --git a/palacios/src/geekos/main.c b/palacios/src/geekos/main.c index f634c96..eab0aa0 100644 --- a/palacios/src/geekos/main.c +++ b/palacios/src/geekos/main.c @@ -3,7 +3,7 @@ * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003, Jeffrey K. Hollingsworth * Copyright (c) 2004, Iulian Neamtiu - * $Revision: 1.44 $ + * $Revision: 1.45 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -38,11 +38,14 @@ #include +#if 0 #include #include #include +#endif -#include +#include +//#include #define SPEAKER_PORT 0x61 #define TEST_NE2K 0 @@ -247,7 +250,28 @@ void Main(struct Boot_Info* bootInfo) Init_Stubs(); -#if TEST_NE2K +#ifdef TEST_NE2K + { + init_network(); + uchar_t local_addr[4]; + uchar_t remote_addr[4]; + + local_addr[0] = 10; + local_addr[1] = 0; + local_addr[2] = 2; + local_addr[3] = 20; + + set_ip_addr(local_addr); + + remote_addr[0] = 10; + remote_addr[1] = 0; + remote_addr[2] = 2; + remote_addr[3] = 21; + + + connect(remote_addr, 4301); + } +#elif 0 Init_Ne2k(&Packet_Received); uip_init(); uip_arp_init();