cvs commit: src/sys/netinet ip_output.c

Garrett Wollman wollman at FreeBSD.org
Sat May 31 10:55:22 PDT 2003


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


More information about the cvs-all mailing list