Skip to content
Commit 4fdc20ed authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

soccr/tcp: Introduce blob with connection info and getter for it



As an API for dumping and restoring the data the structure
with __u32-s is used. Getting one (and restoring) also involve
the size of the structure so that both -- caller and library --
can know which "version" of it the other one is using.

As a starting point all the fields that tcp_entry carries are
used.

Also note, that only tcp connection info is handled by the
library. Stuff like addresses and ports, socket options and
other are left for the caller to care for.

Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent b8b113bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment