lkml.org 
[lkml]   [1997]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Dropping packets, general kernel hacking (newbie questions)
Date
>        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..


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.033 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site