cvs commit: src/sys/netinet ip_input.c
    Guido van Rooij 
    guido at FreeBSD.org
       
    Sun Dec  2 05:00:48 PST 2007
    
    
  
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
    
    
More information about the cvs-all
mailing list