1. 22 5月, 2008 5 次提交
    • D
      net/ipv4/arp.c: Use common hex_asc helpers · 51f82a2b
      Denis Cheng 提交于
      Here the local hexbuf is a duplicate of global const char hex_asc from
      lib/hexdump.c, except the hex letters' cases:
      
      	const char hexbuf[] = "0123456789ABCDEF";
      
      	const char hex_asc[] = "0123456789abcdef";
      
      and here to print HW addresses, the hex cases are not significant.
      
      Thanks to Harvey Harrison to introduce the hex_asc_hi/hex_asc_lo helpers.
      Signed-off-by: NDenis Cheng <crquan@gmail.com>
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51f82a2b
    • D
      cassini: Only use chip checksum for ipv4 packets. · b1443e2f
      David S. Miller 提交于
      According to David Monro, at least with Natsemi Saturn chips the
      cassini driver has some trouble with ipv6 checksums.
      
      Until we have more information about what's going on here, only
      use the chip checksums for ipv4.
      
      This workaround was suggested and tested by David.
      
      Update version and release date.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b1443e2f
    • S
      tcp: TCP connection times out if ICMP frag needed is delayed · 7d227cd2
      Sridhar Samudrala 提交于
      We are seeing an issue with TCP in handling an ICMP frag needed
      message that is received after net.ipv4.tcp_retries1 retransmits.
      The default value of retries1 is 3. So if the path mtu changes
      and ICMP frag needed is lost for the first 3 retransmits or if
      it gets delayed until 3 retransmits are done, TCP doesn't update
      MSS correctly and continues to retransmit the orginal message
      until it timesout after tcp_retries2 retransmits.
      
      I am seeing this issue even with the latest 2.6.25.4 kernel.
      
      In tcp_retransmit_timer(), when retransmits counter exceeds 
      tcp_retries1 value, the dst cache entry of the socket is reset.
      At this time, if we receive an ICMP frag needed message, the 
      dst entry gets updated with the new MTU, but the TCP sockets
      dst_cache entry remains NULL.
      
      So the next time when we try to retransmit after the ICMP frag
      needed is received, tcp_retransmit_skb() gets called. Here the
      cur_mss value is calculated at the start of the routine with
      a NULL sk_dst_cache. Instead we should call tcp_current_mss after
      the rebuild_header that caches the dst entry with the updated mtu.
      Also the rebuild_header should be called before tcp_fragment
      so that skb is fragmented if the mss goes down.
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7d227cd2
    • P
      netfilter: Move linux/types.h inclusions outside of #ifdef __KERNEL__ · c8942f1f
      Patrick McHardy 提交于
      Greg Steuck <greg@nest.cx> points out that some of the netfilter
      headers can't be used in userspace without including linux/types.h
      first. The headers include their own linux/types.h include statements,
      these are stripped by make headers-install because they are inside
      #ifdef __KERNEL__ however. Move them out to fix this.
      
      Reported and Tested by Greg Steuck.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c8942f1f
    • K
      af_key: Fix selector family initialization. · 4da51056
      Kazunori MIYAZAWA 提交于
      This propagates the xfrm_user fix made in commit
      bcf0dda8 ("[XFRM]: xfrm_user: fix
      selector family initialization")
      
      Based upon a bug report from, and tested by, Alan Swanson.
      Signed-off-by: NKazunori MIYAZAWA <kazunori@miyazawa.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4da51056
  2. 21 5月, 2008 15 次提交
  3. 20 5月, 2008 7 次提交
  4. 17 5月, 2008 5 次提交
  5. 16 5月, 2008 1 次提交
  6. 15 5月, 2008 7 次提交