aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bootp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-02 22:47:59 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-02 22:47:59 +0000
commit75ae0e30c7ff9e539a80562a431e1cd2719e78a1 (patch)
treee4f81d2c0758513eab172c7bbe79d2c773832295 /packet-bootp.c
parent71034c5a3faef6c2305e8e1f9253d544f559a532 (diff)
From Jean-Michel Fayard: BOOTP/DHCP, HTTP, and WSP statistics taps.
svn path=/trunk/; revision=8345
Diffstat (limited to 'packet-bootp.c')
-rw-r--r--packet-bootp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/packet-bootp.c b/packet-bootp.c
index f2ffe15305..e14acfcf47 100644
--- a/packet-bootp.c
+++ b/packet-bootp.c
@@ -2,7 +2,7 @@
* Routines for BOOTP/DHCP packet disassembly
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-bootp.c,v 1.74 2003/07/29 00:35:55 guy Exp $
+ * $Id: packet-bootp.c,v 1.75 2003/09/02 22:47:57 guy Exp $
*
* The information used comes from:
* RFC 951: Bootstrap Protocol
@@ -46,6 +46,9 @@
#include <epan/packet.h>
#include "packet-arp.h"
+#include "tap.h"
+
+static int bootp_dhcp_tap = -1;
static int proto_bootp = -1;
static int hf_bootp_type = -1;
static int hf_bootp_hw_type = -1;
@@ -1341,6 +1344,7 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree)
proto_tree_add_boolean_hidden(bp_tree, hf_bootp_dhcp,
tvb, 0, 0, 1);
+ tap_queue_packet( bootp_dhcp_tap, pinfo, (gpointer) dhcp_type);
}
/*
@@ -1475,6 +1479,7 @@ proto_register_bootp(void)
"bootp");
proto_register_field_array(proto_bootp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ bootp_dhcp_tap = register_tap("bootp");
}
void