Solved

can't find a netfilter function implementation

Posted on 2007-11-29
1
227 Views
Last Modified: 2013-11-15
Hello,

I work on Ubuntu 7.10 and I'm investigating the netfilter source code.  
I have downloaded the linux source using apt-get source linux-source-2.6.22

I'm looking for the nf_register_hook function which is declared in:
/usr/src/linux-headers-2.6.22-14/include/linux/netfilter.h or
/usr/src/linux-headers-2.6.22-14-generic/include/linux/netfilter.h

The problem is that I can't find the implementation of this function in linux-source-2.6.22-2.6.22/net/ipv4/netfilter.c

How is that possible? Can somebody please help?
0
Comment
Question by:Commsquare
1 Comment
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 20377337
./net/netfilter/core.c:62:int nf_register_hook(struct nf_hook_ops *reg)
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question