01-10-2002
23,
0
Join Date: Dec 2001
Last Activity: 29 October 2002, 6:03 PM EST
Location: UK
Posts: 23
Thanks Given: 0
Thanked 0 Times in 0 Posts
What I am trying to do is to develop a micromobility protocol, i.e. a protocol that will allow users to move from one place to another while containing all the already active connections. From the TCP/IP protocol stuck point of view the protocol I am developing lyies on top of IP so I couldn't use either TCP sockets or UDP sockets only RAW sockets. RAW sockets is not a problem from the communication point of view, I already have accomplished a big part of the protocol. The problem is that a damn message requires the source IP field of the IP packet to be set to zero. Now if you try to set the address to zero (INADDR_ANY) the kernel will set the source IP address to the IP address of the outgoing interface, that applies even if you set the IP_HDRINCL socket option and try to build the IP header from scrutch. In order to prevent the kernel from changing the source IP address I tryed to set the proc.sys.net.ipv4.ip_nonlocal_bind flag as I described but still this doesn't seam to work.
To conclude I am quite sure that the code is OK and the problem is defenitelly some kernel configurations because I saw an implementation of the DHCP, which also requires the source IP address of the first message to be set to zero, and the code was the same as mine.
Last edited by developer; 01-10-2002 at 07:08 PM..