Messages in this thread | | | From | (Alan Cox) | Subject | Re: Dropping packets, general kernel hacking (newbie questions) | Date | Sat, 23 Aug 1997 18:30:30 +0100 (BST) |
| |
> delay = ipfw (GET_DELAY) > if (delay) { > pktdesc = kmalloc (...); > pktdesc.timer.func = continue_sending; > pktdesc.timer.time = jiffies + delay; > pktdesc.timer.data = (long) pktdesc; > pktdesc.packet = skb; > add_timer (pktdesc.timer); > return;
And if the sk_buff is freed before the timer goes off ? Thats why I said you had to be careful and to do it at the driver layer..
| |