Add remark about including packet.h before tap.h
[obnox/wireshark/wip.git] / docbook / wsdg_src / WSDG_chapter_dissection.xml
index 6559327a1916132aea80a4aed5bfd472460fd0ed..ec9909692be1e94ae20bea12ee083724963be709 100644 (file)
@@ -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;