justincormack / ljsyscall

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

Add missing constants and data types for Linux timestamping API #214

Closed jsitnicki closed 7 years ago

jsitnicki commented 7 years ago

Add constants for SOF_* flags defined in linux/net_tstamp.h kernel header as of Linux v4.13.

These are needed to make use of SO_TIMESTAMPING socket option under Linux.

justincormack commented 7 years ago

The CI is complaining as the tests for whether symbols have correct values vs C headers cant find the symbols. It is fine to add them to the list that are ignored in these tests...

jsitnicki commented 7 years ago

Sorry about this oversight. I will fix it.

jsitnicki commented 7 years ago

Hi @justincormack, tests are all patched up now. Also, I have extended changes and added a missing data type that is also a part of Linux timestamping API. With these changes it is possible to use the timestamping API (example). I've renamed the PR subject to better reflect the scope. Please take a look.

justincormack commented 7 years ago

Thanks!