File: tstamping.h

package info (click to toggle)
netsniff-ng 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,408 kB
  • ctags: 5,166
  • sloc: ansic: 45,369; yacc: 1,786; sh: 741; makefile: 519; lex: 390; python: 61
file content (15 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TSTAMPING_H
#define TSTAMPING_H

#include "config.h"

#ifdef HAVE_HARDWARE_TIMESTAMPING
extern int set_sockopt_hwtimestamp(int sock, const char *dev);
#else
static inline int set_sockopt_hwtimestamp(int sock, const char *dev)
{
	return -1;
}
#endif

#endif /* TSTAMPING_H */