LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending IP packets -- Urgent!!!!

I am trying to write a simulator that sends packets on top of IP (it is actually a L2TP over IP). how can I send packets over IP only (where I will handle the transport layer -- not UDP or TCP)
Thanks
Yair
0 Kudos
Message 1 of 4
(3,544 Views)

LabVIEW does not have built-in functions for this. The TCP and UDP primitives both allow LabVIEW to work only in the application layer.

You might be able to call some external code to do this, e.g. calling WinPcap.

Another Yair N.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,536 Views)


tst wrote:

LabVIEW does not have built-in functions for this. The TCP and UDP primitives both allow LabVIEW to work only in the application layer.

You might be able to call some external code to do this, e.g. calling WinPcap.

Another Yair N.



WinPcap is for intercepting network traffic. No need to use that. Instead you should try to look into the Winsock API in wsock32.dll. It is mostly a BSD socket implementation with some Microsoft specific additions, but those are not really that important anymore for Win 32 bit. MSDN has all the required information how to call this API. However it is not exactly LabVIEW friendly in some parts so a wrapper DLL might be at its place.
 
Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 4
(3,500 Views)
Yairn,

LabVIEW natively does not use Layer 2 Tunneling Protocol (L2TP)/IPSec connections for sending packets on top of IP since it requires a certificate for Internet Key Exchange (IKE) authentication and Microsoft does not support using a pre-share key for IKE authentication on remote access L2TP/IPSec client connections by default. LabVIEW Instead uses UDP or TCP do allow the transfer of packets over IP.

You could
configure an L2TP/IPSec connection by using a pre-shared Key Authentication, steps can be found here but its recommended to use UDP or TCP.

Regards,




Message Edited by Juan G on 12-17-2007 12:27 PM
Juan Galindo
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,453 Views)