01-10-2002
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..
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am a new Unix user looking for ways, other than time, to become an effective unix administrator. All sugestions welcome.
Thanks (10 Replies)
Discussion started by: dtooth71
10 Replies
2. UNIX for Dummies Questions & Answers
Hai, friends.
In one exam which i have to attend in the month of january, they asked "knowledge of c and unix are required" .
I am beginner to unix, even i dont know from where to start .
Please suggest me what to do , to get through the exam and interview.
I have already downloaded... (2 Replies)
Discussion started by: nani_ynm
2 Replies
3. AIX
Dear All
Kindly provide me with a difference between hdiskpower and hdisk
regards (2 Replies)
Discussion started by: magasem
2 Replies
4. Shell Programming and Scripting
Can somebody explain me the following part within a awk command:
awk '{for(i=1;i<=NF;i++) if ($i=="mm")c++}
Can somebody please explain me the part (i=1;i<=NF;i++) ????:D:D:D:D (1 Reply)
Discussion started by: RubinPat
1 Replies
5. Linux
Blitz PHP
I am having trouble installing Blitz PHP blitz-0.6.10.tar.gz
Here is what i did:
cd /tmp
wget blitz-0.6.10.tar.gz
tar zxfv blitz-0.6.10.tar.gz
cd blitz-0.6.10
And then I tried
./configure
Output: -bash: No such file in directory
make
Output: No targets in the... (1 Reply)
Discussion started by: kendel
1 Replies
6. UNIX for Dummies Questions & Answers
As per Hardening guide for the server.
ICMP Broadcast Response: The kernel parameter icmp_echo_ignore_broadcasts must match to 1
However when i check the value of icmp_echo_ignore_broadcasts it thrown an error as unkonwn key.
# sysctl icmp_echo_ignore_broadcasts
error:... (2 Replies)
Discussion started by: pinga123
2 Replies
7. Shell Programming and Scripting
Hi Friends,
I know very well the basic commands of Unix but i want to concentrate on unix shell programming can you please how to learn and suggest me how to become comfortable level.
Thanks in advance (1 Reply)
Discussion started by: victory
1 Replies
LEARN ABOUT BSD
socketpair
SOCKETPAIR(2) System Calls Manual SOCKETPAIR(2)
NAME
socketpair - create a pair of connected sockets
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
socketpair(d, type, protocol, sv)
int d, type, protocol;
int sv[2];
DESCRIPTION
The socketpair call creates an unnamed pair of connected sockets in the specified domain d, of the specified type, and using the optionally
specified protocol. The descriptors used in referencing the new sockets are returned in sv[0] and sv[1]. The two sockets are indistin-
guishable.
DIAGNOSTICS
A 0 is returned if the call succeeds, -1 if it fails.
ERRORS
The call succeeds unless:
[EMFILE] Too many descriptors are in use by this process.
[EAFNOSUPPORT] The specified address family is not supported on this machine.
[EPROTONOSUPPORT] The specified protocol is not supported on this machine.
[EOPNOSUPPORT] The specified protocol does not support creation of socket pairs.
[EFAULT] The address sv does not specify a valid part of the process address space.
SEE ALSO
read(2), write(2), pipe(2)
BUGS
This call is currently implemented only for the UNIX domain.
4.2 Berkeley Distribution May 15, 1985 SOCKETPAIR(2)