Networking Forums

Networking Forums > Computer Networking > Linux Networking > Kernel should not handle my ICMP Request

Reply
Thread Tools Display Modes

Kernel should not handle my ICMP Request

 
 
Tarun
Guest
Posts: n/a

 
      01-08-2009, 02:04 PM
Hi,

I want to know if there is any option in socket so that Kernel should
not respond to my ICMP requests.

Basicall, I am writing my own ICMP packet sender and reciever
application using raw sockets and while testing i am getting two
responses for my ICMP Echo Request, one from my application and other
from kernel.

How can I block so that Kernel should not handle ICMP packets but my
application should handle it.

TIA
-Tarun
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      01-08-2009, 03:23 PM
Hello,

Tarun a écrit :
>
> I want to know if there is any option in socket so that Kernel should
> not respond to my ICMP requests.
>
> Basicall, I am writing my own ICMP packet sender and reciever
> application using raw sockets and while testing i am getting two
> responses for my ICMP Echo Request, one from my application and other
> from kernel.
>
> How can I block so that Kernel should not handle ICMP packets but my
> application should handle it.


You can tell the kernel to ignore all ICMP echo requests :

sysctl -w net/ipv4/icmp_echo_ignore_all=1

This will affect only echo requests, not other ICMP request types.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICMP Request from NAT reservations John Hiebert Windows Networking 0 12-13-2007 01:55 PM
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
How to handle massive dhcp request storm marcdreher@gmx.net Linux Networking 2 10-18-2006 08:26 PM
killing a kernel thread ....... UDP server (kernel module)......... alex Linux Networking 0 09-20-2006 11:26 AM
Help! kernel: TCP: drop open request from xxx.xxx.xxx.xxx Linux Networking 3 06-10-2004 06:53 PM



1 2 3 4 5 6 7 8 9 10 11