Wireshark - 1.0 Betriebsanweisung Seite 277

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 284
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 276
Procedure for converting a CORBA idl file into a Wireshark dissector
1. To write the C code to stdout.
idl2wrs <your file.idl>
e.g.:
idl2wrs echo.idl
2. To write to a file, just redirect the output.
idl2wrs echo.idl > packet-test-idl.c
You may wish to comment out the register_giop_user_module() code and that will leave you
with heuristic dissection.
If you don't want to use the shell script wrapper, then try steps 3 or 4 instead.
3. To write the C code to stdout.
Usage: omniidl -p ./ -b wireshark_be <your file.idl>
e.g.:
omniidl -p ./ -b wireshark_be echo.idl
4. To write to a file, just redirect the output.
omniidl -p ./ -b wireshark_be echo.idl > packet-test-idl.c
You may wish to comment out the register_giop_user_module() code and that will leave you
with heuristic dissection.
5. Copy the resulting C code to subdirectory epan/dissectors/ inside your Wireshark source direct-
ory.
cp packet-test-idl.c /dir/where/wireshark/lives/epan/dissectors/
The new dissector has to be added to Makefile.common in the same directory. Look for the de-
claration CLEAN_DISSECTOR_SRC and add the new dissector there. For example,
CLEAN_DISSECTOR_SRC = \
packet-2dparityfec.c \
packet-3com-njack.c \
...
becomes
CLEAN_DISSECTOR_SRC = \
packet-test-idl.c \
packet-2dparityfec.c \
packet-3com-njack.c \
...
For the next steps, go up to the top of your Wireshark source directory.
6. Run configure
./configure (or ./autogen.sh)
7. Compile the code
Related command line tools
262
Seitenansicht 276

Kommentare zu diesen Handbüchern

Keine Kommentare