aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2010-04-12 16:06:52 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2010-04-12 16:06:52 +0000
commitf329cd5beca8493204a8a57c304a5cf6f92d84f5 (patch)
tree6f9fa49ca3e69218ada8965463f9f21dbe857da1
parentbe36d742b619939a4195e6f97b86844d831e012f (diff)
Add remark about including packet.h before tap.h
svn path=/trunk/; revision=32448
-rw-r--r--doc/README.tapping3
-rw-r--r--docbook/wsdg_src/WSDG_chapter_dissection.xml3
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/README.tapping b/doc/README.tapping
index 1dc4da0785..8546e5919a 100644
--- a/doc/README.tapping
+++ b/doc/README.tapping
@@ -35,7 +35,8 @@ If not, then you have to add a tap but don't worry, this is extremely easy to
do and is done in four easy steps;
(see packet-rpc.c and search for tap for an example)
-1, We need tap.h so just add '#include "tap.h"' to the includes.
+1, We need tap.h so just add '#include "tap.h"' (preceded by packet.h) to
+the includes.
2, We need a tap handler so just add 'static int <protocol>_tap = -1;'
diff --git a/docbook/wsdg_src/WSDG_chapter_dissection.xml b/docbook/wsdg_src/WSDG_chapter_dissection.xml
index 6559327a19..ec9909692b 100644
--- a/docbook/wsdg_src/WSDG_chapter_dissection.xml
+++ b/docbook/wsdg_src/WSDG_chapter_dissection.xml
@@ -1022,7 +1022,8 @@ static guint get_foo_message_len(packet_info *pinfo, tvbuff_t *tvb, int offset)
</para>
<example><title>Initialising a tap</title>
<programlisting>
-<![CDATA[#include <epan/tap.h>
+<![CDATA[#include <epan/packet.h>
+#include <epan/tap.h>
static int foo_tap = -1;