summaryrefslogtreecommitdiff
path: root/decoders/http/http_decoder_utils.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_utils.h
parenta59eca7685e126226d5c2b4679a2a90711cc5875 (diff)
Adjust benchmark directory,enable HTTP test,rename variables,format codesdev-integration-http
Diffstat (limited to 'decoders/http/http_decoder_utils.h')
-rw-r--r--decoders/http/http_decoder_utils.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/decoders/http/http_decoder_utils.h b/decoders/http/http_decoder_utils.h
index 33483cf..54dcd04 100644
--- a/decoders/http/http_decoder_utils.h
+++ b/decoders/http/http_decoder_utils.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include <stdlib.h>
#include <stdio.h>
@@ -29,7 +29,8 @@ int httpd_url_is_encoded(const char *url, size_t len);
* Logger
******************************************************************************/
-enum http_decoder_log_level {
+enum http_decoder_log_level
+{
DEBUG = 0x11,
WARN = 0x12,
INFO = 0x13,
@@ -61,20 +62,19 @@ enum http_decoder_log_level {
}
#endif
-
#include <netinet/in.h>
struct httpd_session_addr
{
- uint8_t ipver; /* 4 or 6 */
- uint16_t sport; /* network order */
- uint16_t dport; /* network order */
- union
- {
+ uint8_t ipver; /* 4 or 6 */
+ uint16_t sport; /* network order */
+ uint16_t dport; /* network order */
+ union
+ {
uint32_t saddr4;
uint32_t daddr4;
- struct in6_addr saddr6;
+ struct in6_addr saddr6;
struct in6_addr daddr6;
- };
+ };
};
void httpd_session_get_addr(const struct session *sess, struct httpd_session_addr *addr);