mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-21 18:10:47 -04:00
MINOR: tcp: implement the get_opt() function
It relies on the generic sock_conn_get_opt() function and will permit sample fetch functions to retrieve generic TCP-level info.
This commit is contained in:
parent
6d995e59e9
commit
52d60bf9ee
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ struct protocol proto_tcpv4 = {
|
|||
.check_events = sock_check_events,
|
||||
.ignore_events = sock_ignore_events,
|
||||
.get_info = tcp_get_info,
|
||||
.get_opt = sock_conn_get_opt,
|
||||
|
||||
/* binding layer */
|
||||
.rx_suspend = tcp_suspend_receiver,
|
||||
|
|
@ -121,6 +122,7 @@ struct protocol proto_tcpv6 = {
|
|||
.check_events = sock_check_events,
|
||||
.ignore_events = sock_ignore_events,
|
||||
.get_info = tcp_get_info,
|
||||
.get_opt = sock_conn_get_opt,
|
||||
|
||||
/* binding layer */
|
||||
.rx_suspend = tcp_suspend_receiver,
|
||||
|
|
@ -167,6 +169,7 @@ struct protocol proto_mptcpv4 = {
|
|||
.check_events = sock_check_events,
|
||||
.ignore_events = sock_ignore_events,
|
||||
.get_info = tcp_get_info,
|
||||
.get_opt = sock_conn_get_opt,
|
||||
|
||||
/* binding layer */
|
||||
.rx_suspend = tcp_suspend_receiver,
|
||||
|
|
@ -212,6 +215,7 @@ struct protocol proto_mptcpv6 = {
|
|||
.check_events = sock_check_events,
|
||||
.ignore_events = sock_ignore_events,
|
||||
.get_info = tcp_get_info,
|
||||
.get_opt = sock_conn_get_opt,
|
||||
|
||||
/* binding layer */
|
||||
.rx_suspend = tcp_suspend_receiver,
|
||||
|
|
|
|||
Loading…
Reference in a new issue