tcpdump mailing list archives

Re: Fwd: New datasource implementation


From: Michael Richardson <mcr () sandelman ca>
Date: Tue, 20 Dec 2011 09:36:57 -0500


"Akos" == Akos Vandra <axos88 () gmail com> writes:
    Akos> At the moment I am using a script-generated code to load the
    Akos> library run-time, and load all the symbols to the according
    Akos> function pointers.  I am not very familiar with how dynamic

uhm, okay, but why?

    Akos> So my questions are:  - What are the steps needed to 'nicely'
    Akos> add support to a new device?  What do I have to add to the
    Akos> configuration, makefiles, #ifdefs, to add conditional
    Akos> building?   - How can I commit my newly supported device to
    Akos> the libpcap tree?   - How can this libusb dependency be
    Akos> solved? I don't think it would be fair to require all libpcap
    Akos> users to need libusb, just for one device that they might not
    Akos> even use - conditional building might solve this though.

./configure takes care of this.  libusb (and your code) would get used
if the library exists.

Fork the code on github.com, and start patching, and ask us to review.

-- 
]       He who is tired of Weird Al is tired of life!           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr () sandelman ottawa on ca http://www.sandelman.ottawa.on.ca/ |device driver[
   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
                       then sign the petition. 
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: