From: Padmalochan Moharana <padman.m@gmail.com>
To: netfilter@vger.kernel.org
Subject: Regarding write send a packet to network that received in NF_IP_PRE_ROUTING
Date: Tue, 20 Jul 2010 16:19:06 +0530 [thread overview]
Message-ID: <AANLkTilFBhfh-jBBaO4eJAzDw0gU_PhBEcEc1mdsUjjo@mail.gmail.com> (raw)
Hi All,
i am facing problem during sending a packet that received in
NF_IP_PRE_ROUTNG hook to network again .
After receive a packet i have update the source and destination IP.
then i have recalculate the checksum for IP and UDP layer. then i have
to send that packet to network by using below command.
NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, skb->dev, dst_output);
ret = NF_STOLEN;
return ret;
But after loading my module kernel hang when it receive any data from peer.
is there any other way to forward a packet to network after
modification of IP header/
Regards,
Padmalochan
reply other threads:[~2010-07-20 10:49 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=AANLkTilFBhfh-jBBaO4eJAzDw0gU_PhBEcEc1mdsUjjo@mail.gmail.com \
--to=padman.m@gmail.com \
--cc=netfilter@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).