Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 12:14:45 -0700 (PDT)
From:      Maxim Konovalov <maxim@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:  <200405111914.i4BJEjWB023477@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
maxim       2004/05/11 12:14:45 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_output.c 
  Log:
  o Calculate a number of bytes to copy (cnt) correctly:
  
    +----+-+-+-+-+----+----+- - - - - - - - - - - -  -+----+
    |    | |C| | |    |    |                          |    |
    | IP |N|O|L|P|    | IP |                          | IP |
    | #1 |O|D|E|T|    | #2 |                          | #n |
    |    |P|E|N|R|    |    |                          |    |
    +----+-+-+-+-+----+----+- - - - - - - - - - - -  -+----+
                 ^    ^<---- cnt - (IPOPT_MINOFF - 1) ---->|
                 |    |
  src            |    +-- cp[IPOPT_OFF + 1] + sizeof(struct in_addr)
                 |
  dst            +-- cp[IPOPT_OFF + 1]
  
  PR:             kern/66386
  Submitted by:   Andrei Iltchenko
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.218     +1 -1      src/sys/netinet/ip_output.c



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