mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-14 21:31:00 +01: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
@ -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…
x
Reference in New Issue
Block a user