mailing list of musl libc
 help / color / mirror / code / Atom feed
* missing enum in netinet/tcp.h
@ 2013-07-30  5:09 orc
  2013-07-30 10:03 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: orc @ 2013-07-30  5:09 UTC (permalink / raw)
  To: musl list

This enum is required by lsof(8) in netinet/tcp.h:

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: missing enum in netinet/tcp.h
  2013-07-30  5:09 missing enum in netinet/tcp.h orc
@ 2013-07-30 10:03 ` Szabolcs Nagy
  0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2013-07-30 10:03 UTC (permalink / raw)
  To: musl

* orc <orc@sibserver.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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-30 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-30  5:09 missing enum in netinet/tcp.h orc
2013-07-30 10:03 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).