2 Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3 Licenced under Academic Free License version 3.0
16 #define MODNAME "lanman"
17 IRX_ID(MODNAME
, 1, 1);
19 static g_param_t g_param
= {
20 { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, // needed for broadcast
21 { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
22 IP_ADDR(192, 168, 0, 2),
23 IP_ADDR(192, 168, 0, 10),
28 //-------------------------------------------------------------------------
29 int _start(int argc
, char *argv
[])
32 if (smap_init(&g_param
.eth_addr_src
[0]) != 0)
33 return MODULE_NO_RESIDENT_END
;
35 // Does ARP request and wait reply to get server MAC address
48 return MODULE_RESIDENT_END
;