fix Event

This commit is contained in:
anlicheng 2026-04-02 13:11:51 +08:00
parent 3ccc8a1666
commit 2132f45dae

View File

@ -105,21 +105,41 @@ message SDLPolicyResponse {
// //
message SDLNatChangedEvent { message SDLEvent {
bytes mac = 1; // nat映射变化
uint32 ip = 2; message NatChanged {
} bytes mac = 1;
uint32 ip = 2;
}
message SDLSendRegisterEvent { // register消息
bytes dst_mac = 1; message SendRegister {
uint32 nat_ip = 2; bytes dst_mac = 1;
uint32 nat_port = 3; uint32 nat_ip = 2;
uint32 nat_type = 4; uint32 nat_port = 3;
optional SDLV6Info v6_info = 5; uint32 nat_type = 4;
} optional SDLV6Info v6_info = 5;
}
message SDLNetworkShutdownEvent { //
string message = 1; message NetworkShutdown {
string message = 1;
}
//
message ExitNodeControl {
int32 action = 1; //
bytes node_mac = 2; // MAC
uint32 node_ip = 3; // IP
string remark = 4; // 便/
}
oneof event {
NatChanged nat_changed = 1;
SendRegister send_register = 2;
NetworkShutdown shutdown = 3;
ExitNodeControl exit_node = 4;
}
} }
// UDP通讯消息 // UDP通讯消息