add something...

This commit is contained in:
2025-04-03 21:27:34 +05:00
parent 6cfff3ee65
commit 896579518c
7 changed files with 3015 additions and 0 deletions

36
src/ARP_entry.h Normal file
View File

@@ -0,0 +1,36 @@
#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;
char MAC[6];
uint16_t Status;
uint16_t TTL;
};
#define syscalls_ARPEntry_name "ARPEntry"
#define syscalls_ARPEntry_metatable_name syscalls_ARPEntry_name ".mt"
/*
* Create ARPEntry
*/
void syscalls_pushARPEntry(lua_State *L, struct ARP_entry *entry);
/*
* 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