lkml.org 
[lkml]   [1999]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PF_PACKET +Direction?
Date
Hello!

> I heard that with the new PF_PACKET socket family mechanism, it's now
> possible to determine a packet's direction (incoming or outgoing).
>
> Can anyoe confirm this? Is it true? If so, can anyone direct me to the
> proper structure and fields that contain this info?

I confirm, it is true. It is field sll_pkttype in struct sockaddr_ll,
returned by recvfrom(). If it is PACKET_OUTGOING, the packet is sent
by us, otherwise, it is incoming.

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:50    [W:0.050 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site