1. 11 2月, 2007 1 次提交
  2. 03 12月, 2006 1 次提交
  3. 14 8月, 2006 1 次提交
  4. 05 8月, 2006 1 次提交
    • S
      [LLX]: SOCK_DGRAM interface fixes · 30a584d9
      Stephen Hemminger 提交于
      The datagram interface of LLC is broken in a couple of ways.
      These were discovered when trying to use it to build an out-of-kernel
      version of STP.
      
      First it didn't pass the source address of the received packet
      in recvfrom(). It needs to copy the source address of received LLC packets
      into the socket control block. At the same time fix a security issue
      because there was uninitialized data leakage. Every recvfrom call
      was just copying out old data.
      
      Second, LLC should not merge multiple packets in one receive call
      on datagram sockets. LLC should preserve packet boundaries on
      SOCK_DGRAM.
      
      This fix goes against the old historical comments about UNIX98 semantics
      but without this fix SOCK_DGRAM is broken and useless. So either ANK's
      interpretation was incorect or UNIX98 standard was wrong.
      Signed-off-by: NStephen Hemminger <shemminger@osdl.org>
      Acked-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      30a584d9
  5. 22 7月, 2006 1 次提交
  6. 01 7月, 2006 1 次提交
  7. 18 6月, 2006 7 次提交
  8. 20 4月, 2006 1 次提交
  9. 21 3月, 2006 4 次提交
  10. 04 1月, 2006 3 次提交
  11. 18 11月, 2005 1 次提交
    • D
      [LLC]: Fix compiler warnings introduced by TX window scaling changes. · 38199824
      David S. Miller 提交于
      Noticed by Olaf Hering.
      
      The comparisons want a u8 here (the data type on the left-hand branch
      is a u8 structure member, and the constant on the right-hand branch is
      "~((u8) 128)"), but C turns it into an integer so we get:
      
      net/llc/llc_c_ac.c: In function `llc_conn_ac_inc_npta_value':
      net/llc/llc_c_ac.c:998: warning: comparison is always true due to limited range of data type
      net/llc/llc_c_ac.c:999: warning: large integer implicitly truncated to unsigned type
      
      Fix this up by explicitly recasting the right-hand branch constant
      into a "u8" once more.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      38199824
  12. 15 11月, 2005 2 次提交
  13. 09 10月, 2005 1 次提交
  14. 22 9月, 2005 15 次提交