From owner-freebsd-net@FreeBSD.ORG Wed Aug 25 12:00: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 822001065788 for ; Wed, 25 Aug 2010 12:00:59 +0000 (UTC) (envelope-from sadishkr@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF9D8FC20 for ; Wed, 25 Aug 2010 12:00:58 +0000 (UTC) Received: by gxk24 with SMTP id 24so161447gxk.13 for ; Wed, 25 Aug 2010 05:00: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:date:message-id :subject:from:to:content-type; bh=RCuut8gy/ymBaLYLr6H7hHVWTjo85Htsbcl/slXfLvc=; b=rEydoZEu4V5mjh3tp/YaP7sq4sdjNJ56tmj0w4xegUoRWQ2ytJWroBjU7E/RPxa7Bq Gv69nhRA8gsGI29OLaq+WzWePNMLBCZpnOPZhsP30WH93UnDYkwATIvuLUw19Gp9YV06 CCf61Uu5YWQggTLb3Ibyrsf9s7bINKPQ2dK78= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=T0nTaZ4uart4Jkb3AX73eLeHwbbJTMFFf9KLzqfQ7CxTH6T26nbrUyNGR6q2AS1scZ bopocWvIe3WdHW+i2SIfQYRijiOaCwrgbcW1Z5ooHJZEeJsFi+b8HtZjrfFfSTGiTKLl sArWdf3Cg8cIy6Ge/vPvGEQLgYeJj1rVJLeLM= MIME-Version: 1.0 Received: by 10.151.134.2 with SMTP id l2mr5679239ybn.195.1282735914331; Wed, 25 Aug 2010 04:31:54 -0700 (PDT) Received: by 10.231.191.67 with HTTP; Wed, 25 Aug 2010 04:31:54 -0700 (PDT) Date: Wed, 25 Aug 2010 21:31:54 +1000 Message-ID: From: Sadish Kulasekere To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:00:59 -0000 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.