netplika/ts.h

19 lines
530 B
C
Raw Normal View History

2015-07-19 16:18:40 +02:00
/** Hardware / Kernelspace Timestamping of network packets.
*
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2017, Steffen Vogel
2015-07-19 16:18:40 +02:00
* @license GPLv3
*********************************************************************************/
#ifndef _TS_H_
#define _TS_H_
2015-07-12 21:10:34 +02:00
2015-07-19 16:18:40 +02:00
ssize_t ts_sendmsg(int sd, const struct msghdr *msgh, int flags, struct timespec *ts);
2015-07-12 21:10:34 +02:00
2015-07-19 16:18:40 +02:00
ssize_t ts_recvmsg(int sd, struct msghdr *msgh, int flags, struct timespec *ts);
2015-07-12 21:10:34 +02:00
int ts_enable_if(const char *dev);
int ts_enable_sd(int sd);
2015-07-19 16:18:40 +02:00
#endif