+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, Lei Xia <xiaxlei@gmail.com> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
#include <geekos/socket.h>
#include <geekos/malloc.h>
#include <geekos/ne2k.h>
static int Packet_Received(struct NE2K_Packet_Info* info, uchar_t *pkt);
-static void periodic_caller(int timer_id);
+static void periodic_caller(int timer_id, void * arg);
void init_socket_layer() {
int i = 0;
Init_Ne2k(&Packet_Received);
iflag = Begin_Int_Atomic();
- Start_Timer(2, periodic_caller);
+ Start_Timer(2, periodic_caller, NULL);
End_Int_Atomic(iflag);
}
-static void periodic_caller(int timer_id) {
+static void periodic_caller(int timer_id, void * arg) {
int i;
//handle the periodic calls of uIP