[1/1] OSF: netlink related changes.

Patrick McHardy kaber at trash.net
Mon Dec 12 08:20:22 CET 2005


Evgeniy Polyakov wrote:
> This patch has been done against just downloaded ipt_osf.c file from
> cvs.netfilter.org.
> I only read list archive and did not receive your feedback, sorry for
> not answering.

Well it still didn't apply. I finally fixed it up manually, but the
reason is that there is no such line "nts->netlink_kernel_create"
in SVN, and I don't see how this ever could have compiled, since
nts is a struct sock, which doesn't have a netlink_kernel_create
member. I also noticed that you're reusing NETLINK_NFLOG. You can't
do that. We can reserve a nfnetlink group if you need.

> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
>  	nts->netlink_kernel_create(NETLINK_NFLOG, NULL);
> +#else
> +	nts->netlink_kernel_create(NETLINK_NFLOG, 1, NULL, THIS_MODULE);
> +#endif
>  	if (!nts) {
>  		log("netlink_kernel_create() failed\n");
>  	}
> 
> 




More information about the netfilter-devel mailing list