* [PATCH pom-ng] ipt_TARPIT for Linux 2.6.20
@ 2007-02-05 9:20 Max Kellermann
2007-02-12 13:38 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Max Kellermann @ 2007-02-05 9:20 UTC (permalink / raw)
To: netfilter-devel
Patch for the function ip_direct_send() to compile on Linux 2.6.20.
Signed-off-by: Max Kellermann <max@duempel.org>
Index: patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
===================================================================
--- patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c (revision 6747)
+++ patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c (working copy)
@@ -60,16 +60,11 @@
static int ip_direct_send(struct sk_buff *skb)
{
struct dst_entry *dst = skb->dst;
- struct hh_cache *hh = dst->hh;
- if (hh) {
- read_lock_bh(&hh->hh_lock);
- memcpy(skb->data - 16, hh->hh_data, 16);
- read_unlock_bh(&hh->hh_lock);
- skb_push(skb, hh->hh_len);
- return hh->hh_output(skb);
- } else if (dst->neighbour)
- return dst->neighbour->output(skb);
+ if (dst->hh)
+ return neigh_hh_output(dst->hh, skb);
+ else if (dst->neighbour)
+ return dst->neighbour->output(skb);
if (net_ratelimit())
printk(KERN_DEBUG "TARPIT ip_direct_send: no header cache and no neighbor!\n");
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH pom-ng] ipt_TARPIT for Linux 2.6.20
2007-02-05 9:20 [PATCH pom-ng] ipt_TARPIT for Linux 2.6.20 Max Kellermann
@ 2007-02-12 13:38 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2007-02-12 13:38 UTC (permalink / raw)
To: Max Kellermann; +Cc: netfilter-devel
Max Kellermann wrote:
> Patch for the function ip_direct_send() to compile on Linux 2.6.20.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-12 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 9:20 [PATCH pom-ng] ipt_TARPIT for Linux 2.6.20 Max Kellermann
2007-02-12 13:38 ` 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.