Re: PF_PACKET +Direction?

kuznet@ms2.inr.ac.ru
Thu, 18 Mar 1999 15:30:34 +0300 (MSK)


Hello!

> Another thing: sorry for pestering, but I really need to confirm.
> With the sll_pkttype parameter, when our machine receives a packet not
> destined for it, but rather destined for another host on another interface
> (in other words, our machine is functioning as a router), does it still
> return the incoming packet as PACKET_HOST or what?

Link layer has no idea where packet is destined to, it sits below IP.
If the packet was destined to this host at link layer (the case of
router), then packet is PACKET_HOST, otherwise (i.e. promiscuous receive)
it is PACKET_OTHERHOST.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/