RE: Problem encountering dropping packets using Netfilter hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: prasad hegde [mailto:prasad.hegde@xxxxxxxxx]
Sent: Thursday, July 12, 2007 10:49 AM
To: rajendra.stalekar@xxxxxxxxx
Cc: kernelnewbies@xxxxxxxxxxxx
Subject: Re: Problem encountering dropping packets using Netfilter hook

 

Hi,

I don't think the packet is injected into PRE_ROUTE when you send packet to local loopback.
check loopback.c  to be sure , it does differently. I hope your registering of module is fine though.

Thanks Prasad.

 


-Prasad

On 7/11/07, Rajendra Stalekar <rajendra.stalekar@xxxxxxxxx> wrote:

Hi,

The problem in hand is I have a registered a Netfilter hook function wherein I am using loopback address and I am checking with my saddr i.e.

If (sb->nh.iph->saddr  == *(unsigned int *)drop_ip) wherein my drop_ip is the loopback address , I find that my saddr is not able to capture the loopback address 127.0.0.1 whenever I am sending a message on a IP messenger which is a utility meant to converse within the network.

I checked the logs.

What could be the problem. This utility is windows based, but I don't think this would make any difference.

This is just a module which I have made and done insmod hook1.ko, where  my code lies.

I am herewith attaching the code that I have written.

 

 

Regards,

Rajendra Stalekar(extn 2016)

Location:- Akruti

Mobile no:- +91 9860501143

 

 


 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux