LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 30
IP packet logging function help


hello,
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.
 
  


Reply


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 08:06 AM
iptables packet logging netguy2000 Linux - Networking 2 12-24-2004 04:29 AM
Dropped packet logging jonr Linux - Networking 6 11-18-2004 08:25 AM
packet sending function in kernel ? help sunnyriver Programming 3 03-24-2004 01:35 PM
packet sending function in kernel sunnyriver Linux - Networking 0 03-22-2004 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:52 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