2 * This file is part of the nqptp distribution (https://github.com/mikebrady/nqptp).
3 * Copyright (c) 2021-2022 Mike Brady.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 2.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Commercial licensing is also available.
20 #ifndef NQPTP_MESSAGE_HANDLERS_H
21 #define NQPTP_MESSAGE_HANDLERS_H
23 #include "general-utilities.h"
24 #include "nqptp-clock-sources.h"
25 #include <sys/types.h>
27 void handle_announce(char *buf
, ssize_t recv_len
, clock_source_private_data
*clock_private_info
,
28 uint64_t reception_time
);
30 void handle_sync(char *buf
, ssize_t recv_len
, clock_source_private_data
*clock_private_info
,
31 uint64_t reception_time
);
33 void handle_follow_up(char *buf
, ssize_t recv_len
, clock_source_private_data
*clock_private_info
,
34 uint64_t reception_time
);
36 void handle_control_port_messages(char *buf
, ssize_t recv_len
,
37 clock_source_private_data
*clock_private_info
,
38 uint64_t reception_time
);