On Jan 8, 2019, at 9:15 AM, <janniso...@aol.com> <janniso...@aol.com> wrote:

> Currently, I am extending a Sigfox demodulator 
> https://github.com/Jeija/renard-phy.
> I already added a function to export the demodulated frames. During my work, 
> I ran into a problem with the Linktype. Sigfox works directly on layer 2  to 
> avoid misinterpretation of my packets I used one of the user Linktypes 
> (DLT_USER0).  
> 
> Would it be possible to reserve a Linktype for Sigfox?
> I took a quick look at libpcap  would there be anything else to do than to 
> add another define to pcap-common.c?

There's "adding a new link-layer header type for pcap and pcapng files" and 
there's "adding a module to libpcap that can capture from a new capture source".

"reserve a Linktype for Sigfox" is the former; "add a libpcap module that 
controls a software-defined radio, demodulates Sigfox signals, and supplies 
packets to callers, so that any program that uses libpcap, such as tcpdump or 
Wireshark, can directly capture Sigfox packets" is the latter.

If you're talking about the former, it would be possible, but the first step 
would be to provide a detailed description of the packets.  See the second item 
in the bulleted list at the top of

        http://www.tcpdump.org/linktypes.html

for more details on the process, as well as

        
https://github.com/the-tcpdump-group/libpcap/blob/master/doc/DLT_ALLOCATE_HOWTO.md
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Reply via email to