Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130730100324.GG25714@port70.net>
Date: Tue, 30 Jul 2013 12:03:24 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: missing enum in netinet/tcp.h

* orc <orc@...server.ru> [2013-07-30 13:09:30 +0800]:
> This enum is required by lsof(8) in netinet/tcp.h:
> 

it seems lsof uses the st field of /proc/net/tcp to determine
the state of a tcp socket

and linux uapi does not seem to export the enum which makes
those numbers useless (it is in the kernel only net/tcp_states.h)

so i guess musl should have the enum

> enum
> {
>   TCP_ESTABLISHED = 1,
>   TCP_SYN_SENT,
>   TCP_SYN_RECV,
>   TCP_FIN_WAIT1,
>   TCP_FIN_WAIT2,
>   TCP_TIME_WAIT,
>   TCP_CLOSE,
>   TCP_CLOSE_WAIT,
>   TCP_LAST_ACK,
>   TCP_LISTEN,
>   TCP_CLOSING   /* now a valid state */
> };
> 
> (copied from glibc header)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.