Browse code

tcpops: use fixup_igp_all() instead of fixup_igp_null()

- needed for functions with many parameters

(cherry picked from commit 02240711239149e2f5c4890a70ab158d10fa8187)

Daniel-Constantin Mierla authored on 08/05/2021 21:30:22
Showing 1 changed files
... ...
@@ -78,27 +78,27 @@ static pv_export_t mod_pvs[] = {
78 78
 
79 79
 static cmd_export_t cmds[]={
80 80
 	{"tcp_keepalive_enable", (cmd_function)w_tcp_keepalive_enable4, 4,
81
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
81
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
82 82
 	{"tcp_keepalive_enable", (cmd_function)w_tcp_keepalive_enable3, 3,
83
-			fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE|ONREPLY_ROUTE},
83
+			fixup_igp_all, fixup_free_igp_all, REQUEST_ROUTE|ONREPLY_ROUTE},
84 84
 	{"tcp_keepalive_disable", (cmd_function)w_tcp_keepalive_disable1, 1,
85
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
85
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
86 86
 	{"tcp_keepalive_disable", (cmd_function)w_tcp_keepalive_disable0, 0,
87 87
 			0, 0, REQUEST_ROUTE|ONREPLY_ROUTE},
88 88
 	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime2, 2,
89
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
89
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
90 90
 	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime1, 1,
91
-			fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE|ONREPLY_ROUTE},
91
+			fixup_igp_all, fixup_free_igp_all, REQUEST_ROUTE|ONREPLY_ROUTE},
92 92
 	{"tcp_enable_closed_event", (cmd_function)w_tcpops_enable_closed_event1, 1,
93
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
93
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
94 94
 	{"tcp_enable_closed_event", (cmd_function)w_tcpops_enable_closed_event0, 0,
95 95
 			0, 0, REQUEST_ROUTE|ONREPLY_ROUTE},
96 96
 	{"tcp_conid_state", (cmd_function)w_tcp_conid_state, 1,
97
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
97
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
98 98
 	{"tcp_get_conid", (cmd_function)w_tcp_get_conid, 2,
99 99
 			fixup_spve_pvar, fixup_free_spve_pvar, ANY_ROUTE},
100 100
 	{"tcp_conid_alive", (cmd_function)w_tcp_conid_alive, 1,
101
-			fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
101
+			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
102 102
 	{"tcp_set_otcpid", (cmd_function)w_tcp_set_otcpid, 1,
103 103
 			fixup_igp_all, fixup_free_igp_all, ANY_ROUTE},
104 104
 	{"tcp_set_otcpid_flag", (cmd_function)w_tcp_set_otcpid_flag, 1,