mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 05:13:35 +02: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user