mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: missing enum in netinet/tcp.h
Date: Tue, 30 Jul 2013 12:03:24 +0200	[thread overview]
Message-ID: <20130730100324.GG25714@port70.net> (raw)
In-Reply-To: <20130730130930.26a34dca@sibserver.ru>

* 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)


      reply	other threads:[~2013-07-30 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-30  5:09 orc
2013-07-30 10:03 ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130730100324.GG25714@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).