Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2001 06:52:50 -0700 (PDT)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet ip_fw.c ip_fw.h src/sbin/ipfw ipfw.c
Message-ID:  <200109201352.f8KDqoC82601@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
luigi       2001/09/20 06:52:50 PDT

  Modified files:
    sys/netinet          ip_fw.c ip_fw.h 
    sbin/ipfw            ipfw.c 
  Log:
  A bunch of minor changes to the code (see below) for readability, code size
  and speed. No new functionality added (yet) apart from a bugfix.
  MFC will occur in due time and probably in stages.
  
  BUGFIX: fix a problem in old code which prevented reallocation of
  the hash table for dynamic rules (there is a PR on this).
  
  OTHER CHANGES: minor changes to the internal struct for static and dynamic rules.
  Requires rebuild of ipfw binary.
  
  Add comments to show how data structures are linked together.
  (It probably makes no sense to keep the chain pointers separate
  from actual rule descriptors. They will be hopefully merged soon.
  
  keep a (sysctl-readable) counter for the number of static rules,
  to speed up IP_FW_GET operations
  
  initial support for a "grace time" for expired connections, so we
  can set timeouts for closing connections to much shorter times.
  
  merge zero_entry() and resetlog_entry(), they use basically the
  same code.
  
  clean up and reduce replication of code for removing rules,
  both for readability and code size.
  
  introduce a separate lifetime for dynamic UDP rules.
  
  fix a problem in old code which prevented reallocation of
  the hash table for dynamic rules (PR ...)
  
  restructure dynamic rule descriptors
  
  introduce some local variables to avoid multiple dereferencing of
  pointer chains (reduces code size and hopefully increases speed).
  
  Revision  Changes    Path
  1.110     +20 -9     src/sbin/ipfw/ipfw.c
  1.167     +319 -305  src/sys/netinet/ip_fw.c
  1.58      +22 -7     src/sys/netinet/ip_fw.h


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109201352.f8KDqoC82601>