1. 26 9月, 2007 3 次提交
  2. 31 8月, 2007 3 次提交
    • V
      SCTP: Abort on COOKIE-ECHO if backlog is exceeded. · 609ee467
      Vlad Yasevich 提交于
      Currently we abort on the INIT chunk we our backlog is currenlty
      exceeded.  Delay this about untill COOKIE-ECHO to give the user
      time to accept the socket.  Also, make sure that we treat
      sk_max_backlog of 0 as no connections allowed.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      609ee467
    • W
      SCTP: Use net_ratelimit to suppress error messages print too fast · d99fa429
      Wei Yongjun 提交于
      When multi bundling SHUTDOWN-ACK message is received in ESTAB state,
      this will cause "sctp protocol violation state" message print many times.
      If SHUTDOWN-ACK is bundled 300 times in one packet, message will be
      print 300 times. The same problem also exists when received unexpected
      HEARTBEAT-ACK message which is bundled message times.
      
      This patch used net_ratelimit() to suppress error messages print too fast.
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      d99fa429
    • W
      SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly · 00f1c2df
      Wei Yongjun 提交于
      PROTOCOL VIOLATION error cause in ABORT is bad encode when make abort
      chunk. When SCTP encode ABORT chunk with PROTOCOL VIOLATION error cause,
      it just add the error messages to PROTOCOL VIOLATION error cause, the
      rest four bytes(struct sctp_paramhdr) is just add to the chunk, not
      change the length of error cause. This cause the ABORT chunk to be a bad
      format. The chunk is like this:
      
      ABORT chunk
        Chunk type: ABORT (6)
        Chunk flags: 0x00
        Chunk length: 72 (*1)
        Protocol violation cause
          Cause code: Protocol violation (0x000d)
          Cause length: 62 (*2)
          Cause information: 5468652063756D756C61746976652074736E2061636B2062...
          Cause padding: 0000
      [Needless] 00030010
      Chunk Length(*1) = 72 but Cause length(*2) only 62, not include the
      extend 4 bytes.
      ((72 - sizeof(chunk_hdr)) = 68) != (62 +3) / 4 * 4
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      00f1c2df
  3. 02 8月, 2007 1 次提交
  4. 19 7月, 2007 1 次提交
  5. 05 5月, 2007 1 次提交
    • V
      [SCTP]: Set assoc_id correctly during INIT collision. · 07d93967
      Vlad Yasevich 提交于
      During the INIT/COOKIE-ACK collision cases, it's possible to get
      into a situation where the association id is not yet set at the time
      of the user event generation.  As a result, user events have an
      association id set to 0 which will confuse applications.
      
      This happens if we hit case B of duplicate cookie processing.
      In the particular example found and provided by Oscar Isaula
      <Oscar.Isaula@motorola.com>, flow looks like this:
      A				B
      ---- INIT------->  (lost)
      	    <---------INIT------
      ---- INIT-ACK--->
      	    <------ Cookie ECHO
      
      When the Cookie Echo is received, we end up trying to update the
      association that was created on A as a result of the (lost) INIT,
      but that association doesn't have the ID set yet.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      07d93967
  6. 26 4月, 2007 4 次提交
  7. 20 3月, 2007 1 次提交
  8. 27 2月, 2007 1 次提交
  9. 11 2月, 2007 1 次提交
  10. 24 1月, 2007 3 次提交
  11. 23 12月, 2006 1 次提交
  12. 03 12月, 2006 15 次提交
  13. 23 9月, 2006 2 次提交
  14. 23 8月, 2006 1 次提交
  15. 22 7月, 2006 2 次提交