5 #include "LPC17XX_Ethernet.h"
11 class Network
: public Module
17 void on_module_loaded();
18 void on_idle(void* argument
);
19 void on_main_loop(void* argument
);
20 void on_get_public_data(void* argument
);
21 void dhcpc_configured(uint32_t ipaddr
, uint32_t ipmask
, uint32_t ipgw
);
22 void tapdev_send(void *pPacket
, unsigned int size
);
27 bool webserver_enabled
:1;
28 bool telnet_enabled
:1;
37 uint32_t tick(uint32_t dummy
);
40 CommandQueue
*command_q
;
41 LPC17XX_Ethernet
*ethernet
;
43 struct timer periodic_timer
, arp_timer
;
45 volatile uint32_t tickcnt
;
46 uint8_t mac_address
[6];