Skip to contentSkip to conversation

Accessing sk_buf

DISCUSSION Andrew Watts 2 participants 3 messages Apr 5, 2010 – Apr 7, 2010 netfilter

lore
Share & tools
lore
#0 lore raw

Dear list:

I am writing a "bump" message for a previous post of mine. I would like suggestions or advice on how to go about accessing packet skbuf->sk fields (inodes, for example), in userspace via NFQUEUE. My read is that this is currently not possible as these are not exported.

Has anyone played with patches that achieve this? Any suggestions on where to look?

Also, if this is the wrong place to ask this, would one of you kindly suggest a more appropriate place?

Many thanks.

~Andy

#1 lore raw
Quoted 9 lines · Andrew Watts

Dear list:

I am writing a "bump" message for a previous post of mine. I would like suggestions or advice on how to go about accessing packet skbuf->sk fields (inodes, for example), in userspace via NFQUEUE. My read is that this is currently not possible as these are not exported.

Has anyone played with patches that achieve this? Any suggestions on where to look?

There is a bug report at
http://bugzilla.netfilter.org/show_bug.cgi?id=600 where I posted a patch, but it has not seen acceptance yet. May need to push harder.

#2 lore raw

--- On Tue, 4/6/10, Jan Engelhardt <[email protected]>

Quoted 15 lines · wrote:
Quoted 3 lines · Andrew Watts

Dear list:

I am writing a "bump" message for a previous post of

mine. I would like

Quoted 1 line

suggestions or advice on how to go about accessing

packet skbuf->sk

Quoted 1 line

fields (inodes, for example), in userspace via NFQUEUE.

My read is

Quoted 1 line

that this is currently not possible as these are not

exported.

Quoted 2 lines

Has anyone played with patches that achieve this? Any

Quoted 9 lines

suggestions on

Quoted 1 line

where to look?

There is a bug report at
http://bugzilla.netfilter.org/show_bug.cgi?id=600 where I posted a
patch, but it has not seen acceptance yet. May need to push harder.

That is exactly what I needed to see, in terms of suggested code. I can easily tweak this to meet my needs (I think) - much appreciated.

I will also be tracking that part of netfilter to see if your patch gets mainlined going forward.

Thanks.
~Andy