Lasse Skov(deleted)
|
Send Raw ethernet packet using bpf
|
Lasse Skov(deleted)
02/18/2009 10:36 AM
post22438
|
Send Raw ethernet packet using bpf
Hi
I use BPF to send raw Ethernet packet, but packets never arrive when sending packet without the TCP/IP header.
In my code I try to send to packets. A packet with a EtherCAT type where the first 12 bytes is the source and
destination. And after this the type and the data.
The other packet I send is a ping packet.
Before running the program I started tcpdump with
tcpdump -iwm0 -XX
to catch the packets on the target PC.
And connected to the network card wm0 there is connected a computer with wireshark.
When run the program I see both packet in the terminal running tcpdump, but in wireshark i only see the ping packet.
So I wondering where my packet is blocked or stalled?
Is it in the bpf because it dont allow packet without tcpip header. Or is it something in the io-pkt there blocking for
non tcp packet?
/Lasse
|
|
|