Helium
msg_handlers.h
Go to the documentation of this file.
1 /* *
2  * Lightway Core
3  * Copyright (C) 2021 Express VPN International Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
25 #ifndef MSG_HANDLERS_H
26 #define MSG_HANDLERS_H
27 
28 #include <he.h>
29 
30 he_return_code_t he_handle_msg_noop(he_conn_t *conn, uint8_t *packet, int length);
31 he_return_code_t he_handle_msg_ping(he_conn_t *conn, uint8_t *packet, int length);
32 he_return_code_t he_handle_msg_pong(he_conn_t *conn, uint8_t *packet, int length);
33 he_return_code_t he_handle_msg_auth(he_conn_t *conn, uint8_t *packet, int length);
34 he_return_code_t he_handle_msg_data(he_conn_t *conn, uint8_t *packet, int length);
35 he_return_code_t he_handle_msg_config_ipv4(he_conn_t *conn, uint8_t *packet, int length);
36 he_return_code_t he_handle_msg_auth_response(he_conn_t *conn, uint8_t *packet, int length);
37 he_return_code_t he_handle_msg_auth_response_with_config(he_conn_t *conn, uint8_t *packet,
38  int length);
39 he_return_code_t he_handle_msg_deprecated_13(he_conn_t *conn, uint8_t *packet, int length);
40 he_return_code_t he_handle_msg_goodbye(he_conn_t *conn, uint8_t *packet, int length);
41 
42 bool he_internal_is_ipv4_packet_valid(uint8_t *packet, int length);
43 
44 #endif // MSG_HANDLERS_H
enum he_return_code he_return_code_t
All possible return codes for helium.
Core internal header file for libhelium.
Definition: he.h:483