summaryrefslogtreecommitdiff
path: root/decoders/http/http_decoder_tunnel.h
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-08-16 14:58:19 +0800
committerlijia <[email protected]>2024-08-16 16:05:57 +0800
commit5ccd3bc23cf46a11ada14eab3e0b0a354733da59 (patch)
tree140a676f27ca516916fdd78eb1a0f07d8c59dac8 /decoders/http/http_decoder_tunnel.h
parenta59eca7685e126226d5c2b4679a2a90711cc5875 (diff)
Adjust benchmark directory,enable HTTP test,rename variables,format codesdev-integration-http
Diffstat (limited to 'decoders/http/http_decoder_tunnel.h')
-rw-r--r--decoders/http/http_decoder_tunnel.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/decoders/http/http_decoder_tunnel.h b/decoders/http/http_decoder_tunnel.h
index b90e402..52882e5 100644
--- a/decoders/http/http_decoder_tunnel.h
+++ b/decoders/http/http_decoder_tunnel.h
@@ -1,23 +1,25 @@
-#pragma once
-#include "http_decoder_inc.h"
+#pragma once
+#include "http_decoder_private.h"
#include "http_decoder_half.h"
-enum http_tunnel_state{
- HTTP_TUN_NON = 0, // init, or not tunnel session
- HTTP_TUN_C2S_HDR_START, //CONNECT ...
- HTTP_TUN_C2S_END, //CONNECT request end
- HTTP_TUN_S2C_START, // HTTP 200 connet established
- HTTP_TUN_INNER_STARTING, // http inner tunnel protocol starting
- HTTP_TUN_INNER_TRANS, // http inner tunnel protocol transmitting
+enum http_tunnel_state
+{
+ HTTP_TUN_NON = 0, // init, or not tunnel session
+ HTTP_TUN_C2S_HDR_START, // CONNECT ...
+ HTTP_TUN_C2S_END, // CONNECT request end
+ HTTP_TUN_S2C_START, // HTTP 200 connet established
+ HTTP_TUN_INNER_STARTING, // http inner tunnel protocol starting
+ HTTP_TUN_INNER_TRANS, // http inner tunnel protocol transmitting
};
/************************************************************
-* HTTP TUNNEL WITH CONNECT METHOD.
-*************************************************************/
+ * HTTP TUNNEL WITH CONNECT METHOD.
+ *************************************************************/
struct http_tunnel_message;
-#define HTTP_DECODER_TUNNEL_TOPIC "HTTP_DECODER_TUNNEL_MESSAGE"
+#define HTTP_DECODER_TUNNEL_TOPIC "HTTP_DECODER_TUNNEL_MESSAGE"
-enum http_tunnel_message_type {
+enum http_tunnel_message_type
+{
HTTP_TUNNEL_OPENING,
HTTP_TUNNEL_ACTIVE,
HTTP_TUNNEL_CLOSING,
@@ -26,7 +28,6 @@ enum http_tunnel_message_type {
enum http_tunnel_message_type http_tunnel_message_type_get(const struct http_tunnel_message *tmsg);
void http_tunnel_message_get_payload(const struct http_tunnel_message *tmsg, struct iovec *tunnel_payload);
-
int httpd_tunnel_identify(struct http_decoder_env *httpd_env, int curdir, struct http_decoder_half_data *hfdata);
int httpd_is_tunnel_session(const struct http_decoder_env *httpd_env, const struct http_decoder_exdata *ex_data);
int httpd_in_tunnel_transmitting(const struct http_decoder_env *httpd_env, struct http_decoder_exdata *ex_data);