Wireshark-users: Re: [Wireshark-users] Integrating a CORBA dissector
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 05 Mar 2008 23:56:08 +0100
Hi Benjamin,

What this tool does is create a dissector module for you. So the resulting file, called packet-YourProtocolName.c, goes into epan/dissectors in your wirehshark build tree. The referenced Makefiles are also in that directory.
Put the name of your dissector in between the others and have a go again.

Note: the documentation really needs an update. Maybe you could contribute?

Thanx,
Jaap

Ben B. wrote:
Hi there,

At the moment I am trying to integrate a CORBA dissector.

Using the instructions at
http://www.wireshark.org/docs/wsug_html_chunked/AppToolsidl2wrs.html I
produced a C file from the IDL.

The next step is to build Wireshark with the new C file integrated.
Here the instructions read:
edit Makefile.am
edit Makefile.nmake

Being on Linux, I don't care about Makefile.nmake. Still, I do not
manage to integrate my new file into Makefile.am ... after all, it has
around 820 lines in version 0.99.6.

This is the diff for Makefile.am:

Index: Makefile.am
===================================================================
--- Makefile.am (revision 24562)
+++ Makefile.am (working copy)
@@ -280,6 +280,7 @@
        $(wireshark_optional_objects)   \
        gtk/libui.a                     \
        codecs/libcodec.a               \
+       myInterface.a           \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        @INET_PTON_LO@                  \
@@ -301,6 +302,7 @@
 # Libraries and plugin flags with which to link tshark.
 tshark_LDADD = \
        $(wireshark_optional_objects)   \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        @INET_PTON_LO@                  \
@@ -324,21 +326,25 @@

 # Libraries with which to link mergecap.
 mergecap_LDADD = \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        @GLIB_LIBS@

 # Libraries with which to link capinfos.
 capinfos_LDADD = \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        @GLIB_LIBS@

 # Libraries with which to link editcap.
 editcap_LDADD = \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        @GLIB_LIBS@

 # Libraries with which to link randpkt.
 randpkt_LDADD = \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        @GLIB_LIBS@ -lm                 \
        @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
@@ -346,6 +352,7 @@
 # Libraries and plugin flags with which to link dftest.
 dftest_LDADD = \
        $(wireshark_optional_objects)   \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        @SNMP_LIBS@ @SSL_LIBS@          \
@@ -359,6 +366,7 @@

 # Libraries with which to link dumpcap.
 dumpcap_LDADD = \
+       myInterface.la          \
        wiretap/libwiretap.la           \
        @INET_NTOP_LO@                  \
        @GLIB_LIBS@                     \



This is the error message that I get when building:

make[2]: *** No rule to make target `myInterface.a', needed by
`wireshark'.  Stop.
make[2]: Leaving directory `/home/wireshark/wireshark-0.99.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wireshark/wireshark-0.99.6'
make: *** [all] Error 2



Cheers, thanks for ideas ...
Benjamin