LeOS-Genesis/external/badvpn/protocol/addr.bproto

12 lines
379 B
Plaintext
Raw Normal View History

2020-10-05 13:12:00 +02:00
// message for an AddrProto address
message addr {
// address type. from addr.h
required uint8 type = 1;
// for IPv4 and IPv6 addresses, the port (network byte order)
optional data("2") ip_port = 2;
// for IPv4 addresses, the IP address
optional data("4") ipv4_addr = 3;
// for IPv6 addresses, the IP address
optional data("16") ipv6_addr = 4;
};