1#include "my_net.h"
2
3struct proxy_peer_info
4{
5 struct sockaddr_storage peer_addr;
6 int port;
7 bool is_local_command;
8};
9
10extern bool has_proxy_protocol_header(NET *net);
11extern int parse_proxy_protocol_header(NET *net, proxy_peer_info *peer_info);
12extern bool is_proxy_protocol_allowed(const sockaddr *remote_addr);
13
14extern int init_proxy_protocol_networks(const char *spec);
15extern void destroy_proxy_protocol_networks();
16
17extern int set_proxy_protocol_networks(const char *spec);
18extern bool proxy_protocol_networks_valid(const char *spec);
19
20