All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Nordstrom <hno@marasystems.com>
To: "Damiano Bolzoni" <damiano.bolzoni@tin.it>,
	<netfilter-devel@lists.samba.org>
Subject: Re: Problem with sk_buff
Date: Fri, 7 Jun 2002 21:09:39 +0200	[thread overview]
Message-ID: <200206072109.39147.hno@marasystems.com> (raw)
In-Reply-To: <000501c20e56$44f88830$c9907450@CHICCA>

Damiano Bolzoni wrote:
> Hi people,
> I wrote a kernel module that uses netfilter. I'm interested on incoming IP
> packets that carry a TCP segment with SYN flag active. What I want to do is
> to know which socket has been created in order to handle that connection
> and I want to close it. sk_buff holds two pointer: struct sock* and struct
> socket* but they point to NULL.
> At this time I can test if the TCP segment has the SYN flag set but I can't
> close the socket...
> Anyone can help me?

This is too early in the packet processing path. The socket is not yet known. 
These fields is only valid on locally generated packets (outgoing/sent 
packets).

You will need to make a call into the TCP/IP kernel to look up the local 
socket.

Regards
Henrik

      reply	other threads:[~2002-06-07 19:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-07 19:05 Problem with sk_buff Damiano Bolzoni
2002-06-07 19:09 ` Henrik Nordstrom [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=200206072109.39147.hno@marasystems.com \
    --to=hno@marasystems.com \
    --cc=damiano.bolzoni@tin.it \
    --cc=netfilter-devel@lists.samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.