Regarding write send a packet to network that received in NF_IP_PRE_ROUTING

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux