diff options
Diffstat (limited to 'decoders/http/http_decoder_utils.h')
| -rw-r--r-- | decoders/http/http_decoder_utils.h | 20 |
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); |
