[lkml]   [1999]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PF_PACKET +Direction?

> 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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.210 / U:7.496 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site