We need to intialize both core and driver layer stuff so have a standard call
which calls into the driver init
extern arg_t net_ioctl(uint8_t op, void *p);
extern void netdev_init(void);
extern struct socket *sock_find(uint8_t type, uint8_t sv, struct sockaddrs *sa);
-
+extern void sock_init(void);
extern struct netdevice net_dev;
/* Add 64 swaps (4MB) to use the entire J drive */
for (i = 0; i < MAX_SWAPS; i++)
swapmap_add(i);
- netdev_init();
+ sock_init();
}
uint8_t n = 0;
while (s < sockets + NSOCKET)
s++->s_num = n;
+ netdev_init();
}