Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Naive attempt to dissect.

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Tue, 07 Oct 2008 13:23:52 -0400



Bruno Hivert wrote:
Hello,

I’m trying some very simple decoding for gsm-map packets. It’s very simple, because the dissector I need already exists, it’s just not called in the proper context.

If you have a look at the attached diff file, you’ll understand what I’m trying to do.

However, I cannot even try this apparently trivial-as-an-API-call modification, because it does not compile.
[...]
epan/.libs/libwireshark.so: undefined reference to `de_bearer_cap'

[...]

What am I doing wrong, and where can I express the dependency without pulling way to many things in ?

The basic problem is that de_bearer_cap() is declared as static in packet-gsm_a_dtap.c: that means no other module (.c file) can use it. If you remove the keyword "static" it will at least link. (Of course it would also be better to have a prototype in a header file, etc.)


  • Follow-Ups:
    • Re: [Wireshark-dev] Naive attempt to dissect.
      • From: Anders Broman
  • References:
    • [Wireshark-dev] Naive attempt to dissect.
      • From: Bruno Hivert
  • Prev by Date: [Wireshark-dev] Naive attempt to dissect.
  • Next by Date: Re: [Wireshark-dev] Error while setting up check-out of code
  • Previous by thread: [Wireshark-dev] Naive attempt to dissect.
  • Next by thread: Re: [Wireshark-dev] Naive attempt to dissect.
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation