Documentation ¶
Index ¶
- Constants
- Variables
- func Key(name string) string
- type L3Protocol
- type L4Protocol
- type Punt
- func (*Punt) Descriptor() ([]byte, []int)
- func (m *Punt) GetL3Protocol() L3Protocol
- func (m *Punt) GetL4Protocol() L4Protocol
- func (m *Punt) GetName() string
- func (m *Punt) GetPort() uint32
- func (m *Punt) GetSocketPath() string
- func (*Punt) ProtoMessage()
- func (m *Punt) Reset()
- func (m *Punt) String() string
- func (m *Punt) XXX_DiscardUnknown()
- func (m *Punt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Punt) XXX_Merge(src proto.Message)
- func (m *Punt) XXX_Size() int
- func (m *Punt) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const (
// Prefix is a key prefix used in NB DB to store configuration for NAT44.
Prefix = "vpp/config/v1/punt/"
)
Variables ¶
View Source
var L3Protocol_name = map[int32]string{
0: "UNDEFINED_L3",
4: "IPv4",
6: "IPv6",
10: "ALL",
}
View Source
var L3Protocol_value = map[string]int32{
"UNDEFINED_L3": 0,
"IPv4": 4,
"IPv6": 6,
"ALL": 10,
}
View Source
var L4Protocol_name = map[int32]string{
0: "UNDEFINED_L4",
6: "TCP",
17: "UDP",
}
View Source
var L4Protocol_value = map[string]int32{
"UNDEFINED_L4": 0,
"TCP": 6,
"UDP": 17,
}
Functions ¶
Types ¶
type L3Protocol ¶
type L3Protocol int32
L3 protocol definition
const ( L3Protocol_UNDEFINED_L3 L3Protocol = 0 L3Protocol_IPv4 L3Protocol = 4 L3Protocol_IPv6 L3Protocol = 6 L3Protocol_ALL L3Protocol = 10 )
func (L3Protocol) EnumDescriptor ¶
func (L3Protocol) EnumDescriptor() ([]byte, []int)
func (L3Protocol) String ¶
func (x L3Protocol) String() string
type L4Protocol ¶
type L4Protocol int32
L4 protocol definition
const ( L4Protocol_UNDEFINED_L4 L4Protocol = 0 L4Protocol_TCP L4Protocol = 6 L4Protocol_UDP L4Protocol = 17 )
func (L4Protocol) EnumDescriptor ¶
func (L4Protocol) EnumDescriptor() ([]byte, []int)
func (L4Protocol) String ¶
func (x L4Protocol) String() string
type Punt ¶
type Punt struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` L3Protocol L3Protocol `protobuf:"varint,2,opt,name=l3_protocol,json=l3Protocol,proto3,enum=punt.L3Protocol" json:"l3_protocol,omitempty"` L4Protocol L4Protocol `protobuf:"varint,3,opt,name=l4_protocol,json=l4Protocol,proto3,enum=punt.L4Protocol" json:"l4_protocol,omitempty"` Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` SocketPath string `protobuf:"bytes,5,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Allows otherwise dropped packet which destination IP address matching some of the VPP interface IP addresses to be punted to the host via socket. L3 and L4 protocols can be used for filtering
func (*Punt) Descriptor ¶
func (*Punt) GetL3Protocol ¶
func (m *Punt) GetL3Protocol() L3Protocol
func (*Punt) GetL4Protocol ¶
func (m *Punt) GetL4Protocol() L4Protocol
func (*Punt) GetSocketPath ¶
func (*Punt) ProtoMessage ¶
func (*Punt) ProtoMessage()
func (*Punt) XXX_DiscardUnknown ¶
func (m *Punt) XXX_DiscardUnknown()
func (*Punt) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.