Files
cunicu/proto/core/peer.proto
Steffen Vogel 92a7ad2f7f daemon: use per-interface features
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-10-07 18:30:50 +02:00

36 lines
766 B
Protocol Buffer

syntax = "proto3";
package cunicu.core;
option go_package = "github.com/stv0g/cunicu/pkg/proto/core";
import "common.proto";
import "feature/epdisc.proto";
message Peer {
// Public WireGuard X25519 key
bytes public_key = 1;
bytes preshared_key = 2;
// List of allowed IPs
repeated string allowed_ips = 3;
uint32 persistent_keepalive_interval = 4;
// Timestamps
Timestamp last_handshake_timestamp = 5;
Timestamp last_receive_timestamp = 6;
Timestamp last_transmit_timestamp = 7;
// Trafic counters
int64 transmit_bytes = 8;
int64 receive_bytes = 9;
// WireGuard endpoint address
string endpoint = 10;
// WireGuard protocol version
uint32 protocol_version = 11;
epdisc.Peer ice = 12;
}