Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 16:16:07 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/ipfw ipfw2.c src/sys/netinet ip_fw.h
Message-ID:  <200906051618.n55GIANr014617@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
luigi       2009-06-05 16:16:07 UTC

  FreeBSD src repository

  Modified files:
    sbin/ipfw            ipfw2.c 
    sys/netinet          ip_fw.h 
  Log:
  SVN rev 193516 on 2009-06-05 16:16:07Z by luigi
  
  Several ipfw options and actions use a 16-bit argument to indicate
  pipes, queues, tags, rule numbers and so on.
  These are all different namespaces, and the only thing they have in
  common is the fact they use a 16-bit slot to represent the argument.
  
  There is some confusion in the code, mostly for historical reasons,
  on how the values 0 and 65535 should be used. At the moment, 0 is
  forbidden almost everywhere, while 65535 is used to represent a
  'tablearg' argument, i.e. the result of the most recent table() lookup.
  
  For now, try to use explicit constants for the min and max allowed
  values, and do not overload the default rule number for that.
  
  Also, make the MTAG_IPFW declaration only visible to the kernel.
  
  NOTE: I think the issue needs to be revisited before 8.0 is out:
  the 2^16 namespace limit for rule numbers and pipe/queue is
  annoying, and we can easily bump the limit to 2^32 which gives
  a lot more flexibility in partitioning the namespace.
  
  MFC after:      5 days
  
  Revision  Changes    Path
  1.148     +3 -3      src/sbin/ipfw/ipfw2.c
  1.129     +17 -5     src/sys/netinet/ip_fw.h



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