All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yong" <sdssly@sina.com>
To: "Bart De Schuymer" <bdschuym@pandora.be>,
	"Harald Welte" <laforge@netfilter.org>
Cc: <netfilter-devel@lists.netfilter.org>
Subject: Re: ipq+AF8-set+AF8-verdict problem in bridge+-iptables
Date: Thu, 17 Jul 2003 14:09:49 +0800	[thread overview]
Message-ID: <005501c34c2a$08f35cd0$8101a8c0@dev> (raw)

Hi Bart,

I have added the 0.0.10 patch and your patch. I can send the large ICMP packet now. Thank you for your help!

Yong
----- Original Message ----- 
From: "Bart De Schuymer" <bdschuym@pandora.be>
To: "Yong" <sdssly@sina.com>; "Harald Welte" <laforge@netfilter.org>
Cc: <netfilter-devel@lists.netfilter.org>
Sent: Thursday, July 17, 2003 1:49 AM
Subject: Re: ipq_set_verdict problem in bridge+iptables


> On Wednesday 16 July 2003 03:09, Yong wrote:
> >  I want to use the iptable_queue in bridge+iptables environment. I can get
> > the packet in userspace using -j QUEUE command. However, If I change the
> > packet size. for example, I change the ping icmp packet size to 400, the
> > packet Ethernet header is changed. In my test, the MAC address is changed
> > to 0xffffffffff. I can capture this packet using sniffer tool. Since the
> > MAC address is changed, the other computer cannot receive the ICMP packet.
> 
> >  It seems that the bridge iptables patch changed something in the function
> > ipq_set_verdict().
> 
> Please test the patch below.
> 
> cheers,
> Bart
> 
> --- linux-2.6.0-test1/net/ipv4/netfilter/ip_queue.c.old 2003-07-16 19:35:07.000000000 +0200
> +++ linux-2.6.0-test1/net/ipv4/netfilter/ip_queue.c 2003-07-16 19:39:05.000000000 +0200
> @@ -353,6 +353,11 @@ ipq_mangle_ipv4(ipq_verdict_msg_t *v, st
>   }
>   if (e->skb->sk)
>   skb_set_owner_w(newskb, e->skb->sk);
> +#if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
> + /* bridged packets already have their Ethernet header */
> + if (e->skb->nf_bridge)
> + memcpy(newskb->data - 16, e->skb->data - 16, 16);
> +#endif
>   kfree_skb(e->skb);
>   e->skb = newskb;
>   }
> 
> 
> 

             reply	other threads:[~2003-07-17  6:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-17  6:09 Yong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-17  2:47 ipq+AF8-set+AF8-verdict problem in bridge+-iptables Yong
2003-07-17  6:01 ` Bart De Schuymer
2003-07-16  1:09 Yong
2003-07-16 17:49 ` Bart De Schuymer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005501c34c2a$08f35cd0$8101a8c0@dev' \
    --to=sdssly@sina.com \
    --cc=bdschuym@pandora.be \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.