Kernel doesn't allow to change source IP
I'm trying to create packets with modified source and destination IP and ports. Well, I'm using a raw socket from <sys/socket.h> to do this. I create, everything is fine, but when I send the packet, I see with the wireshark that the source IP is not the spoofed one, but the real one.. It means that, before to send the packet, something in the kernel is doing this change. Someone know which part of the kernel is doing this and how can I deactivate this?
Also, my distro: Debian Sid.
Thanks in advance.