cvs commit: src/sys/contrib/pf/net if_pfsync.c pf_norm.c src/sys/modules/pf Makefile

David Malone dwmalone at
Sat Aug 14 08:32:41 PDT 2004

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 
  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

More information about the cvs-all mailing list