From: monkeyiq <monkeyiq@users.sourceforge.net>
To: linux-kernel@vger.kernel.org
Cc: monkeyiq@users.sourceforge.net
Subject: /proc/net/tcp && udp formats
Date: Tue, 4 Sep 2001 22:39:40 +1000 [thread overview]
Message-ID: <200109041239.f84CdeJ26575@monkeyiq.dnsalias.org> (raw)
Hi,
Is the format of these two files fixed? I think there
was talk on the files in /proc on the list a while ago,
but there seemed to be no resolution as to that format
was going to be sought in the future.
I ask because in ferris I parse these files to get a
"directory" of sockets, from which soon one will be
able to "create" a new socket.
Also, where is the 'st' state enum defined for this file?
I'd like to look it up and provide EA for it too.
...
Also as an RFC on any ideas for improvements that others may
have, I take the following
$ head -2 /proc/net/tcp
sl local_address rem_address st tx_queue rx_queue \
tr tm->when retrnsmt uid timeout inode
0: 6300A8C0:008B 00000000:0000 0A 00000000:00000000 \
00:00000000 00000000 0 0 2571091 1 c90db7e0 300 0 0 2 -1
And generate a context with EA in ferris:
./ls --root-context-class=socket \
--show-columns="name,local_address,local-ip,local-port,remote-ip,remote-port,path,local-hostname,ea-names" \
--ferris-logging-off /tcp
name local_address local-ip local-port \
remote-ip remote-port path local-hostname ea-names
0 6300A8C0:008B 192.168.0.99 139 \
0.0.0.0 0 /tcp/0 myhost attribute-count,dss,dss1,ea-names,head,head-radix,inode,local-hostname,local-ip,local-port,local_address,md2,md4,md5,mdc2,name,path,rem_address,remote-hostname,remote-ip,remote-port,retrnsmt,ripemd160,rx_queue,sha,sha1,sl,st,subcontext-count,timeout,tm->when,tr,tx_queue,uid,
where ea-names are all the attributes for this fake file. I basically take
every line and make a fake file for it, and add new EA for ip, reverse lookups,
and port in decimal. Sorry about the formatting...
I could maybe send CSV for future posts :|
-------------------------------------------
is that you ferrese?
http://witme.sourceforge.net/libferris.web/
reply other threads:[~2001-09-04 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200109041239.f84CdeJ26575@monkeyiq.dnsalias.org \
--to=monkeyiq@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®