diff options
-rw-r--r-- | doc/README.tapping | 3 | ||||
-rw-r--r-- | docbook/wsdg_src/WSDG_chapter_dissection.xml | 3 |
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; |