cvs commit: src/sys/netinet ip_fastfwd.c

Andre Oppermann andre at FreeBSD.org
Mon May 3 06:52:48 PDT 2004


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


More information about the cvs-src mailing list