Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-19-2005, 07:20 AM   #1
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
IP packet logging function help

By adding iptable rule
iptable -A OUTPUT -j LOG
I am able to check log of each outgoing packets. But i want to know who is actually calling ipt_log_target function defined in ipt_LOG.c as
static unsigned int
ipt_log_target(struct sk_buff **pskb,
unsigned int hooknum,
const struct net_device *in,
const struct net_device *out,
const void *targinfo,
void *userinfo)

I want to know which file in source code has pointer to call ipt_log_target function? I want instance/copy of const struct net_device *out to my function in kernel to know that eth0 or eth1 is transmitting packet.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Which function at link layer sends packet? cranium2004 Linux - Networking 0 02-03-2005 07:06 AM
iptables packet logging netguy2000 Linux - Networking 2 12-24-2004 03:29 AM
Dropped packet logging jonr Linux - Networking 6 11-18-2004 07:25 AM
packet sending function in kernel ? help sunnyriver Programming 3 03-24-2004 12:35 PM
packet sending function in kernel sunnyriver Linux - Networking 0 03-22-2004 08:46 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:27 AM.

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