diff options
author | Jakub Zawadzki <darkjames@darkjames.pl> | 2014-04-27 21:28:08 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-04-27 19:30:51 +0000 |
commit | af2eebef2a4ccd915823fcc3b35ba11723f9aaf3 (patch) | |
tree | 53397ac9d6966e7cf2cf36d046ff66ef76c79445 /epan/dissectors/packet-http.h | |
parent | dec179eab8fd9ea0679b0619ec8672da20c7d993 (diff) |
Reorder fields in http_conv_t to save some memory.
On amd64 before patch: sizeof(http_conv_t) == 88, after: 72 bytes.
Change-Id: I2863f1c7223a904dadfbe68dc41bc61fc2cc378a
Reviewed-on: https://code.wireshark.org/review/1388
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-http.h')
-rw-r--r-- | epan/dissectors/packet-http.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-http.h b/epan/dissectors/packet-http.h index e92deb1e0b..ca655005cd 100644 --- a/epan/dissectors/packet-http.h +++ b/epan/dissectors/packet-http.h @@ -68,18 +68,18 @@ typedef struct _http_req_res_t { /** Conversation data of a HTTP connection. */ typedef struct _http_conv_t { guint response_code; + guint32 startframe; /* First frame of proxied connection */ gchar *http_host; gchar *request_method; gchar *request_uri; + /** the number of requests on the conversation. */ + guint32 req_res_num; guint8 upgrade; - guint32 startframe; /* First frame of proxied connection */ /* Server address and port, known after first server response */ - address server_addr; guint16 server_port; + address server_addr; /** the tail node of req_res */ http_req_res_t *req_res_tail; - /** the number of requests on the conversation. */ - guint32 req_res_num; } http_conv_t; #endif /* __PACKET_HTTP_H__ */ |