From owner-freebsd-net@FreeBSD.ORG Thu Dec 6 09:13:46 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F3E8145; Thu, 6 Dec 2012 09:13:46 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2538FC15; Thu, 6 Dec 2012 09:13:45 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id a19so546446qad.13 for ; Thu, 06 Dec 2012 01:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=E8vbsDDCOqpkv5xjsDU6z4mwj49/e+EQ5bbcO7jESvg=; b=d92GhF2cCOr1PWrHTKxKXYespxbmt7O72XdJQgG4TyCKc7FDXyWCIDrAOx55glhg4D VZamewYt/ryvA/UZ+jggdbQFBDAnj5eJNV2lbr2Xsn9HP2lE85X23xZJ6BADjQTvNnss Ai8Ti3fm52SrSa1xT1qmw8bI1+c7VhD8l8B1vy5AfboA3FAf8VLuvHcq0rEzkTXx1RtC SHo+EwgHAUnqdAeg8ScWa3VqFrCAgOy74gGbKJx+Rr6EJzyYEt/+vxMQSZ6Y54Sn3RdH iT2udGTPnjXnTs7hjTCO8HA31dl2gDTaJk3223BoWPJikWkEx+jHlmujkC++w3lazf4p 2eVw== MIME-Version: 1.0 Received: by 10.229.201.160 with SMTP id fa32mr356975qcb.16.1354785225309; Thu, 06 Dec 2012 01:13:45 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.49.121.163 with HTTP; Thu, 6 Dec 2012 01:13:45 -0800 (PST) Date: Thu, 6 Dec 2012 10:13:45 +0100 X-Google-Sender-Auth: 3kSIhFh3XTCevcjAOClVIc3Gmco Message-ID: Subject: ipfw(4) dynamic states/rules and its callout From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: freebsd-net , freebsd-ipfw@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 09:13:46 -0000 Hello, i was looking at ipfw dynamic code for dynamic states/rules and see that it unconditionally schedules a callout even if there is not work to do. Wouldn't it be best to reschedule it when there is something to do to avoid having a useless callout/event run every time on the system? Is there any complication i am missing on it! Regards, Ermal