justincormack / ljsyscall

LuaJIT Unix syscall FFI
http://www.myriabit.com/ljsyscall/
Other
440 stars 53 forks source link

linux/nl.lua: Use ndmsg struct instead of rtmsg for neighbors #220

Closed sileht closed 6 years ago

sileht commented 6 years ago

Currently the return type of neighbor is rtmsg. This make impossible to access the state/ifindex/type/...

This change implements the ndmsg in linux/nl.lua and use it for *neigh methods.

justincormack commented 6 years ago

Thanks very much!