From: Li Wei <lw@cn.fujitsu.com>
To: netdev <netdev@vger.kernel.org>
Subject: Problem with the first ICMP_REDIRECT message
Date: Wed, 30 Nov 2011 11:10:54 +0800 [thread overview]
Message-ID: <4ED59EBE.1030403@cn.fujitsu.com> (raw)
Hi all,
I am doing some tests on ICMP_REDIRECT messages and found that I never receive
the first ICMP_REDIRECT message, but the following REDIRECT messages was normal.
My test environment as follow:
three pc:
PC A:
IP: 192.168.0.1 MAC: HW:0A
PC B:
IP: 192.168.0.2 MAC: HW:0B
module nf_nat loaded and at least one rule in nat table(rule content not concern)
PC C:
IP: 192.168.0.3 MAC: HW:0C
enable ip forwarding on PC B:
# echo 1 > /proc/sys/net/ipv4/ip_forward
add a static arp on PC A:
# arp -s 192.168.0.3 HW:0B
ping 192.168.0.3 on PC A:
# ping -c1 192.168.0.3
I expect that PC A will receive a ICMP_REDIRECT message from PC B, but nothing
received.
ping three times 192.168.0.3 on PC A:
# ping -c3 192.168.0.3
PC A got two ICMP_REDIRECT messages from PC B, the first one missing.
After some code search, I found in function nf_nat_icmp_reply_translation() the first
ICMP_REDIRECT message was droped because the ct->status is not IPS_NAT_DONE_MASK.
Does anyone has some suggestion?
reply other threads:[~2011-11-30 3:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4ED59EBE.1030403@cn.fujitsu.com \
--to=lw@cn.fujitsu.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).