trafgen: icmpv4: Update csum at runtime if needed
[netsniff-ng-new.git] / tstamping.h
blobccc642e32c20c75b8e722222003081aa11c5a9cd
1 #ifndef TSTAMPING_H
2 #define TSTAMPING_H
4 #include "config.h"
6 #ifdef HAVE_HARDWARE_TIMESTAMPING
7 extern int set_sockopt_hwtimestamp(int sock, const char *dev);
8 #else
9 static inline int set_sockopt_hwtimestamp(int sock, const char *dev)
11 return -1;
13 #endif
15 #endif /* TSTAMPING_H */