Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2004 15:32:40 +0000 (UTC)
From:      David Malone <dwmalone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/contrib/pf/net if_pfsync.c pf_norm.c src/sys/modules/pf Makefile
Message-ID:  <200408141532.i7EFWeXe043732@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dwmalone    2004-08-14 15:32:40 UTC

  FreeBSD src repository

  Modified files:
    sys/contrib/pf/net   if_pfsync.c pf_norm.c 
    sys/modules/pf       Makefile 
  Log:
  Get rid of the RANDOM_IP_ID option and make it a sysctl.  NetBSD
  have already done this, so I have styled the patch on their work:
  
          1) introduce a ip_newid() static inline function that checks
          the sysctl and then decides if it should return a sequential
          or random IP ID.
  
          2) named the sysctl net.inet.ip.random_id
  
          3) IPv6 flow IDs and fragment IDs are now always random.
          Flow IDs and frag IDs are significantly less common in the
          IPv6 world (ie. rarely generated per-packet), so there should
          be smaller performance concerns.
  
  The sysctl defaults to 0 (sequential IP IDs).
  
  Reviewed by:    andre, silby, mlaier, ume
  Based on:       NetBSD
  MFC after:      2 months
  
  Revision  Changes    Path
  1.11      +0 -5      src/sys/contrib/pf/net/if_pfsync.c
  1.10      +0 -4      src/sys/contrib/pf/net/pf_norm.c
  1.4       +2 -5      src/sys/modules/pf/Makefile



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