files
syscalls/src/ARP_entry.h

36 lines
685 B
C

#ifndef __SYSCALLS_ARP_ENTRY__
#define __SYSCALLS_ARP_ENTRY__
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include <stdint.h>
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__