netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regarding write send a packet to network that received in NF_IP_PRE_ROUTING
@ 2010-07-20 10:49 Padmalochan Moharana
  0 siblings, 0 replies; only message in thread
From: Padmalochan Moharana @ 2010-07-20 10:49 UTC (permalink / raw)
  To: netfilter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-20 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 10:49 Regarding write send a packet to network that received in NF_IP_PRE_ROUTING Padmalochan Moharana

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).