255 lines
10 KiB
Erlang
255 lines
10 KiB
Erlang
%% -*- coding: utf-8 -*-
|
|
%% Automatically generated, do not edit
|
|
%% Generated by gpb_compile version 4.21.7
|
|
|
|
-ifndef(sdlan_pb).
|
|
-define(sdlan_pb, true).
|
|
|
|
-define(sdlan_pb_gpb_version, "4.21.7").
|
|
|
|
|
|
-ifndef('SDLV4INFO_PB_H').
|
|
-define('SDLV4INFO_PB_H', true).
|
|
-record('SDLV4Info',
|
|
{port = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
v4 = <<>> :: iodata() | undefined, % = 2, optional
|
|
nat_type = 0 :: non_neg_integer() | undefined % = 3, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLV6INFO_PB_H').
|
|
-define('SDLV6INFO_PB_H', true).
|
|
-record('SDLV6Info',
|
|
{port = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
v6 = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLWELCOME_PB_H').
|
|
-define('SDLWELCOME_PB_H', true).
|
|
-record('SDLWelcome',
|
|
{version = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
max_bidi_streams = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
max_packet_size = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
heartbeat_sec = 0 :: non_neg_integer() | undefined % = 4, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLREGISTERSUPER_PB_H').
|
|
-define('SDLREGISTERSUPER_PB_H', true).
|
|
-record('SDLRegisterSuper',
|
|
{client_id = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
network_id = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
mac = <<>> :: iodata() | undefined, % = 3, optional
|
|
ip = 0 :: non_neg_integer() | undefined, % = 4, optional, 32 bits
|
|
mask_len = 0 :: non_neg_integer() | undefined, % = 5, optional, 32 bits
|
|
hostname = <<>> :: unicode:chardata() | undefined, % = 6, optional
|
|
pub_key = <<>> :: unicode:chardata() | undefined, % = 7, optional
|
|
access_token = <<>> :: unicode:chardata() | undefined % = 8, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLREGISTERSUPERACK_PB_H').
|
|
-define('SDLREGISTERSUPERACK_PB_H', true).
|
|
-record('SDLRegisterSuperAck',
|
|
{algorithm = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
key = <<>> :: iodata() | undefined, % = 2, optional
|
|
region_id = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
session_token = <<>> :: iodata() | undefined % = 4, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLREGISTERSUPERNAK_PB_H').
|
|
-define('SDLREGISTERSUPERNAK_PB_H', true).
|
|
-record('SDLRegisterSuperNak',
|
|
{error_code = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
error_message = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLQUERYINFO_PB_H').
|
|
-define('SDLQUERYINFO_PB_H', true).
|
|
-record('SDLQueryInfo',
|
|
{dst_mac = <<>> :: iodata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLPEERINFO_PB_H').
|
|
-define('SDLPEERINFO_PB_H', true).
|
|
-record('SDLPeerInfo',
|
|
{dst_mac = <<>> :: iodata() | undefined, % = 1, optional
|
|
v4_info :: sdlan_pb:'SDLV4Info'() | undefined, % = 2, optional
|
|
v6_info :: sdlan_pb:'SDLV6Info'() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLARPREQUEST_PB_H').
|
|
-define('SDLARPREQUEST_PB_H', true).
|
|
-record('SDLArpRequest',
|
|
{target_ip = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
origin_ip = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
context = <<>> :: iodata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLARPRESPONSE_PB_H').
|
|
-define('SDLARPRESPONSE_PB_H', true).
|
|
-record('SDLArpResponse',
|
|
{target_ip = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
target_mac = <<>> :: iodata() | undefined, % = 2, optional
|
|
origin_ip = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
context = <<>> :: iodata() | undefined % = 4, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLPOLICYREQUEST_PB_H').
|
|
-define('SDLPOLICYREQUEST_PB_H', true).
|
|
-record('SDLPolicyRequest',
|
|
{src_identity_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
dst_identity_id = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
version = 0 :: non_neg_integer() | undefined % = 3, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLPOLICYRESPONSE_PB_H').
|
|
-define('SDLPOLICYRESPONSE_PB_H', true).
|
|
-record('SDLPolicyResponse',
|
|
{src_identity_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
dst_identity_id = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
version = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
rules = <<>> :: iodata() | undefined % = 4, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLEVENT.NATCHANGED_PB_H').
|
|
-define('SDLEVENT.NATCHANGED_PB_H', true).
|
|
-record('SDLEvent.NatChanged',
|
|
{mac = <<>> :: iodata() | undefined, % = 1, optional
|
|
ip = 0 :: non_neg_integer() | undefined % = 2, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLEVENT.SENDREGISTER_PB_H').
|
|
-define('SDLEVENT.SENDREGISTER_PB_H', true).
|
|
-record('SDLEvent.SendRegister',
|
|
{dst_mac = <<>> :: iodata() | undefined, % = 1, optional
|
|
nat_ip = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
nat_port = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
nat_type = 0 :: non_neg_integer() | undefined, % = 4, optional, 32 bits
|
|
v6_info :: sdlan_pb:'SDLV6Info'() | undefined % = 5, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLEVENT.NETWORKSHUTDOWN_PB_H').
|
|
-define('SDLEVENT.NETWORKSHUTDOWN_PB_H', true).
|
|
-record('SDLEvent.NetworkShutdown',
|
|
{message = <<>> :: unicode:chardata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLEVENT_PB_H').
|
|
-define('SDLEVENT_PB_H', true).
|
|
-record('SDLEvent',
|
|
{event :: {nat_changed, sdlan_pb:'SDLEvent.NatChanged'()} | {send_register, sdlan_pb:'SDLEvent.SendRegister'()} | {shutdown, sdlan_pb:'SDLEvent.NetworkShutdown'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLCOMMAND.EXITNODECONTROL_PB_H').
|
|
-define('SDLCOMMAND.EXITNODECONTROL_PB_H', true).
|
|
-record('SDLCommand.ExitNodeControl',
|
|
{action = 0 :: integer() | undefined, % = 1, optional, 32 bits
|
|
remark = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLCOMMAND_PB_H').
|
|
-define('SDLCOMMAND_PB_H', true).
|
|
-record('SDLCommand',
|
|
{pkt_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
command :: {exit_node, sdlan_pb:'SDLCommand.ExitNodeControl'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLCOMMANDACK_PB_H').
|
|
-define('SDLCOMMANDACK_PB_H', true).
|
|
-record('SDLCommandAck',
|
|
{pkt_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
code = 0 :: integer() | undefined, % = 2, optional, 32 bits
|
|
message = <<>> :: unicode:chardata() | undefined, % = 3, optional
|
|
data = <<>> :: iodata() | undefined % = 4, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLSTUNREQUEST_PB_H').
|
|
-define('SDLSTUNREQUEST_PB_H', true).
|
|
-record('SDLStunRequest',
|
|
{client_id = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
network_id = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
mac = <<>> :: iodata() | undefined, % = 3, optional
|
|
ip = 0 :: non_neg_integer() | undefined, % = 4, optional, 32 bits
|
|
nat_type = 0 :: non_neg_integer() | undefined, % = 5, optional, 32 bits
|
|
v6_info :: sdlan_pb:'SDLV6Info'() | undefined, % = 6, optional
|
|
session_token = <<>> :: iodata() | undefined % = 7, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLSTUNREPLY_PB_H').
|
|
-define('SDLSTUNREPLY_PB_H', true).
|
|
-record('SDLStunReply',
|
|
{
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLDATA_PB_H').
|
|
-define('SDLDATA_PB_H', true).
|
|
-record('SDLData',
|
|
{network_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
src_mac = <<>> :: iodata() | undefined, % = 2, optional
|
|
dst_mac = <<>> :: iodata() | undefined, % = 3, optional
|
|
is_p2p = false :: boolean() | 0 | 1 | undefined, % = 4, optional
|
|
ttl = 0 :: non_neg_integer() | undefined, % = 5, optional, 32 bits
|
|
data = <<>> :: iodata() | undefined, % = 6, optional
|
|
session_token = <<>> :: iodata() | undefined, % = 7, optional
|
|
identity_id = 0 :: non_neg_integer() | undefined % = 8, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLSTUNPROBE_PB_H').
|
|
-define('SDLSTUNPROBE_PB_H', true).
|
|
-record('SDLStunProbe',
|
|
{cookie = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
attr = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
step = 0 :: non_neg_integer() | undefined % = 3, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLSTUNPROBEREPLY_PB_H').
|
|
-define('SDLSTUNPROBEREPLY_PB_H', true).
|
|
-record('SDLStunProbeReply',
|
|
{cookie = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
step = 0 :: non_neg_integer() | undefined, % = 2, optional, 32 bits
|
|
port = 0 :: non_neg_integer() | undefined, % = 3, optional, 32 bits
|
|
ip = 0 :: non_neg_integer() | undefined % = 4, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLREGISTER_PB_H').
|
|
-define('SDLREGISTER_PB_H', true).
|
|
-record('SDLRegister',
|
|
{network_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
src_mac = <<>> :: iodata() | undefined, % = 2, optional
|
|
dst_mac = <<>> :: iodata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SDLREGISTERACK_PB_H').
|
|
-define('SDLREGISTERACK_PB_H', true).
|
|
-record('SDLRegisterAck',
|
|
{network_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
src_mac = <<>> :: iodata() | undefined, % = 2, optional
|
|
dst_mac = <<>> :: iodata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-endif.
|