Subject: | Add unpack_tcp_info() |
We wrap TCP_INFO, which is a getable sockopt that returns a struct
tcp_info, but we don't have an unwrapper function for that structure.
TCP_INFO is documented on Linux as:
TCP_INFO (since Linux 2.4)
Used to collect information about this socket. The kernel
returns a struct tcp_info as defined in the file
/usr/include/linux/tcp.h. This option should not be used
in code intended to be portable.
However since we wrap the constant anyway I see no harm in also wrapping
the structure.
--
Paul Evans