1. 30 9月, 2008 1 次提交
  2. 19 9月, 2008 2 次提交
    • V
      sctp: Fix oops when INIT-ACK indicates that peer doesn't support AUTH · add52379
      Vlad Yasevich 提交于
      If INIT-ACK is received with SupportedExtensions parameter which
      indicates that the peer does not support AUTH, the packet will be
      silently ignore, and sctp_process_init() do cleanup all of the
      transports in the association.
      When T1-Init timer is expires, OOPS happen while we try to choose
      a different init transport.
      
      The solution is to only clean up the non-active transports, i.e
      the ones that the peer added.  However, that introduces a problem
      with sctp_connectx(), because we don't mark the proper state for
      the transports provided by the user.  So, we'll simply mark
      user-provided transports as ACTIVE.  That will allow INIT
      retransmissions to work properly in the sctp_connectx() context
      and prevent the crash.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      add52379
    • V
      sctp: do not enable peer features if we can't do them. · 0ef46e28
      Vlad Yasevich 提交于
      Do not enable peer features like addip and auth, if they
      are administratively disabled localy.  If the peer resports
      that he supports something that we don't, neither end can
      use it so enabling it is pointless.  This solves a problem
      when talking to a peer that has auth and addip enabled while
      we do not.  Found by Andrei Pelinescu-Onciul <andrei@iptel.org>.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ef46e28
  3. 19 7月, 2008 1 次提交
  4. 14 5月, 2008 1 次提交
  5. 12 5月, 2008 2 次提交
  6. 13 4月, 2008 2 次提交
  7. 24 3月, 2008 1 次提交
  8. 06 3月, 2008 1 次提交
    • G
      SCTP: Fix chunk parameter processing bug · 140ee960
      Gui Jianfeng 提交于
      If an address family is not listed in "Supported Address Types"
      parameter(INIT Chunk), but the packet is sent by that family, this
      address family should be considered as supported by peer.  Otherwise,
      an error condition will occur. For instance, if kernel receives an
      IPV6 SCTP INIT chunk with "Support Address Types" parameter which
      indicates just supporting IPV4 Address family. Kernel will reply an
      IPV6 SCTP INIT ACK packet, but the source ipv6 address in ipv6 header
      will be vacant. This is not correct.
      
      refer to RFC4460 as following:
            IMPLEMENTATION NOTE: If an SCTP endpoint lists in the 'Supported
            Address Types' parameter either IPv4 or IPv6, but uses the other
            family for sending the packet containing the INIT chunk, or if it
            also lists addresses of the other family in the INIT chunk, then
            the address family that is not listed in the 'Supported Address
            Types' parameter SHOULD also be considered as supported by the
            receiver of the INIT chunk.  The receiver of the INIT chunk SHOULD
            NOT respond with any kind of error indication.
      
      Here is a fix to comply to RFC.
      Signed-off-by: NGui Jianfeng <guijianfeng@cn.fujitsu.com>
      Acked-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      140ee960
  9. 07 2月, 2008 1 次提交
  10. 05 2月, 2008 1 次提交
  11. 01 2月, 2008 1 次提交
  12. 29 1月, 2008 5 次提交
  13. 09 1月, 2008 1 次提交
  14. 21 12月, 2007 1 次提交
  15. 29 11月, 2007 2 次提交
  16. 10 11月, 2007 1 次提交
  17. 08 11月, 2007 4 次提交
  18. 27 10月, 2007 1 次提交
  19. 24 10月, 2007 1 次提交
  20. 23 10月, 2007 2 次提交
  21. 11 10月, 2007 5 次提交
    • V
      [SCTP]: Tie ADD-IP and AUTH functionality as required by spec. · 6b2f9cb6
      Vlad Yasevich 提交于
      ADD-IP spec requires AUTH. It is, in fact, dangerous without AUTH.
      So, disable ADD-IP functionality if the peer claims to support
      ADD-IP, but not AUTH.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b2f9cb6
    • V
      [SCTP]: Enable the sending of the AUTH chunk. · 4cd57c80
      Vlad Yasevich 提交于
      SCTP-AUTH, Section 6.2:
      
         Endpoints MUST send all requested chunks authenticated where this has
         been requested by the peer.  The other chunks MAY be sent
         authenticated or not.  If endpoint pair shared keys are used, one of
         them MUST be selected for authentication.
      
         To send chunks in an authenticated way, the sender MUST include these
         chunks after an AUTH chunk.  This means that a sender MUST bundle
         chunks in order to authenticate them.
      
         If the endpoint has no endpoint pair shared key for the peer, it MUST
         use Shared Key Identifier 0 with an empty endpoint pair shared key.
         If there are multiple endpoint shared keys the sender selects one and
         uses the corresponding Shared Key Identifier
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4cd57c80
    • V
      [SCTP]: Implete SCTP-AUTH parameter processing · 730fc3d0
      Vlad Yasevich 提交于
      Implement processing for the CHUNKS, RANDOM, and HMAC parameters and
      deal with how this parameters are effected by association restarts.
      In particular, during unexpeted INIT processing, we need to reply with
      parameters from the original INIT chunk.  Also, after restart, we need
      to update the old association with new peer parameters and change the
      association shared keys.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      730fc3d0
    • V
      [SCTP]: Implement the Supported Extensions Parameter · 131a47e3
      Vlad Yasevich 提交于
      SCTP Supported Extenions parameter is specified in Section 4.2.7
      of the ADD-IP draft (soon to be RFC).  The parameter is
      encoded as:
      
            0                   1                   2                   3
            0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
           |     Parameter Type = 0x8008   |      Parameter Length         |
           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
           | CHUNK TYPE 1  |  CHUNK TYPE 2 |  CHUNK TYPE 3 |  CHUNK TYPE 4 |
           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
           |                             ....                              |
           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
           | CHUNK TYPE N  |      PAD      |      PAD      |      PAD      |
           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      
      It contains a list of chunks that a particular SCTP extension
      uses.  Current extensions supported are Partial Reliability
      (FWD-TSN) and ADD-IP (ASCONF and ASCONF-ACK).
      
      When implementing new extensions (AUTH, PKT-DROP, etc..), new
      chunks need to be added to this parameter.  Parameter processing
      would be modified to negotiate support for these new features.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      131a47e3
    • A
      [SCTP]: Make sctp_addto_param() static. · 5c94bf86
      Adrian Bunk 提交于
      sctp_addto_param() can become static.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5c94bf86
  22. 26 9月, 2007 1 次提交
  23. 17 9月, 2007 1 次提交
  24. 31 8月, 2007 1 次提交