Brian Campbell pointed out to me that TCP control blocks have the 
initial and current transmit and receive sequence numbers, so it is
possible to compute the bytes sent and received from these. So, my next
question is: given a socket fd (or a pid and fd number), how can I
extract a copy of the TCP control block for that socket from the kernel?

If it isn't possible, I guess I can add an ioctl that will allow me to
query the information, but I would prefer to not have to modify the
kernel if possible.

TIA
gram
-- 
Dr Graham Wheeler                        E-mail: [EMAIL PROTECTED]
Director, Research and Development       WWW:    http://www.cequrux.com
CEQURUX Technologies                     Phone:  +27(21)423-6065
Firewalls/VPN Specialists                Fax:    +27(21)424-3656


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to