• Florian Westphal's avatar
    mptcp: add mptcp reset option support · dc87efdb
    Florian Westphal authored
    The MPTCP reset option allows to carry a mptcp-specific error code that
    provides more information on the nature of a connection reset.
    
    Reset option data received gets stored in the subflow context so it can
    be sent to userspace via the 'subflow closed' netlink event.
    
    When a subflow is closed, the desired error code that should be sent to
    the peer is also placed in the subflow context structure.
    
    If a reset is sent before subflow establishment could complete, e.g. on
    HMAC failure during an MP_JOIN operation, the mptcp skb extension is
    used to store the reset information.
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    dc87efdb
protocol.h 23.6 KB