From owner-freebsd-net@FreeBSD.ORG Wed Aug 25 12:54:59 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A02D51065679 for ; Wed, 25 Aug 2010 12:54:59 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 546268FC12 for ; Wed, 25 Aug 2010 12:54:58 +0000 (UTC) Received: by qwg5 with SMTP id 5so497612qwg.13 for ; Wed, 25 Aug 2010 05:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=cZgIHkwMZwmzc6tb3I3ocTNpL7gquiD3xuz34PwxGaQ=; b=P9PzEyUlMHV0JVXvKTP7HIUpmKpLBaGbyYWiu0Zk+oHWsSeCDtQSNS7zbI+P5oZb2h UWsoVUZOWv+GKj9Xpx2HY6MArOuarGWCVdkNxLmMfv3a0IoNPvHcKfLBAderynK7NFWk fSlGcO1f9ds72pkoCEEVQ6VQx3sSlYjLtQ1rQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VZZBCe/8H2WsWbjImwTMS6Oya/n/LawI5whF4bJkGYp4jQ41kJ+8dvxTmWyz+d2X2r 83P4NCX/fdntowWORW1TvokPKXLXVgVxLafpnJLBuV7jgr6O5x1TFAyzGUbmHZAhHy0I Qw/JeHa8Q9XRI1cGTQDbvT25avASHV4w4lj0U= MIME-Version: 1.0 Received: by 10.229.228.15 with SMTP id jc15mr5977838qcb.31.1282739000550; Wed, 25 Aug 2010 05:23:20 -0700 (PDT) Received: by 10.229.221.136 with HTTP; Wed, 25 Aug 2010 05:23:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Aug 2010 07:23:20 -0500 Message-ID: From: "Sam Fourman Jr." To: Sadish Kulasekere Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD Kernel Timers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 12:54:59 -0000 On Wed, Aug 25, 2010 at 6:31 AM, Sadish Kulasekere wrote: > Hi, > > Does anyone know how to create a timer in the kernel? I want to execute a > function after 1s and 3s and I want to create multiple instances of the > timer. The requirement here is to invoke a function after receiving a SYN > packet and then after 10s remove the perticular timer corresponding to that > SYN. This should be done for each SYN received. > > Thanks, > Sadish. > _______________________________________________ I would also benefit if someone had some sample code for how to do this. Thank you Sam Fourman Jr. Fourman Networks http://www.fourmannetworks.com