Changing TCP/IP Options in SunOS


 
Thread Tools Search this Thread
Top Forums Programming Changing TCP/IP Options in SunOS
# 1  
Old 10-28-2002
Changing TCP/IP Options in SunOS

Due to some project requirement I am writing an application which uses Transport Layer Interface (TLI's) in Sun OS Release 5.8.
The problem is in setting the tcp's TCP_KEEPIDLE or TCP_KEEPINTVL or TCP_NKEEP parameters by t_optmgmt ( ) function.I understand that in Sun OS these are referenced by some other constant or methodology.

Can anyone help me out ? Thanks in advance.
# 2  
Old 10-28-2002
I don't know TLI that well, but I'm under the impression that this can't be done. All you can do with t_optmgmt() is turn on keepalives. After that the exact functioning of the keepalive is controlled by parameters in the tcp driver. And the parameters are global...you can tune them (or it, really) but you affect all tcp keepalives.

To change the global parameter, you use the ndd program. You can use "ndd -get /dev/tcp tcp_keepalive_interval" to see the current setting. To set it use "ndd -get /dev/tcp tcp_keepalive_interval 7200000" or whatever. To make it a permanent change, put it in /etc/init.d/inetinit.
# 3  
Old 11-14-2002
The TCP/IP parameter TCPTV_KEEP_IDLE specifies how long the operating system waits before checking a connection. While TCPTV_KEEPINTVL defines the time interval between two successive KEEPALIVE packets and TCPTV_KEEPCNT specifies the number of KEEPALIVE packets sent before the operating system concludes that the client program is not responding. The timeout period after a client fails to respond is determined by multiplying TCPTV_KEEPINTVL by TCPTV_KEEPCNT.One PR_SLOWHZ time unit is approximately one second. These can be manipulated at individual program levels.

TCPTV_KEEP_IDLE (2*60*PR_SLOWHZ)
TCPTV_KEEPINTVL (60*PR_SLOWHZ)
TCPTV_KEEPCNT 1
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

2. IP Networking

Doubt regarding TCP Options negotiation

Hi, I am aware that duirng the intial SYN, SYN-ACK, ACK (connection establishment) phase, both TCP ends advertize TCP options (or extended features) each would like to use for the connection. Ultimately both ends end up using TCP options commonly supported and advertized by both. My doubt... (2 Replies)
Discussion started by: jake24
2 Replies

3. Programming

Changing source port number of a TCP client packet

Hi all, I need to change the source port number of an outgoing TCP packet. First I have to bind the socket to a particular port(suppose 9001) but when I send the TCP packet I want to change the source port number lets say to 9002 still letting the socket to be bound to the same old port (9001).... (0 Replies)
Discussion started by: anuragrai134
0 Replies

4. Programming

Help with TCP Options in C

Hello everybody, It's me again, i need your help! I was almost finishing a program when it crashed, because of TCP segments with the TCP Options enabled. I am able to control every field of every packet i receive, except of those using TCP Options. Is there a way to determine if a packet is... (0 Replies)
Discussion started by: Zykl0n-B
0 Replies

5. Solaris

changing nfs options on Solaris 10

hi I changed nfs options in "/etc/auto_master": /net -hosts rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,ve rs=3,timeo=600,actimeo=0 then I did automount -v svcadm restart svc:/system/filesystem/autofs svcadm restart svc:/network/nfs/server:default When doing... (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

6. UNIX for Dummies Questions & Answers

Changing TCP parameters in solaris10

Hi I have to change some TCP settings in Solaris10 machine running on AMD. Is there any tool or GUI to do this. I want to see if there is any easy way to put them in the startup scripts. Thanks (1 Reply)
Discussion started by: sssow
1 Replies

7. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

8. UNIX for Dummies Questions & Answers

changing root menu options on Redaht

Hello all, I would like to change the options on the root menu when I use the middle button on a three mouse buttom setting. I can append to the menu but, I seem to be unable to find the lisp code for pop-root-menu. Does anyone know how to change this? THANKS ALL (3 Replies)
Discussion started by: larry
3 Replies

9. UNIX for Advanced & Expert Users

changing Hash printing options for FTP

Hi!!, I usually have to ftp massive files ~200MB. The default hash printing option marks a hash for every 1024 bytes. Any ideas how to change this setting to some other value?? I know no one like to see logfiles of size ~2mb just filled with hashes.. :D (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question