2012-07-19 09:25:49 +04:00
|
|
|
import "fown.proto";
|
|
|
|
import "sk-opts.proto";
|
|
|
|
|
|
|
|
message unix_sk_entry {
|
2012-08-15 17:45:40 +04:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2012-07-19 09:25:49 +04:00
|
|
|
required uint32 id = 1;
|
|
|
|
required uint32 ino = 2;
|
|
|
|
required uint32 type = 3;
|
|
|
|
required uint32 state = 4;
|
|
|
|
required uint32 flags = 5;
|
|
|
|
required uint32 uflags = 6;
|
|
|
|
required uint32 backlog = 7;
|
|
|
|
required uint32 peer = 8;
|
|
|
|
required fown_entry fown = 9;
|
|
|
|
required sk_opts_entry opts = 10;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Abstract name may contain \0 at any point,
|
|
|
|
* so we need to carry it as byte sequence...
|
|
|
|
*/
|
|
|
|
required bytes name = 11;
|
2012-10-24 18:31:42 +04:00
|
|
|
|
|
|
|
optional sk_shutdown shutdown = 12;
|
2012-07-19 09:25:49 +04:00
|
|
|
}
|