Messages in this thread | | | From | kuznet@ms2 ... | Subject | Re: PF_PACKET +Direction? | Date | Mon, 15 Mar 1999 17:31:26 +0300 (MSK) |
| |
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/
| |