Re: PF_PACKET +Direction?

kuznet@ms2.inr.ac.ru
Fri, 16 Apr 1999 19:09:22 +0400 (MSK DST)


Hello!

> I'm just curious about the sll_addr field in struct sockaddr_ll. What
> address does this refer to? The source or destination?
>
> I'm especially curious as to what this field contains for a packet
> captured in promiscuous mode.

The same value, that you have on another sockets: i.e. address to reply.

If the packet is PACKET_OUTGOING, the address is not well-defined,
but usually it is your own address.

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/