MINOR: sample/proto_tcp: export "smp_fetch_src"
This patch exports the sample fetch "smp_fetch_src()".
This commit is contained in:
parent
cc4d1716a2
commit
a123ad886a
@ -45,6 +45,9 @@ void tcp_req_conn_keywords_register(struct tcp_action_kw_list *kw_list);
|
||||
void tcp_req_cont_keywords_register(struct tcp_action_kw_list *kw_list);
|
||||
void tcp_res_cont_keywords_register(struct tcp_action_kw_list *kw_list);
|
||||
|
||||
/* Export some samples. */
|
||||
int smp_fetch_src(const struct arg *args, struct sample *smp, const char *kw, void *private);
|
||||
|
||||
/* Converts the INET/INET6 source address to a stick_table key usable for table
|
||||
* lookups. <type> can be STKTABLE_TYPE_IP or STKTABLE_TYPE_IPV6. The function
|
||||
* try to convert the incoming IP to the type expected by the sticktable.
|
||||
|
@ -1990,8 +1990,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
||||
/************************************************************************/
|
||||
|
||||
/* fetch the connection's source IPv4/IPv6 address */
|
||||
static int
|
||||
smp_fetch_src(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||
int smp_fetch_src(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||
{
|
||||
struct connection *cli_conn = objt_conn(smp->sess->origin);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user