Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
fb57cd12
Commit
fb57cd12
authored
Aug 15, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proto: Add comments describing why we need two IDs for unix and inet sockets
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
4ff60cd8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
sk-inet.proto
protobuf/sk-inet.proto
+8
-0
sk-unix.proto
protobuf/sk-unix.proto
+11
-0
No files found.
protobuf/sk-inet.proto
View file @
fb57cd12
...
...
@@ -2,6 +2,14 @@ import "fown.proto";
import
"sk-opts.proto"
;
message
inet_sk_entry
{
/*
* We have two IDs here -- id and ino. The first one
* is used when restoring socket behind a file descriprot.
* The fdinfo image's id is it. The second one is used
* in sk-inet.c internally, in particular we identify
* a TCP stream to restore into this socket using the
* ino value.
*/
required
uint32
id
=
1
;
required
uint32
ino
=
2
;
required
uint32
family
=
3
;
...
...
protobuf/sk-unix.proto
View file @
fb57cd12
...
...
@@ -2,6 +2,17 @@ import "fown.proto";
import
"sk-opts.proto"
;
message
unix_sk_entry
{
/*
* Few words about why we need both -- id and ino.
*
* The former one is used to link file descriptor from
* fdinfo image with the unix_sk_entry that should be
* opened under it.
*
* The latter one ties together unix peers -- the peer
* member on this structure is the ino one of its peer
* and simetimes vise-versa.
*/
required
uint32
id
=
1
;
required
uint32
ino
=
2
;
required
uint32
type
=
3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment