• Parthasarathy Bhuvaragan's avatar
    tipc: create TIPC_LISTEN as a new sk_state · 0c288c86
    Parthasarathy Bhuvaragan authored
    Until now, tipc maintains the socket state in sock->state variable.
    This is used to maintain generic socket states, but in tipc
    we overload it and save tipc socket states like TIPC_LISTEN.
    Other protocols like TCP, UDP store protocol specific states
    in sk->sk_state instead.
    
    In this commit, we :
    - declare a new tipc state TIPC_LISTEN, that replaces SS_LISTEN
    - Create a new function tipc_set_state(), to update sk->sk_state.
    - TIPC_LISTEN state is maintained in sk->sk_state.
    - replace references to SS_LISTEN with TIPC_LISTEN.
    
    There is no functional change in this commit.
    Signed-off-by: default avatarParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0c288c86
socket.c 74.9 KB