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 {
// nat映射变化
message NatChanged {
bytes mac = 1;
uint32 ip = 2;
}
}
message SDLSendRegisterEvent {
// register消息
message SendRegister {
bytes dst_mac = 1;
uint32 nat_ip = 2;
uint32 nat_port = 3;
uint32 nat_type = 4;
optional SDLV6Info v6_info = 5;
}
}
message SDLNetworkShutdownEvent {
//
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通讯消息