Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2007 13:00:47 +0000 (UTC)
From:      Guido van Rooij <guido@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet ip_input.c
Message-ID:  <200712021300.lB2D0lrr072997@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
guido       2007-12-02 13:00:47 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_input.c 
  Log:
  Consider the following situation:
  1. A packet comes in that is to be forwarded
  2. The destination of the packet is rewritten by some firewall code
  3. The next link's MTU is too small
  4. The packet has the DF bit set
  
  Then the current code is such that instead of setting the next
  link's MTU in the ICMP error, ip_next_mtu() is called and a guess
  is sent as to which MTU is supposed to be tried next. This is because
  in this case ip_forward() is called with srcrt set to 1. In that
  case the ia pointer remains NULL but it is needed to get the MTU
  of the interface the packet is to be sent out from.
  Thus, we always set ia to the outgoing interface.
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.334     +2 -1      src/sys/netinet/ip_input.c



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