10-27-2009 03:46 AM
Hi all,
I need to capture data thruogh my NIC from a gigabit ethernet interface. The Implementation in UUT side does not contain IP implementation. The data format is "Standard Ethernet Frame Format" in which there is NO IP information in the data field. The data field will simply contain UDP package (4 bytes header+data). I also have to send data to UUT in the same format.
It seems that I can use Winpcap libraries for these tasks but I have limited time and do not have much experience on Winpcap. I will write my application in Labwindows/CVI and it will be very convenient if I can find some *.dll or *.lib which has functions to extract the data from such a frame and create such a frame.
Can anybody help me how to solve this issue simply ?
Thanks in advance,
Engin.
10-27-2009 06:30 AM
i clearly doubt that your device uses an ethernet port and a non-standard protocol, it should at least support the IP protocol, which is one of the most basic network protocol (on top of which is build TCP and UDP). you are talking about UDP, UDP is already a more advanced network protocol and is accessible through the use of the UDP Support Library of CVI, or by using datagram socket if you are using the Windows Socket library (also named winsock, part the Windows SDK).
regarding raw tcp packet: the windows socket library allows to create a RAW socket, thus reading and writing raw IP packets, but with great limitations, notably only administrator users can use raw sockets... also, a RAW socket is still an IP socket, thus supporting at least a network protocol. a more raw access is clearly complicated, it requires a low-level driver, and a lot of advanced stuffs (that is why i don't think your device is so dumb).
01-12-2010 01:22 PM
01-13-2010 07:45 PM