socket state after accept() return

Mulyadi Santosa mulyadi.santosa at
Sat Jan 19 10:50:40 EST 2013

On Sat, Jan 19, 2013 at 4:42 AM, horseriver <horserivers at> wrote:
> hi:
>   For one socket , which has been returned by accept() call  , does its sk_state
>   is  assuredly  already  TCPF_ESTABLISHED ?

the context is TCP, right?

if so, then yes (this is without deep check in linux network stack
code, just based on general logic)


Mulyadi Santosa
Freelance Linux trainer and consultant


More information about the Kernelnewbies mailing list