go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/linux/punt/punt.proto (about) 1 syntax = "proto3"; 2 3 package ligato.linux.punt; 4 5 option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/linux/punt;linux_punt"; 6 7 import "ligato/annotations.proto"; 8 9 /* Proxy allows to listen on network socket or unix domain socket, and resend to another network/unix domain socket */ 10 message Proxy { 11 oneof rx { /* Socket to listen */ 12 PortBased rx_port= 1; 13 SocketBased rx_socket = 2; 14 } 15 oneof tx { /* Socket to redirect */ 16 PortBased tx_port= 3; 17 SocketBased tx_socket = 4; 18 } 19 } 20 21 /* Define network socket type */ 22 message PortBased { 23 enum L4Protocol { /* L4 protocol */ 24 UNDEFINED_L4 = 0; 25 TCP = 6; 26 UDP = 17; 27 } 28 L4Protocol l4_protocol = 1; 29 enum L3Protocol { /* L3 protocol */ 30 UNDEFINED_L3 = 0; 31 IPV4 = 1; 32 IPV6 = 2; 33 ALL = 3; 34 } 35 L3Protocol l3_protocol = 3; 36 uint32 port = 4 [(ligato_options).int_range = {minimum: 0 maximum: 65535}]; 37 } 38 39 /* Define unix domain socket type for IPC */ 40 message SocketBased { 41 string path = 1; 42 }