Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2003 10:55:21 -0700 (PDT)
From:      Garrett Wollman <wollman@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet ip_output.c
Message-ID:  <200305311755.h4VHtLKx011059@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
wollman     2003/05/31 10:55:21 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_output.c 
  Log:
  Don't generate an ip_id for packets with the DF bit set; ip_id is
  only meaningful for fragments.  Also don't bother to byte-swap the
  ip_id when we do generate it; it is only used at the receiver as a
  nonce.  I tried several different permutations of this code with no
  measurable difference to each other or to the unmodified version, so
  I've settled on the one for which gcc seems to generate the best code.
  (If anyone cares to microoptimize this differently for an architecture
  where it actually matters, feel free.)
  
  Suggested by:   Steve Bellovin's paper in IMW'02
  
  Revision  Changes    Path
  1.189     +17 -4     src/sys/netinet/ip_output.c



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