lkml.org 
[lkml]   [1999]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PF_PACKET +Direction?
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.044 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site