Files
cunicu/pkg/pb/interface.proto
Steffen Vogel df45ab1645 fix naming of WireGuard and wice
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-08-01 12:07:10 +02:00

30 lines
548 B
Protocol Buffer

syntax = "proto3";
package wice;
option go_package = "riasc.eu/wice/pkg/pb";
import "peer.proto";
// A WireGuard interface
// See: https://pkg.go.dev/golang.zx2c4.com/wireguard/wgctrl/wgtypes#Device
message Interface {
enum Type {
UNKNOWN = 0;
LINUX_KERNEL = 1;
OPENBSD_KERNEL = 2;
WINDOWS_KERNEL = 3;
USERSPACE = 4;
}
string name = 1;
Type type = 2;
bytes public_key = 3;
bytes private_key = 4;
uint32 listen_port = 5;
uint32 firewall_mark = 6;
repeated Peer peers = 7;
}