Re: Compile external module against linux source and use functionality in linux source

2014-09-24 Thread Paul Bolle
[Manually corrected top-posting.] On Thu, 2014-09-25 at 12:11 +0530, Arjun Pandey wrote: > On Thu, Sep 25, 2014 at 12:06 PM, Paul Bolle wrote: > > I'm guessing you're compiling that module as, well, a module (ie, > > CONFIG_EXAMPLE=m). What happens when you make it built-in > > (CONFIG_EXAMPLE=y)

Re: Compile external module against linux source and use functionality in linux source

2014-09-24 Thread Arjun Pandey
No i am just compiling the external module and using this functionality in existing linux source code. I am not adding any additional modules within the tree which use this function. In my case i am trying to use the function directly in udp_rcv function of net/ipv4/udp.c Regards Arjun On Thu, S

Re: Compile external module against linux source and use functionality in linux source

2014-09-24 Thread Paul Bolle
On Thu, 2014-09-25 at 10:49 +0530, Arjun Pandey wrote: > However now when i try to compile the kernel i get linker error of > undefined reference to the function exported from the kernel module. I'm guessing you're compiling that module as, well, a module (ie, CONFIG_EXAMPLE=m). What happens when

Compile external module against linux source and use functionality in linux source

2014-09-24 Thread Arjun Pandey
Hi I am trying to two things here. 1. Compile my module and export a function. 2. Use this exported function in modified kernel src and compile it. Step 1 goes through fine. The module gets compiled fine. However now when i try to compile the kernel i get linker error of undefined reference to t

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread maninder . tiet
Hi.. Thanks for your reply. I agree that an interface can have more than one ipv6 addresses but in the PoC I am doing for an IP Traceback technique, I need to record a hash of the IP of incoming interface. For that I need to be able to read the packet. Your reply gave me a direction to explore

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Maninder Singh
Hi Valdis, I am trying some PoC for an IP traceback method in IPv6. For that, I need to record a variant (like a hash) of the IP address of the interface where packet arrives in a router. Thanks Maninder On Wed, Sep 24, 2014 at 5:55 PM, wrote: > On Wed, 24 Sep 2014 10:19:34 +0530, Maninder Si

RE: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Jeff Haran
> -Original Message- > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- > boun...@kernelnewbies.org] On Behalf Of Vlad Dogaru > Sent: Wednesday, September 24, 2014 12:42 AM > To: Maninder Singh > Cc: kernelnewbies@kernelnewbies.org > Subject: Re: How do we determine IP A

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:08:29 -0400, John de la Garza said: > why not look at the destination ip of the ip header? It's possible to receive a packet on the "wrong" interface. For instance, we have a software package installed here that insists on talking on one IP address, so we end up with this

Re: A Course Project

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 11:12:55 -0400, El Mouatez Billah Karbab said: > I am student in Concordia university Montreal, and I have a course about > network security. The professor of this course wants us to do a project in > both the field of security research with some practical application, and I >

A Course Project

2014-09-24 Thread El Mouatez Billah Karbab
hi I am student in Concordia university Montreal, and I have a course about network security. The professor of this course wants us to do a project in both the field of security research with some practical application, and I have chosen kernel linux. I am looking for a problem to solve has a rel

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread John de la Garza
On Wed, Sep 24, 2014 at 10:41:54AM +0300, Vlad Dogaru wrote: > On Wed, Sep 24, 2014 at 10:19:34AM +0530, Maninder Singh wrote: > > Hi, > > > > Each time a packet arrives at a router in a subnet during transit, I > > need to determine the IP address of the incoming interface of the > > router for t

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:19:34 +0530, Maninder Singh said: > Hi, > > Each time a packet arrives at a router in a subnet during transit, I > need to determine the IP address of the incoming interface of the > router for that packet. What problem are you trying to solve using the IP address of the int

Re: PROBLEM: JFFS2 deadlock on Linux 3.14.19

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:26:13 +0200, Ivan Grimaldi said: > I have a custom board based on Freescale i.MX6DL, and at start time i > received a JFFS2 deadlock. > > My kernel version is v3.14.19 Looks like this one has been around for a while - it was reported against 3.10 and 3.0.18: https://lkml.

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 21:03:01 +0900, 정현 said: > And you should be careful about obtained IP address, because it is made by > IP spoofing attack or some sort of IP camo technique. He's looking at the IP address of the interface, not the source IP address of the packet. pgpeylxs2Gzvn.pgp Descr

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread 정현
And you should be careful about obtained IP address, because it is made by IP spoofing attack or some sort of IP camo technique. Hope this helps too, Hyun On Sep 24, 2014 4:42 PM, "Vlad Dogaru" wrote: > On Wed, Sep 24, 2014 at 10:19:34AM +0530, Maninder Singh wrote: > > Hi, > > > > Each time a p

PROBLEM: JFFS2 deadlock on Linux 3.14.19

2014-09-24 Thread Ivan Grimaldi
Hello all, I have a custom board based on Freescale i.MX6DL, and at start time i received a JFFS2 deadlock. My kernel version is v3.14.19 Regards Ivan Grimaldi == [ INFO: possible circular locking dependency detected ] 3.14.19-g849ea74

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Vlad Dogaru
On Wed, Sep 24, 2014 at 10:19:34AM +0530, Maninder Singh wrote: > Hi, > > Each time a packet arrives at a router in a subnet during transit, I > need to determine the IP address of the incoming interface of the > router for that packet. I have a netfilter kernel module running at > each router but