LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2010, 07:23 AM   #1
Anumathew
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
ICMP packet recieving using hook function


I want to receive an icmp packet using net filter hook function. A string will be printed if an icmp packet is received.I am able to print the string. but the packet loss in the log message shows 100%packet loss.
So i changer hooknum = NF_IP_FORWARD.but still its not working.I want to get log message as received 100%
 
Old 10-08-2010, 04:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Two things:

a) I think you need to rephrase what you said above, maybe
throwing in a code-sample along with what you're trying to achieve.
b) I'm moving this thread to PROGRAMMING as I don't think
Newbie is a suitable place for network programming topics.



Cheers,
Tink
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to hook a packet after NF_IP_POST_ROUTING step of Netfilter? MehdiKarimi Linux - Kernel 3 07-30-2009 12:29 PM
New ICMP Packet Creation kaustubh_pict Linux - Networking 2 03-02-2006 12:00 PM
Why ICMP packet for ping and nmap. bruse Linux - Networking 2 12-12-2005 09:48 AM
ICMP Packet capture SaTaN Programming 1 01-19-2004 11:38 PM
ICMP packet requests Ch@meleon Linux - General 0 11-29-2001 12:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration