public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Joey Dewille" <joey1968@fastmail.co.uk>
To: linux-kernel@vger.kernel.org
Subject: how to deduce connect/accept history from struct sock? (REPEAT)
Date: Fri, 14 May 2004 00:30:45 +0200	[thread overview]
Message-ID: <1084487445.25042.196432875@webmail.messagingengine.com> (raw)

Say a module is inserted that intercepts all socket operations and
it happened in the middle of several established connections.
Please answer what fields in struct sock or elsewhere can be examined
to determine reliably if the current established connections had been
accepted (i.e. accept call) or initiated (i.e. connect) from the local
machine.
--Joey

P.S. By the way, it seems to me that many fundamental structs in the 
linux kernel such as sock, task_struct and others waste memory --
it would be preferable to pack some of their members in
bitfields. Everything and the kitchen sink can be found in those 
structs which is wrong. Booleans are often given an entire char field.
Other members do not fall on natural alignment boundaries and create
holes. Memory is cheap but smaller memory footprint implies better
locality of reference, implies greater cache induced performance overall.

-- 
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

                 reply	other threads:[~2004-05-13 22:42 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=1084487445.25042.196432875@webmail.messagingengine.com \
    --to=joey1968@fastmail.co.uk \
    --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