summaryrefslogtreecommitdiff
path: root/src/lib/enroll.proto
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2023-08-17 16:12:44 +0200
committerSander Vrijders <[email protected]>2023-08-23 13:09:11 +0200
commit8183983c2c1cc50e3e0c82a8ab08d5fd66e0dc86 (patch)
tree005c33c3d3df3dde7c7f01abce816fa6202daed5 /src/lib/enroll.proto
parent868c7be8f599404a23f1d5178b1ba18379df1132 (diff)
downloadouroboros-8183983c2c1cc50e3e0c82a8ab08d5fd66e0dc86.tar.gz
ouroboros-8183983c2c1cc50e3e0c82a8ab08d5fd66e0dc86.zip
ipcpd: Add IDs to enrollment
The enrollment messages now have a 64-bit ID to easier track enrollments in the logs in larger scale tests. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/enroll.proto')
-rw-r--r--src/lib/enroll.proto14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/enroll.proto b/src/lib/enroll.proto
index 34ca1847..3b22ac17 100644
--- a/src/lib/enroll.proto
+++ b/src/lib/enroll.proto
@@ -25,16 +25,18 @@ import "ipcp_config.proto";
message enroll_req_msg {
/* TODO authentication */
- required uint32 magic = 1;
+ required bytes id = 1;
}
message enroll_resp_msg {
- required int64 t_sec = 1;
- required int32 t_nsec = 2;
- required int32 response = 3;
- optional ipcp_config_msg conf = 4;
+ required bytes id = 1;
+ required int64 t_sec = 2;
+ required int32 t_nsec = 3;
+ required int32 response = 4;
+ optional ipcp_config_msg conf = 5;
}
message enroll_ack_msg {
- required int32 response = 1;
+ required bytes id = 1;
+ required int32 result = 2;
}