Hi,
I'm just wondering if recycling of skb's can be harmful? In the IrDA stack
I often need to send out a nearly exact copy of a received frame, so it's
tempting to just reuse the received frame. But then I started thinking
about packet sniffers that have just cloned the incomming frame and queued
it at some socket. Changing the skb would confuse packet sniffer
applications (yes we now have irdadump and irdaping :-)
Maybe the worst problem is that af_packet.c uses the skb->cb field for
storing information which I happens to use for informing the device driver
about the "minimum turn around time". So when I recycle a received frame,
and send it out again, I insert the min turn time in skb->cb but this field
has now become a sockaddr_ll struct by af_packet.c. Doesn't sound to good :-)
Maybe there is little to gain by recycling skb's anyway?
-- Dag
--
/ Dag Brattli | The Linux-IrDA Project /
// University of Tromsoe, Norway | Infrared communication for Linux //
/// http://www.cs.uit.no/~dagb | http://www.cs.uit.no/linux-irda/ ///
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]