opnsense-src/contrib/ntp/ntpd/ntp_clockdev.h
Cy Schubert a466cc5537 ntp: import ntp-4.2.8p16
Security:       NtpBUg3767, NtpBug3808, NtpBug3807 (CVE-2023-26555)
MFC after:	immediately
2023-06-01 07:04:37 -07:00

25 lines
864 B
C

/* ntp_clockdev.h - map clock instances to devices
*
* Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
* The contents of 'html/copyright.html' apply.
* ---------------------------------------------------------------------
* The runtime support for the 'device' configuration statement. Just a
* simple list to map refclock source addresses to the device(s) to use
* instead of the builtin names.
* ---------------------------------------------------------------------
*/
#ifndef NTP_CLOCKDEV_H
#define NTP_CLOCKDEV_H
extern void clockdev_clear(void);
extern int clockdev_remove(
const sockaddr_u *addr_sock);
extern int clockdev_update(
const sockaddr_u *addr_sock, const char *ttyName, const char *ppsName);
extern const char *clockdev_lookup(
const sockaddr_u * addr_sock, int getPps);
#endif /*!defined(NTP_CLOCKDEV_H)*/