* Playing with Network Stack @ 2012-03-13 20:50 james jones 2012-03-13 21:07 ` Jeff Haran 2012-03-14 4:42 ` Sankalp Bagaria 0 siblings, 2 replies; 6+ messages in thread From: james jones @ 2012-03-13 20:50 UTC (permalink / raw) To: kernelnewbies Greetings, I hoping someone here can help point me in the right direction. I had an idea for project, but I lack some of the know how. I was wonder if it might be possible to have a kernel module or an application that can inspect and mangle a packet before it gets routed? I don't want to just sniff the traffic. I want to be able to look at the packet and then hand it back to the network stack for processing. If so is there some reading or example code I could look at? Thanks in advance, -James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120313/67da51e3/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Playing with Network Stack 2012-03-13 20:50 Playing with Network Stack james jones @ 2012-03-13 21:07 ` Jeff Haran [not found] ` <CALcVfM2zdBJf4L7vnvaN8-rmhntM60_MfxvL7mdzj14k-VYvgQ@mail.gmail.com> 2012-03-14 4:42 ` Sankalp Bagaria 1 sibling, 1 reply; 6+ messages in thread From: Jeff Haran @ 2012-03-13 21:07 UTC (permalink / raw) To: kernelnewbies From: kernelnewbies-bounces+jharan=bytemobile.com@kernelnewbies.org [mailto:kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org] On Behalf Of james jones Sent: Tuesday, March 13, 2012 1:50 PM To: kernelnewbies at kernelnewbies.org Subject: Playing with Network Stack Greetings, I hoping someone here can help point me in the right direction. I had an idea for project, but I lack some of the know how. I was wonder if it might be possible to have a kernel module or an application that can inspect and mangle a packet before it gets routed? I don't want to just sniff the traffic. I want to be able to look at the packet and then hand it back to the network stack for processing. If so is there some reading or example code I could look at? Thanks in advance, -James You probably want to do a search on "netfilter hook". Jeff Haran -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120313/97a0f6f4/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CALcVfM2zdBJf4L7vnvaN8-rmhntM60_MfxvL7mdzj14k-VYvgQ@mail.gmail.com>]
[parent not found: <471DE477E2B1F549A58F3A14A27180BE013CB4@HQ-EX01.bytemobile.com>]
* Playing with Network Stack [not found] ` <471DE477E2B1F549A58F3A14A27180BE013CB4@HQ-EX01.bytemobile.com> @ 2012-03-14 17:50 ` james jones 2012-03-14 18:17 ` Jeff Haran 0 siblings, 1 reply; 6+ messages in thread From: james jones @ 2012-03-14 17:50 UTC (permalink / raw) To: kernelnewbies Yep that is what I wanted. Here is another question. Is it ok to use dynamic libs when linking modules? On Tue, Mar 13, 2012 at 5:30 PM, Jeff Haran <jharan@bytemobile.com> wrote: > Seems reasonable.**** > > ** ** > > *From:* james.voip at gmail.com [mailto:james.voip at gmail.com] *On Behalf Of *james > jones > *Sent:* Tuesday, March 13, 2012 2:29 PM > *To:* Jeff Haran > *Subject:* Re: Playing with Network Stack**** > > ** ** > > I think the NF_IP_PRE_ROUTING hook is what I am most interested in.**** > > On Tue, Mar 13, 2012 at 5:07 PM, Jeff Haran <jharan@bytemobile.com> wrote: > **** > > **** > > **** > > *From:* kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org[mailto: > kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org] *On Behalf > Of *james jones > *Sent:* Tuesday, March 13, 2012 1:50 PM > *To:* kernelnewbies at kernelnewbies.org > *Subject:* Playing with Network Stack**** > > **** > > Greetings,**** > > **** > > I hoping someone here can help point me in the right direction. I had an > idea for project, but I lack some of the know how. I was wonder if it might > be possible to have a kernel module or an application that can inspect > and mangle a packet before it gets routed? I don't want to just sniff the > traffic. I want to be able to look at the packet and then hand it back to > the network stack for processing. If so is there some reading or example > code I could look at?**** > > **** > > **** > > Thanks in advance,**** > > **** > > -James**** > > **** > > You probably want to do a search on ?netfilter hook?.**** > > **** > > Jeff Haran**** > > **** > > ** ** > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/ec732150/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Playing with Network Stack 2012-03-14 17:50 ` james jones @ 2012-03-14 18:17 ` Jeff Haran 0 siblings, 0 replies; 6+ messages in thread From: Jeff Haran @ 2012-03-14 18:17 UTC (permalink / raw) To: kernelnewbies From: james.voip@gmail.com [mailto:james.voip at gmail.com] On Behalf Of james jones Sent: Wednesday, March 14, 2012 10:51 AM To: Jeff Haran Cc: kernelnewbies at kernelnewbies.org Subject: Re: Playing with Network Stack Yep that is what I wanted. Here is another question. Is it ok to use dynamic libs when linking modules? I think the answer to that one is going to be "no". Jeff Haran -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/e0c50022/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Playing with Network Stack 2012-03-13 20:50 Playing with Network Stack james jones 2012-03-13 21:07 ` Jeff Haran @ 2012-03-14 4:42 ` Sankalp Bagaria 2012-03-14 17:45 ` james jones 1 sibling, 1 reply; 6+ messages in thread From: Sankalp Bagaria @ 2012-03-14 4:42 UTC (permalink / raw) To: kernelnewbies You can try lipipq http://linux.die.net/man/3/libipq Regards, Sankalp. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/a05c9a62/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Playing with Network Stack 2012-03-14 4:42 ` Sankalp Bagaria @ 2012-03-14 17:45 ` james jones 0 siblings, 0 replies; 6+ messages in thread From: james jones @ 2012-03-14 17:45 UTC (permalink / raw) To: kernelnewbies libipq will not give me what I want. I want this to be complete transparent to the user space. On Wed, Mar 14, 2012 at 12:42 AM, Sankalp Bagaria <sankalp.nitt@gmail.com>wrote: > > You can try lipipq > http://linux.die.net/man/3/libipq > > Regards, > Sankalp. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/81de3baa/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-03-14 18:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13 20:50 Playing with Network Stack james jones
2012-03-13 21:07 ` Jeff Haran
[not found] ` <CALcVfM2zdBJf4L7vnvaN8-rmhntM60_MfxvL7mdzj14k-VYvgQ@mail.gmail.com>
[not found] ` <471DE477E2B1F549A58F3A14A27180BE013CB4@HQ-EX01.bytemobile.com>
2012-03-14 17:50 ` james jones
2012-03-14 18:17 ` Jeff Haran
2012-03-14 4:42 ` Sankalp Bagaria
2012-03-14 17:45 ` james jones
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).