All of lore.kernel.org
 help / color / mirror / Atom feed
* testing ethernet device with external loopback
@ 2008-07-27  8:47 Sebastien Fauris
  2008-07-27 11:07 ` James Chapman
  2008-07-27 16:25 ` David Anders
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastien Fauris @ 2008-07-27  8:47 UTC (permalink / raw)
  To: linux-embedded

Hi,

for hardware testing purposes, I would like to perform an external 
loopback on my ethernet interface. For this, I wrote 2 little 
executables, one  sending a raw ethernet packet (using 'sendto') on a 
socket opened with the  parameters PF_PACKET, SOCK_RAW, 
htons(ETH_P_ALL), the other one doing a recvfrom from a raw socket.
The problem is that on the reception side, I always receive what I send, 
even when
 the external RJ45 stub is not plugged !
Is there a way to tell to the kernel on the reception side that I want 
to get only packets coming from the external world ?

Thanks,

Sebastien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-27 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27  8:47 testing ethernet device with external loopback Sebastien Fauris
2008-07-27 11:07 ` James Chapman
2008-07-27 16:25 ` David Anders

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.