From: "JessePeng" <jesse@deansoft.com.tw>
To: "varun" <varun@rocsys.com>
Cc: netfilters <netfilter-devel@lists.netfilter.org>
Subject: Re: Doubt on packet generation in kernel space.
Date: Mon, 15 Aug 2005 12:48:11 +0800 [thread overview]
Message-ID: <001301c5a154$8ae51180$1501a8c0@test1> (raw)
In-Reply-To: 1123845780.2598.7.camel@varun
Dear Varun:
How will you handle the response?Actually,that's derived from how you manage
your "probe by icmp" machenism.It looks not simple as hacking an icmp
packet!
Your sincerely
Jesse
----- Original Message -----
From: "varun" <varun@rocsys.com>
To: "Jesse Peng" <jesse@deansoft.com.tw>
Cc: "netfilters" <netfilter-devel@lists.netfilter.org>
Sent: Friday, August 12, 2005 7:23 PM
Subject: Re: Doubt on packet generation in kernel space.
> Hi jesse,
>
> Let me explain my requirement. I have a kernel module which
> is basically maintaining some network database of what are the MAC and
> Ip of each of the system in the network. Now with the help of a
> character pseudo driver, my user program will send an request to the
> kernel module to generate the icmp (ping) packet to a particular host
> from the maintained kernel database. It is on this event that the packet
> generator module comes into picture where in the inputs to the module is
> IP and based on this the i might get a response from the destination
> system and i will compare the MACs to see if they are equal. So for this
> requirement i need a packet generator to handle this event. Only an icmp
> packet is enough.
>
> Thanx in advance.
> Varun
>
>
> On Fri, 2005-08-12 at 13:45, Jesse Peng wrote:
> > Dear Varun:
> >
> > It depends on whether your code is in process context or interupt
context.
> > Maybe you will elaberate the situation you generate the icmp packet?It
will
> > help more for others to help..
> >
> > Your sincerely
> > Jesse
> >
> >
> >
> > ----- Original Message -----
> > From: "varun" <varun@rocsys.com>
> > To: <netfilter-devel@lists.netfilter.org>
> > Sent: Thursday, August 11, 2005 2:33 PM
> > Subject: Doubt on packet generation in kernel space.
> >
> >
> > > Hi all
> > >
> > > Iam a newbie and iam basically interested in generation my own
> > > icmp packet in the kernel space using skb. That is iam aware that this
> > > can be done using raw or packet socket from user space. But to
> > > do it from kernel space is it possible if yes how to go
> > > about it. i believe that what raw socket call from User space does in
> > > kernel thats what iam supposed to do.(Correct me if iam wrong). I
think
> > > i might have to build my own skb and put it in transmit queue. Is it
> > > possible? Iam also aware that there are some packet generation module
> > > that is inbuilt as per the Documentation in linux kernel states. But i
> > > dont want to use that instead i want to create my own module that will
> > > allow me generate the icmp packet. Please help!!
> > >
> > > Varun
> > >
> > >
>
next prev parent reply other threads:[~2005-08-15 4:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 6:33 Doubt on packet generation in kernel space varun
2005-08-12 8:15 ` Jesse Peng
2005-08-12 11:23 ` varun
2005-08-15 4:48 ` JessePeng [this message]
2005-08-16 3:30 ` varun
2005-08-18 7:47 ` Jesse Peng
2005-08-23 3:53 ` varun
-- strict thread matches above, loose matches on Subject: below --
2005-08-24 9:54 Jesse Peng
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='001301c5a154$8ae51180$1501a8c0@test1' \
--to=jesse@deansoft.com.tw \
--cc=netfilter-devel@lists.netfilter.org \
--cc=varun@rocsys.com \
/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.