Lines Matching refs:state
55 static const char *dccp_state_name(const int state)
71 if (state >= DCCP_MAX_STATES)
74 return dccp_state_names[state];
78 void dccp_set_state(struct sock *sk, const int state)
83 dccp_state_name(oldstate), dccp_state_name(state));
84 WARN_ON(state == oldstate);
86 switch (state) {
110 /* Change state AFTER socket is unhashed to avoid closed
113 inet_sk_set_state(sk, state);
244 /* clean up feature negotiation state */
250 static inline int dccp_need_reset(int state)
252 return state != DCCP_CLOSED && state != DCCP_LISTEN &&
253 state != DCCP_REQUESTING;
321 int state;
325 state = inet_sk_state_load(sk);
326 if (state == DCCP_LISTEN)
330 by poll logic and correct handling of state changes
339 if (shutdown == SHUTDOWN_MASK || state == DCCP_CLOSED)
345 if ((1 << state) & ~(DCCPF_REQUESTING | DCCPF_RESPOND)) {
929 if (sock->state != SS_UNCONNECTED || sock->type != SOCK_DCCP)
937 /* Really, if the socket is already in listen state
996 int state;
1055 state = sk->sk_state;
1074 if (state != DCCP_CLOSED && sk->sk_state == DCCP_CLOSED)