mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-05 16:57:01 +08:00
30 lines
548 B
Protocol Buffer
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;
|
|
}
|