24 Apr, 2008

1 commit


18 Apr, 2008

1 commit


14 Apr, 2008

1 commit


13 Apr, 2008

7 commits

  • The 'asoc' parameter to sctp_cmd_hb_timer_update() is unused, and
    we can remove it.

    Signed-off-by: Gui Jianfeng
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Gui Jianfeng
     
  • Replacing (almost) all invocations of list_for_each() with
    list_for_each_entry() tightens up the code and allows for the deletion
    of numerous list iterator variables that are no longer necessary.

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Robert P. J. Day
     
  • Recently I posted a patch to add some informational items to
    /proc/net/sctp/assocs. All the information is correct, but because
    of how the seqfile show operation is laid out, some of the formatting
    is backwards. This patch corrects that formatting, so that the new
    information appears at the end of each line, rather than in the middle.

    Signed-off-by: Neil Horman
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Neil Horman
     
  • All IP addresses that are present in a system are duplicated on
    struct sctp_sockaddr_entry. They are linked in the global list
    called sctp_local_addr_list. And this struct unions IPv4 and IPv6
    addresses.

    So, there can be rare case, when a sockaddr_in.sin_addr coincides
    with the corresponding part of the sockaddr_in6 and the notifier
    for IPv4 will carry away an IPv6 entry.

    The fix is to check the family before comparing the addresses.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • Fix 3 warnings about discarding const qualifiers:

    net/sctp/ulpevent.c:862: warning: passing argument 1 of 'sctp_event2skb' discards qualifiers from pointer target type
    net/sctp/sm_statefuns.c:4393: warning: passing argument 1 of 'SCTP_ASOC' discards qualifiers from pointer target type
    net/sctp/socket.c:5874: warning: passing argument 1 of 'cmsg_nxthdr' discards qualifiers from pointer target type

    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Vlad Yasevich
     
  • When receiving an error length INIT-ACK during COOKIE-WAIT,
    a 0-vtag ABORT will be responsed. This action violates the
    protocol apparently. This patch achieves the following things.
    1 If the INIT-ACK contains all the fixed parameters, use init-tag
    recorded from INIT-ACK as vtag.
    2 If the INIT-ACK doesn't contain all the fixed parameters,
    just reflect its vtag.

    Signed-off-by: Gui Jianfeng
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Gui Jianfeng
     
  • RFC 4890 has the following text:

    The HMAC algorithm based on SHA-1 MUST be supported and
    included in the HMAC-ALGO parameter.

    As a result, we need to check in sctp_verify_param() that HMAC_SHA1 is
    present in the list. If not, we should probably treat this as a
    protocol violation.

    It should also be a protocol violation if the HMAC parameter is empty.

    Signed-off-by: Wei Yongjun
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Wei Yongjun
     

10 Apr, 2008

4 commits


04 Apr, 2008

4 commits


29 Mar, 2008

1 commit


28 Mar, 2008

1 commit

  • With a was number of callsites sctp_add_cmd_sf wrapper bloats
    kernel by some amount. Due to unlikely tracking allyesconfig,
    with the initial result were around ~7kB (thus caught my
    attention) while a non-debug config produced only ~2.3kB effect.

    I (ij) proposed first a patch to uninline it but Vlad responded
    with a patch that removed the only sctp_add_cmd call which is
    wrapped by sctp_add_cmd_sf (I wasn't sure if I could do that).
    I did minor cleanup to Vlad's patch.

    Signed-off-by: Ilpo Järvinen
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Ilpo Järvinen
     

26 Mar, 2008

2 commits


25 Mar, 2008

1 commit


24 Mar, 2008

2 commits


21 Mar, 2008

2 commits

  • David S. Miller
     
  • There is a race is SCTP between the loading of the module
    and the access by the socket layer to the protocol functions.
    In particular, a list of addresss that SCTP maintains is
    not initialized prior to the registration with the protosw.
    Thus it is possible for a user application to gain access
    to SCTP functions before everything has been initialized.
    The problem shows up as odd crashes during connection
    initializtion when we try to access the SCTP address list.

    The solution is to refactor how we do registration and
    initialize the lists prior to registering with the protosw.
    Care must be taken since the address list initialization
    depends on some other pieces of SCTP initialization. Also
    the clean-up in case of failure now also needs to be refactored.

    Signed-off-by: Vlad Yasevich
    Acked-by: Sridhar Samudrala
    Signed-off-by: David S. Miller

    Vlad Yasevich
     

18 Mar, 2008

3 commits


12 Mar, 2008

1 commit


06 Mar, 2008

6 commits


04 Mar, 2008

2 commits


01 Mar, 2008

1 commit

  • RFC 3873 specifies several MIB objects that can't be obtained by the
    current data set exported by /proc/sys/net/sctp/assoc. This patch
    adds the missing pieces of data that allow us to compute all the
    objects in the sctpAssocTable object.

    Signed-off-by: Neil Horman
    Signed-off-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Neil Horman