All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott MacKay <scottmackay@yahoo.com>
To: netfilter-devel@lists.netfilter.org
Subject: Re: Userspace msg, hw_addr unused?
Date: Thu, 15 Jan 2004 06:00:00 -0800 (PST)	[thread overview]
Message-ID: <20040115140000.52096.qmail@web13902.mail.yahoo.com> (raw)
In-Reply-To: <20040115133217.86413.qmail@web13909.mail.yahoo.com>

In poking around, I think I see what would be needed. 
Any confirmation would be great.
entry->skb has a mac.ethernet structure.  This looks
to be a ethhdr, so it has a h_source and h_dest.
2 options seem to be to add a ethdr to the
ipq_packet_msg and memcpy the entry->skb->mac.ethernet
or to add 2 fields (maybe removing the hw_addr if
unused) and memcpy the h_source and h_dest.

I think, if I alter those fields, though, that there
is alot of recompile needed.  Is there a better way to
get to the ethernet fields?


--- Scott MacKay <scottmackay@yahoo.com> wrote:
> I was looking thru the userspace code for material
> passed up in the ipq_packet_msg structure, looking
> for
> any data from the ethernet header.  I noticed that
> the
> hw_addr array never seems to be filled out, even
> though hw_addrlen does.  Any reason for that?
> 
> Also, if I wanted to patch the kernel's ip_queue.c
> to
> pass up the source and destination ether address,
> any
> ideas on where I get the packet's data from? 
> Thanks!!
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

  reply	other threads:[~2004-01-15 14:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14 10:34 Changing the content of tcp timeouts in ip_conntrack_proto_tcp.c Emmanuel Guiton
2004-01-14 11:11 ` Henrik Nordstrom
2004-01-14 12:39   ` Emmanuel Guiton
2004-01-14 12:50     ` KOVACS Krisztian
2004-01-14 13:23       ` Emmanuel Guiton
2004-01-15  8:26         ` Side effect? - " Emmanuel Guiton
2004-01-15 13:14           ` KOVACS Krisztian
2004-01-15 13:32             ` Userspace msg, hw_addr unused? Scott MacKay
2004-01-15 14:00               ` Scott MacKay [this message]
2004-01-15 14:19             ` Side effect? - Re: Changing the content of tcp timeouts in ip_conntrack_proto_tcp.c Emmanuel Guiton
2004-01-15 14:29               ` Last minute erratum: I'm stupid. - Re: Side effect? - Re: Changing the content of tcp timeouts Emmanuel Guiton

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=20040115140000.52096.qmail@web13902.mail.yahoo.com \
    --to=scottmackay@yahoo.com \
    --cc=netfilter-devel@lists.netfilter.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.