LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving capture packets in .PCAP format

hello

I am working on acquiring UDP packet from a sensor, I used packet sniffer example in this link: http://www.ni.com/example/27660/en/

the acquiring process works correctly, now I need to save these packets in .PCAP format, on the other hand if I saved packets in .BIN format (binary file) then what should I do to convert this format into .PCAP

Thanks

0 Kudos
Message 1 of 6
(2,882 Views)

Hi! This thread may help you. There is a text2pcap.exe that may help you do it.

 

https://forums.ni.com/t5/LabVIEW/packet-sniffer-example-how-to-save-as-pcap-files/td-p/873926

 

Please, let me know if it works for you! Have a nice day!

0 Kudos
Message 2 of 6
(2,823 Views)

Does any one found solution for this topic?

0 Kudos
Message 3 of 6
(659 Views)

@Labview_expert wrote:

Does any one found solution for this topic?


Extend the library to allow opening a capture context to a log file instead of a memory session. The principle is pretty trivial as the pcap API provides various functions to open a capture session and the rest remains the same. Of course this requires some C programming knowledge and you need to modify the lvwpcal.cpp file and recompile it into a shared library (DLL) and interface to the new function.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 6
(646 Views)

ohh! Do you have new library? Is possible to share here?

0 Kudos
Message 5 of 6
(638 Views)

@Labview_expert wrote:

ohh! Do you have new library? Is possible to share here?


I'm sorry, the answer is no for both of your questions.

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(634 Views)