2 * OpenVPN -- An application to securely tunnel IP networks
3 * over a single TCP/UDP port, with support for SSL/TLS-based
4 * session authentication and key exchange,
5 * packet encryption, packet authentication, and
8 * Copyright (C) 2013-2025 Heiko Hund <heiko.hund@sophos.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2
12 * as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef OPENVPN_MSG_H_
25 #define OPENVPN_MSG_H_
47 deprecated_msg_register_ring_buffers
,
71 wfp_block_local
= 1<<0,
76 message_header_t header
;
78 inet_address_t address
;
84 message_header_t header
;
86 inet_address_t prefix
;
88 inet_address_t gateway
;
94 message_header_t header
;
99 inet_address_t addr
[4]; /* support up to 4 dns addresses */
107 #define NRPT_ADDR_NUM 8 /* Max. number of addresses */
108 #define NRPT_ADDR_SIZE 48 /* Max. address strlen + some */
109 typedef char nrpt_address_t
[NRPT_ADDR_SIZE
];
111 message_header_t header
;
113 nrpt_address_t addresses
[NRPT_ADDR_NUM
];
114 char resolve_domains
[512]; /* double \0 terminated */
115 char search_domains
[512];
117 } nrpt_dns_cfg_message_t
;
120 message_header_t header
;
123 inet_address_t addr
[4]; /* support up to 4 dns addresses */
124 } wins_cfg_message_t
;
127 message_header_t header
;
132 struct in_addr primary_nbns
;
133 struct in_addr secondary_nbns
;
139 message_header_t header
;
142 } flush_neighbors_message_t
;
145 message_header_t header
;
150 message_header_t header
;
151 wfp_block_flags_t flags
;
153 } wfp_block_message_t
;
156 message_header_t header
;
158 } enable_dhcp_message_t
;
161 message_header_t header
;
173 message_header_t header
;
174 adapter_type_t adapter_type
;
175 } create_adapter_message_t
;
177 #endif /* ifndef OPENVPN_MSG_H_ */