set the source IP address to zero

Hi, does anybody know how to set the IP source address of an IP packet to be zero? The problem is that when you create a raw socket and set the IP_HDRINCL socket option, if you put the ip_src address to zero (INADDR_ANY) the kernel will automatically set the source address to the primary IP address of the outgoing interface.

You have to have modifications in the kernel to allow IP spoofing or similar mod. Linux does this in the kernel configuration file.

Thanx mate. I ll try to recompile the kernel. I was also thinking to use setsockopt but I did not find any option to allow me to do something like that. Do you know if such an option exist or the only way is the recompilation of the kernel?