Hello all,
        I'm writing an application which forwards incoming packets
depending on the applications current view of the network. All
packets are sent to userpace with NF_QUEUE (this was suggested to
me by this list and its working great for single hops, thanks :-)).

So iphdr->daddr is either changed to
1) The address of the next hop
2) or a broadcast address

Having changed iphdr->daddr I recalculate iphdr->check,
and call ipq_set_verdict,

But for some reason the packet seems to be dropped,
It doesn't appear at the NF_IP_POST_ROUTING hook

[192.168.225.3] pings 192.168.225.2,
                iphdr->daddr is set to a broadcast address at NF_IP_LOCAL_OUT

[192.168.225.1] packet arrives at NF_IP_PRE_ROUTING
                iphdr->daddr is set to 192.168.225.2
                Packet disappears

I've changed the /proc/sys/net/ipv4/ip_forward entry to 1

So I was wondering if any you have tried this before or
have any suggestions for a solution.

Thanks very much for your help,
Kevin


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to