Mercurial > hg > nginx
comparison src/core/ngx_proxy_protocol.h @ 8072:cca4c8a715de
PROXY protocol v2 TLV variables.
The variables have prefix $proxy_protocol_tlv_ and are accessible by name
and by type. Examples are: $proxy_protocol_tlv_0x01, $proxy_protocol_tlv_alpn.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 12 Oct 2022 16:58:16 +0400 |
parents | 89adf49fe76a |
children | 17d6a537fb1b |
comparison
equal
deleted
inserted
replaced
8071:017fd847f4f7 | 8072:cca4c8a715de |
---|---|
19 struct ngx_proxy_protocol_s { | 19 struct ngx_proxy_protocol_s { |
20 ngx_str_t src_addr; | 20 ngx_str_t src_addr; |
21 ngx_str_t dst_addr; | 21 ngx_str_t dst_addr; |
22 in_port_t src_port; | 22 in_port_t src_port; |
23 in_port_t dst_port; | 23 in_port_t dst_port; |
24 ngx_str_t tlvs; | |
24 }; | 25 }; |
25 | 26 |
26 | 27 |
27 u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, | 28 u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, |
28 u_char *last); | 29 u_char *last); |
29 u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf, | 30 u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf, |
30 u_char *last); | 31 u_char *last); |
32 ngx_int_t ngx_proxy_protocol_get_tlv(ngx_connection_t *c, ngx_str_t *name, | |
33 ngx_str_t *value); | |
31 | 34 |
32 | 35 |
33 #endif /* _NGX_PROXY_PROTOCOL_H_INCLUDED_ */ | 36 #endif /* _NGX_PROXY_PROTOCOL_H_INCLUDED_ */ |