aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-02-20 06:25:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-02-20 06:25:02 +0000
commit25c4c078add6cda977f8f530e18af2fdddb2a081 (patch)
tree4923e5cd8014e6f6d9332e33abfc196c10653ed7 /epan/dissectors/packet-http.c
parent83d6dc10e1c8617eae0e5f7ee457b1eb1f6d838c (diff)
From Sake Blok:
Add a filter for X-Forwarded-For. svn path=/trunk/; revision=17356
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 42ac4317af..afd5e57d7c 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -91,6 +91,7 @@ static int hf_http_server = -1;
static int hf_http_location = -1;
static int hf_http_set_cookie = -1;
static int hf_http_last_modified = -1;
+static int hf_http_x_forwarded_for = -1;
static gint ett_http = -1;
static gint ett_http_ntlmssp = -1;
@@ -1603,6 +1604,7 @@ static const header_info headers[] = {
{ "Location", &hf_http_location, HDR_NO_SPECIAL },
{ "Set-Cookie", &hf_http_set_cookie, HDR_NO_SPECIAL },
{ "Last-Modified", &hf_http_last_modified, HDR_NO_SPECIAL },
+ { "X-Forwarded-For", &hf_http_x_forwarded_for, HDR_NO_SPECIAL },
};
static void
@@ -2006,6 +2008,10 @@ proto_register_http(void)
{ "Last-Modified", "http.last_modified",
FT_STRING, BASE_NONE, NULL, 0x0,
"HTTP Last Modified", HFILL }},
+ { &hf_http_x_forwarded_for,
+ { "X-Forwarded-For", "http.x_forwarded_for",
+ FT_STRING, BASE_NONE, NULL, 0x0,
+ "HTTP X-Forwarded-For", HFILL }},
};
static gint *ett[] = {
&ett_http,