#ifndef __SYSCALLS_ARP_ENTRY__ #define __SYSCALLS_ARP_ENTRY__ #include #include #include #include struct ARP_entry { uint32_t IP; uint8_t MAC[6]; uint16_t Status; uint16_t TTL; }; #define syscalls_ARPEntry_name "ARPEntry" #define syscalls_ARPEntry_metatable_name syscalls_ARPEntry_name ".mt" /* * Create ARPEntry */ struct ARP_entry* syscalls_pushARPEntry(lua_State* L); /* * shell of syscalls_createARPEntry for lua */ int syscalls_newARPEntry(lua_State* L); int syscalls_indexARPEntry(lua_State* L); int syscalls_newindexARPEntry(lua_State* L); void syscalls_register_ARPEntry(lua_State* L); #endif // __SYSCALLS_ARP_ENTRY__