Re: Deleting a TCP connection in Mac OS X
Re: Deleting a TCP connection in Mac OS X
- Subject: Re: Deleting a TCP connection in Mac OS X
- From: Adi Masputra <email@hidden>
- Date: Thu, 5 Jun 2008 08:29:27 -0700
On Jun 5, 2008, at 7:34 AM, Peter Sichel wrote:
On Jun 4, 2008, at 6:49 PM, Ryan McGann wrote:
One thing that I have requested in the past, but not been
successful lobbying for, is KPI access to the PCB list in the
kernel. We _have_ to use the sysctl API sometimes because
maintaining our own PCB list by monitoring KPI events is not
practical, but some of the data in the pcb is quite useful. If
there were a way to access the PCB from the kernel and do our own
"translation" to private data structures, that would be much more
useful for us anyway, and probably yield better performance for our
users.
Allow me to add another request to this. I'd like to see an API
(and KPI) to kill a connection (delete a PCB). Open Transport
(Mentat/TCP) had this and users loved it (I still get requests for
this feature). Sometimes a connection gets wedged or misbehaves and
I have yet to find a simple way in Mac OS X to get rid of it (short
of restarting the whole stack).
Can you elaborate on this? What exactly is deleting a PCB?
Mentat/TCP had a feature called "Named Dispatch" that allowed you to
delete a connection entry by specifying the local and remote
endpoints. Is there anything similar in Mac OS X?
In theory, Named Dispatch in Streams (ND_GET/ND_SET) is another
variant of sysctl (or ioctl, depending on how you see it). But
that's implementation details though.
I'd like to understand the kind of information people are looking
for in PCBs, so that perhaps they can be provided in future without
exposing the underlying implementation details. One issue related
to exposing the info in the PCB is locking; a lot of them are safe
to access/use when the proper lock is held. The issue with locking
is that they may change across releases.
Adi
- Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden