Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 2004 06:52:47 -0700 (PDT)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet ip_fastfwd.c
Message-ID:  <200405031352.i43Dqld7022320@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
andre       2004/05/03 06:52:47 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_fastfwd.c 
  Log:
  Optimize IP fastforwarding some more:
  
  o New function ip_findroute() to reduce code duplication for the
    route lookup cases. (luigi)
  
  o Store ip_len in host byte order on the stack instead of using
    it via indirection from the mbuf.  This allows to defer the host
    byte conversion to a later point and makes a quicker fallback to
    normal ip_input() processing. (luigi)
  
  o Check if route is dampned with RTF_REJECT flag and drop packet
    already here when ARP is unable to resolve destination address.
    An ICMP unreachable is sent to inform the sender.
  
  o Check if interface output queue is full and drop packet already
    here.  No ICMP notification is sent because signalling source quench
    is depreciated.
  
  o Check if media_state is down (used for ethernet type interfaces)
    and drop the packet already here.  An ICMP unreachable is sent to
    inform the sender.
  
  o Do not account sent packets to the interface address counters.  They
    are only for packets with that 'ia' as source address.
  
  o Update and clarify some comments.
  
  Submitted by:   luigi (most of it)
  
  Revision  Changes    Path
  1.9       +114 -95   src/sys/netinet/ip_fastfwd.c



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