Regards, Rajendra Stalekar(extn 2016) Location:- Akruti Mobile no:- +91 9860501143 -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Parag N(????) Sent: Wednesday, July 11, 2007 1:52 PM To: rajendra.stalekar@xxxxxxxxx Cc: kernelnewbies@xxxxxxxxxxxx Subject: Re: Regarding Netfilter hooks Hi, On 7/11/07, Rajendra Stalekar <rajendra.stalekar@xxxxxxxxx> wrote: > > > > > Hi, > > I have written a function to install a Netfilter hook function which will > drop all incoming packets to a particular TCP port. How should I check > whether the packets are getting dropped. Does it get logged somewhere? How > should I test whether it really gets dropped. If you have written any message in your netfilter module like "package Dropped" check dmesg output. Or use ping command to check whether you are getting ping replies back or not? Or use tcpdump or ethereal packages for watching packets. Regards, Parag. Thanks Parag, it does work, however now I am trying to deny packets from a certain IP address i.e. 127.0.0.1, so I have declared it as Static unsigned char* deny_ip = "x7fx00x00x01" Then I print this as printk("%d.%d.%d.%d\n",*deny_ip,*(deny_ip+1),*(deny_ip+2),*(deny_ip+3)); What I surprisingly get is 120.55.102.120 instead of the loopback address i.e. 127.0.0.1 How come? -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ