Versions in this module Expand all Collapse all v0 v0.5.0 Jul 29, 2022 v0.4.0 Jan 17, 2022 Changes in this version + const APIFile + const APIVersion + const VersionCrc + var PnatAttachmentPoint_name = map[uint32]string + var PnatAttachmentPoint_value = map[string]uint32 + var PnatMask_name = map[uint32]string + var PnatMask_value = map[string]uint32 + func AllMessages() []api.Message + type PnatAttachmentPoint uint32 + const PNAT_ATTACHMENT_POINT_MAX + const PNAT_IP4_INPUT + const PNAT_IP4_OUTPUT + func (x PnatAttachmentPoint) String() string + type PnatBindingAdd struct + Match PnatMatchTuple + Rewrite PnatRewriteTuple + func (*PnatBindingAdd) GetCrcString() string + func (*PnatBindingAdd) GetMessageName() string + func (*PnatBindingAdd) GetMessageType() api.MessageType + func (m *PnatBindingAdd) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingAdd) Reset() + func (m *PnatBindingAdd) Size() (size int) + func (m *PnatBindingAdd) Unmarshal(b []byte) error + type PnatBindingAddReply struct + BindingIndex uint32 + Retval int32 + func (*PnatBindingAddReply) GetCrcString() string + func (*PnatBindingAddReply) GetMessageName() string + func (*PnatBindingAddReply) GetMessageType() api.MessageType + func (m *PnatBindingAddReply) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingAddReply) Reset() + func (m *PnatBindingAddReply) Size() (size int) + func (m *PnatBindingAddReply) Unmarshal(b []byte) error + type PnatBindingAttach struct + Attachment PnatAttachmentPoint + BindingIndex uint32 + SwIfIndex interface_types.InterfaceIndex + func (*PnatBindingAttach) GetCrcString() string + func (*PnatBindingAttach) GetMessageName() string + func (*PnatBindingAttach) GetMessageType() api.MessageType + func (m *PnatBindingAttach) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingAttach) Reset() + func (m *PnatBindingAttach) Size() (size int) + func (m *PnatBindingAttach) Unmarshal(b []byte) error + type PnatBindingAttachReply struct + Retval int32 + func (*PnatBindingAttachReply) GetCrcString() string + func (*PnatBindingAttachReply) GetMessageName() string + func (*PnatBindingAttachReply) GetMessageType() api.MessageType + func (m *PnatBindingAttachReply) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingAttachReply) Reset() + func (m *PnatBindingAttachReply) Size() (size int) + func (m *PnatBindingAttachReply) Unmarshal(b []byte) error + type PnatBindingDel struct + BindingIndex uint32 + func (*PnatBindingDel) GetCrcString() string + func (*PnatBindingDel) GetMessageName() string + func (*PnatBindingDel) GetMessageType() api.MessageType + func (m *PnatBindingDel) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingDel) Reset() + func (m *PnatBindingDel) Size() (size int) + func (m *PnatBindingDel) Unmarshal(b []byte) error + type PnatBindingDelReply struct + Retval int32 + func (*PnatBindingDelReply) GetCrcString() string + func (*PnatBindingDelReply) GetMessageName() string + func (*PnatBindingDelReply) GetMessageType() api.MessageType + func (m *PnatBindingDelReply) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingDelReply) Reset() + func (m *PnatBindingDelReply) Size() (size int) + func (m *PnatBindingDelReply) Unmarshal(b []byte) error + type PnatBindingDetach struct + Attachment PnatAttachmentPoint + BindingIndex uint32 + SwIfIndex interface_types.InterfaceIndex + func (*PnatBindingDetach) GetCrcString() string + func (*PnatBindingDetach) GetMessageName() string + func (*PnatBindingDetach) GetMessageType() api.MessageType + func (m *PnatBindingDetach) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingDetach) Reset() + func (m *PnatBindingDetach) Size() (size int) + func (m *PnatBindingDetach) Unmarshal(b []byte) error + type PnatBindingDetachReply struct + Retval int32 + func (*PnatBindingDetachReply) GetCrcString() string + func (*PnatBindingDetachReply) GetMessageName() string + func (*PnatBindingDetachReply) GetMessageType() api.MessageType + func (m *PnatBindingDetachReply) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingDetachReply) Reset() + func (m *PnatBindingDetachReply) Size() (size int) + func (m *PnatBindingDetachReply) Unmarshal(b []byte) error + type PnatBindingsDetails struct + Match PnatMatchTuple + Rewrite PnatRewriteTuple + func (*PnatBindingsDetails) GetCrcString() string + func (*PnatBindingsDetails) GetMessageName() string + func (*PnatBindingsDetails) GetMessageType() api.MessageType + func (m *PnatBindingsDetails) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingsDetails) Reset() + func (m *PnatBindingsDetails) Size() (size int) + func (m *PnatBindingsDetails) Unmarshal(b []byte) error + type PnatBindingsGet struct + Cursor uint32 + func (*PnatBindingsGet) GetCrcString() string + func (*PnatBindingsGet) GetMessageName() string + func (*PnatBindingsGet) GetMessageType() api.MessageType + func (m *PnatBindingsGet) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingsGet) Reset() + func (m *PnatBindingsGet) Size() (size int) + func (m *PnatBindingsGet) Unmarshal(b []byte) error + type PnatBindingsGetReply struct + Cursor uint32 + Retval int32 + func (*PnatBindingsGetReply) GetCrcString() string + func (*PnatBindingsGetReply) GetMessageName() string + func (*PnatBindingsGetReply) GetMessageType() api.MessageType + func (m *PnatBindingsGetReply) Marshal(b []byte) ([]byte, error) + func (m *PnatBindingsGetReply) Reset() + func (m *PnatBindingsGetReply) Size() (size int) + func (m *PnatBindingsGetReply) Unmarshal(b []byte) error + type PnatInterfacesDetails struct + Enabled []bool + LookupMask [2]PnatMask + SwIfIndex interface_types.InterfaceIndex + func (*PnatInterfacesDetails) GetCrcString() string + func (*PnatInterfacesDetails) GetMessageName() string + func (*PnatInterfacesDetails) GetMessageType() api.MessageType + func (m *PnatInterfacesDetails) Marshal(b []byte) ([]byte, error) + func (m *PnatInterfacesDetails) Reset() + func (m *PnatInterfacesDetails) Size() (size int) + func (m *PnatInterfacesDetails) Unmarshal(b []byte) error + type PnatInterfacesGet struct + Cursor uint32 + func (*PnatInterfacesGet) GetCrcString() string + func (*PnatInterfacesGet) GetMessageName() string + func (*PnatInterfacesGet) GetMessageType() api.MessageType + func (m *PnatInterfacesGet) Marshal(b []byte) ([]byte, error) + func (m *PnatInterfacesGet) Reset() + func (m *PnatInterfacesGet) Size() (size int) + func (m *PnatInterfacesGet) Unmarshal(b []byte) error + type PnatInterfacesGetReply struct + Cursor uint32 + Retval int32 + func (*PnatInterfacesGetReply) GetCrcString() string + func (*PnatInterfacesGetReply) GetMessageName() string + func (*PnatInterfacesGetReply) GetMessageType() api.MessageType + func (m *PnatInterfacesGetReply) Marshal(b []byte) ([]byte, error) + func (m *PnatInterfacesGetReply) Reset() + func (m *PnatInterfacesGetReply) Size() (size int) + func (m *PnatInterfacesGetReply) Unmarshal(b []byte) error + type PnatMask uint32 + const PNAT_CLEAR_BYTE + const PNAT_COPY_BYTE + const PNAT_DA + const PNAT_DPORT + const PNAT_SA + const PNAT_SPORT + func (x PnatMask) String() string + type PnatMatchTuple struct + Dport uint16 + Dst ip_types.IP4Address + Mask PnatMask + Proto ip_types.IPProto + Sport uint16 + Src ip_types.IP4Address + type PnatRewriteTuple struct + ClearOffset uint8 + Dport uint16 + Dst ip_types.IP4Address + FromOffset uint8 + Mask PnatMask + Sport uint16 + Src ip_types.IP4Address + ToOffset uint8 + type RPCService interface + PnatBindingAdd func(ctx context.Context, in *PnatBindingAdd) (*PnatBindingAddReply, error) + PnatBindingAttach func(ctx context.Context, in *PnatBindingAttach) (*PnatBindingAttachReply, error) + PnatBindingDel func(ctx context.Context, in *PnatBindingDel) (*PnatBindingDelReply, error) + PnatBindingDetach func(ctx context.Context, in *PnatBindingDetach) (*PnatBindingDetachReply, error) + PnatBindingsGet func(ctx context.Context, in *PnatBindingsGet) (RPCService_PnatBindingsGetClient, error) + PnatInterfacesGet func(ctx context.Context, in *PnatInterfacesGet) (RPCService_PnatInterfacesGetClient, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_PnatBindingsGetClient interface + Recv func() (*PnatBindingsDetails, error) + type RPCService_PnatInterfacesGetClient interface + Recv func() (*PnatInterfacesDetails, error)