mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnout Engelen <arnouten@bzzt.net>
To: linux-kernel@vger.kernel.org
Subject: truncated lines in /proc/net/tcp
Date: Fri, 10 Sep 2004 18:30:03 +0200	[thread overview]
Message-ID: <20040910163003.GT11646@bzzt.net> (raw)

Hi,

I noticed lines in the output of /proc/net/tcp sometimes appear 'truncated', like
this:

  52: 010310AC:9D95 030310AC:1770 06 00000000:00000000 03:0000146C
  00000000     0        0 0 2 c4e3f0c0

(also notice that the inode is '0' instead of some large integer)

This is print by the code at:

  http://lxr.linux.no/source/net/ipv4/tcp_ipv4.c?v=2.6.8.1#L2504

Maybe the value of 'tp' gets invalidated at some point during the
gathering of the data to be printed there?

(note that I'm not myself a kernel developer. I ran into this when
writing a userspace application and decided I wanted to know why this
happened. I saw this behaviour on a 2.4.26 kernel, but the code 
doesn't appear to be significantly different in 2.6. I'm not subscribed 
to the LKML, so if you want to ask me something please CC me personally).

-- 
Arnout Engelen <arnouten@bzzt.net>

  "If it sounds good, it /is/ good."
          -- Duke Ellington

             reply	other threads:[~2004-09-10 16:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 16:30 Arnout Engelen [this message]
2004-09-15  4:37 ` Randy.Dunlap

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=20040910163003.GT11646@bzzt.net \
    --to=arnouten@bzzt.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

Powered by JetHome