diff options
author | Andrei Vagin <avagin@virtuozzo.com> | 2017-02-15 02:59:25 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2018-02-15 19:45:49 +0300 |
commit | a54d3cf11098b2c853a584277fdae7f358afa7f2 (patch) | |
tree | db1e4a1d49ca997af90b19ff3d5e741b75a44092 /images/packet-sock.proto | |
parent | 17f163a6f28f0f70476d6b40e0154bca934d52fd (diff) |
net: save network namespaces for sockets
Each socket has to be restored in a proper namespaces where
it has been created.
Here is an issue about unconnected and unbound sockets,
they are not reported via socket-diag and we can't to
get their network namespaces.
v2: add a comment before get_socket_ns()
remove nsid from sk_packet_entry
Acked-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'images/packet-sock.proto')
-rw-r--r-- | images/packet-sock.proto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/images/packet-sock.proto b/images/packet-sock.proto index f6198c1d4..25875b470 100644 --- a/images/packet-sock.proto +++ b/images/packet-sock.proto @@ -43,4 +43,5 @@ message packet_sock_entry { optional uint32 fanout = 17 [ default = 0xffffffff ]; optional packet_ring rx_ring = 18; optional packet_ring tx_ring = 19; + optional uint32 ns_id = 20; } |