Sponsored Content
Full Discussion: Any knowledge for sysctl?
Special Forums IP Networking Any knowledge for sysctl? Post 13069 by developer on Thursday 10th of January 2002 06:02:43 PM
Old 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

unix knowledge

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

How to get the knowledge in UNIX? Suggest me . Please.

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

knowledge

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

Knowledge

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

Anyone with Blitz PHP knowledge

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

sysctl help needed.(Server Hardening).

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

programming knowledge

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
trpt(8c)																  trpt(8c)

Name
       trpt - transliterate protocol trace

Syntax
       trpt [ -a ] [ -s ]  [ -t ] [ -j ] [ -p hex-address ] [ system [ core ] ]

Description
       The command interrogates the buffer of TCP trace records created when a socket is marked for debugging and prints a readable description of
       these records.

Options
       When no options are supplied, prints all the trace records found in the system grouped according to TCP connection protocol  control  block
       (PCB).  The following options may be used to alter this behavior:

       -s     In addition to the normal output, prints a detailed description of the packet sequencing information.

       -t     In addition to the normal output, prints the values for all timers at each point in the trace.

       -j     Gives a list of the protocol control block addresses for which there are trace records.

       -p     Shows only trace records associated with the protocol control block whose address follows.

       -a     In addition to the normal output, prints the values of the source and destination addresses for each packet recorded.

       The recommended use of is to isolate the problem and enable debugging on the socket(s) involved in the connection.  Find the address of the
       protocol control blocks associated with the sockets using the -A option to Then run with the -p option, supplying the  associated  protocol
       control block addresses.  If there are many sockets using the debugging option, the -j option may be useful in checking to see if any trace
       records are present for the socket in question.

       If debugging is being performed on a system or core file other than the default, the last  two  arguments  may  be  used  to  supplant  the
       defaults.

Diagnostics
       no namelist
       The system image does not contain the proper symbols to find the trace buffer.

       Other diagnostic messages are self-explanatory.

Files
See Also
       netstat(1), setsockopt(2)

																	  trpt(8c)
All times are GMT -4. The time now is 01:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy