* [RESEND] [1/1] OSF: netlink related changes.
@ 2005-11-25 9:55 Evgeniy Polyakov
2005-11-26 23:49 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Polyakov @ 2005-11-25 9:55 UTC (permalink / raw)
To: netfilter-devel; +Cc: Harald Welte, PatriK McHardy
Hello, developers.
Due to new interface and changed API in netlink area
several patch-o-matic modules can not be compiled.
Passive OS fingerprinting OSF modules is one of them.
Consider for inclusion.
Thank you.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
--- trunk/patch-o-matic-ng/patchlets/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c 2005-11-05 12:35:02.000000000 -0500
+++ trunk/patch-o-matic-ng/patchlets/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c 2005-11-05 12:43:54.000000000 -0500
@@ -30,6 +30,7 @@
#include <linux/config.h>
#include <linux/kernel.h>
+#include <linux/version.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/smp.h>
@@ -155,7 +156,11 @@
memcpy(&data->ip, sk->nh.iph, sizeof(struct iphdr));
memcpy(&data->tcp, (struct tcphdr *)((u_int32_t *)sk->nh.iph + sk->nh.iph->ihl), sizeof(struct tcphdr));
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
NETLINK_CB(skb).dst_groups = ipt_osf_groups;
+#else
+ NETLINK_CB(skb).dst_group = ipt_osf_groups;
+#endif
netlink_broadcast(nts, skb, 0, ipt_osf_groups, GFP_ATOMIC);
nlmsg_failure:
@@ -821,7 +826,11 @@
p->write_proc->osf_proc_write;
p->read_proc->osf_proc_read;
+#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");
}
--
Evgeniy Polyakov
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [RESEND] [1/1] OSF: netlink related changes.
2005-11-25 9:55 [RESEND] [1/1] OSF: netlink related changes Evgeniy Polyakov
@ 2005-11-26 23:49 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2005-11-26 23:49 UTC (permalink / raw)
To: Evgeniy Polyakov; +Cc: Harald Welte, netfilter-devel
Evgeniy Polyakov wrote:
> Hello, developers.
> Due to new interface and changed API in netlink area
> several patch-o-matic modules can not be compiled.
> Passive OS fingerprinting OSF modules is one of them.
> @@ -821,7 +826,11 @@
> p->write_proc->osf_proc_write;
> p->read_proc->osf_proc_read;
>
> +#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
This doesn't exist in svn and also doesn't seem to make much
sense. Why use function pointers for netlink_kernel_create?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-26 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-25 9:55 [RESEND] [1/1] OSF: netlink related changes Evgeniy Polyakov
2005-11-26 23:49 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.