netdev
[Top] [All Lists]

Re: af_packet bug?

To: lars@xxxxxxxxxx (Lars Brinkhoff)
Subject: Re: af_packet bug?
From: kuznet@xxxxxxxxxxxxx
Date: Mon, 29 Oct 2001 21:43:46 +0300 (MSK)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <85bsiq2u7j.fsf@junk.nocrew.org> from "Lars Brinkhoff" at Oct 29, 1 09:15:00 pm
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> I have an application that sends raw ethernet frames to a network
> interface using the af_packet module.  This works well except when
> sending a packet intended for the host that the application is running
> on.  Apparently the outbound frame is never considered for input to
> the TCP/IP stack.
> 
> Is this considered a bug or a feature? 

Neither or them. It is simply the only expected behaviour.
Ethernet is simplex media, it does not hear itself and it is
impossible to talk to self using it. Well, if you do not believe,
try to use single phone to call to yourself.

Apparently you want to send to loopback. Continuing analogy:
to talk to self, you need not any phone at all and even better
not to strain tongue frightening people with selftalking. :-)

Alexey

<Prev in Thread] Current Thread [Next in Thread>