active tcp connections

active tcp connections

Post by aa » Sat, 01 Apr 2000 04:00:00



How can i get the list of all the active tcp connections? In linux you
could f.ex.
just look at /proc/net/tcp and read the info from there, but on solaris
that doesn't work...if someone would have some c-code or similar would
be greatly appreciated.

-Joni

 
 
 

active tcp connections

Post by Noel Nihil » Sat, 01 Apr 2000 04:00:00


Hi,

netstat -a | more might be a good start...

Noel.


> How can i get the list of all the active tcp connections? In linux you
> could f.ex.
> just look at /proc/net/tcp and read the info from there, but on solaris
> that doesn't work...if someone would have some c-code or similar would
> be greatly appreciated.

> -Joni


 
 
 

active tcp connections

Post by aa » Sat, 01 Apr 2000 04:00:00


Sorry, i didn't form the question very well...i need explicitly access to
the list of connections directly from the tcp driver.

-Joni


> Hi,

> netstat -a | more might be a good start...

> Noel.


> > How can i get the list of all the active tcp connections? In linux you
> > could f.ex.
> > just look at /proc/net/tcp and read the info from there, but on solaris
> > that doesn't work...if someone would have some c-code or similar would
> > be greatly appreciated.

> > -Joni

 
 
 

1. How can I close an active TCP connection?

Hello ALL:

I am trying to figure out a way to close a single active TCP
connection on Solaris 7, 8, and 9 - at the OS, network or kernel
level without stopping the layer 7 application.  I don't believe there
is
any utilities built in to the OS for doing this.  I am looking
for a freeware/shareware tool or some insight on how to
program such a utility.

Example:

# netstat -an
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q
State
-------------------- -------------------- ----- ------
.
.
.
192.168.1.1.22       192.168.1.10.1022    24820      0 33580      0
ESTABLISHED
.
.
.
Let's say I want to force this connection to drop withOUT re-booting or
killing
the ssh daemon, or in the case of inetd controlled processes, I do not
want to kill
inetd or all of any particular daemon or processes.

I am currently investigating a way to obtain the socket descriptor and
writing some code
to utilize the "shutdown"  (man 3N)  library routine to close the
connection.

Any suggestions or ideas would be appreciated.

regards,

Pete

2. Help: Network programming pointe

3. TCP Ques - How to find actual bytes in the TCP send buffer And Connection Que length

4. What db pgm for big internet db?

5. Rejecting TCP connections with TCP reset (what state?)

6. FreeBSD on E-Machines/TriGem Florida-C motherboard

7. Limit maximum TCP connections for NAT connection

8. 2000 items and still counting...

9. Unexpected connection timeouts on local TCP connections

10. tcp connection only works properly when pinging, otherwise erratic or dead connection

11. Getting traffic rate traces bound to each active tcp link

12. TCP/IP - two processes issuing active OPENs to each other at the same time

13. starting X with num_lock active and leaving it non-active ?