fix Event
This commit is contained in:
parent
3ccc8a1666
commit
2132f45dae
@ -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通讯消息
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user