Documentation ¶
Overview ¶
Package pnat contains generated bindings for API file pnat.api.
Contents:
2 enums 2 structs 14 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type PnatAttachmentPoint
- type PnatBindingAdd
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- type PnatMatchTuple
- type PnatRewriteTuple
- type RPCService
- type RPCService_PnatBindingsGetClient
- type RPCService_PnatInterfacesGetClient
Constants ¶
const ( APIFile = "pnat" APIVersion = "0.1.1" VersionCrc = 0x108d3b87 )
Variables ¶
var ( PnatAttachmentPoint_name = map[uint32]string{ 0: "PNAT_IP4_INPUT", 1: "PNAT_IP4_OUTPUT", 2: "PNAT_ATTACHMENT_POINT_MAX", } PnatAttachmentPoint_value = map[string]uint32{ "PNAT_IP4_INPUT": 0, "PNAT_IP4_OUTPUT": 1, "PNAT_ATTACHMENT_POINT_MAX": 2, } )
var ( PnatMask_name = map[uint32]string{ 1: "PNAT_SA", 2: "PNAT_DA", 4: "PNAT_SPORT", 8: "PNAT_DPORT", 16: "PNAT_COPY_BYTE", 32: "PNAT_CLEAR_BYTE", } PnatMask_value = map[string]uint32{ "PNAT_SA": 1, "PNAT_DA": 2, "PNAT_SPORT": 4, "PNAT_DPORT": 8, "PNAT_COPY_BYTE": 16, "PNAT_CLEAR_BYTE": 32, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type PnatAttachmentPoint ¶
type PnatAttachmentPoint uint32
PnatAttachmentPoint defines enum 'pnat_attachment_point'.
const ( PNAT_IP4_INPUT PnatAttachmentPoint = 0 PNAT_IP4_OUTPUT PnatAttachmentPoint = 1 PNAT_ATTACHMENT_POINT_MAX PnatAttachmentPoint = 2 )
func (PnatAttachmentPoint) String ¶
func (x PnatAttachmentPoint) String() string
type PnatBindingAdd ¶
type PnatBindingAdd struct { Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"` Rewrite PnatRewriteTuple `binapi:"pnat_rewrite_tuple,name=rewrite" json:"rewrite,omitempty"` }
PnatBindingAdd defines message 'pnat_binding_add'. InProgress: the message form may change in the future versions
func (*PnatBindingAdd) GetCrcString ¶
func (*PnatBindingAdd) GetCrcString() string
func (*PnatBindingAdd) GetMessageName ¶
func (*PnatBindingAdd) GetMessageName() string
func (*PnatBindingAdd) GetMessageType ¶
func (*PnatBindingAdd) GetMessageType() api.MessageType
func (*PnatBindingAdd) Reset ¶
func (m *PnatBindingAdd) Reset()
func (*PnatBindingAdd) Size ¶
func (m *PnatBindingAdd) Size() (size int)
func (*PnatBindingAdd) Unmarshal ¶
func (m *PnatBindingAdd) Unmarshal(b []byte) error
type PnatBindingAddReply ¶
type PnatBindingAddReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"` }
PnatBindingAddReply defines message 'pnat_binding_add_reply'. InProgress: the message form may change in the future versions
func (*PnatBindingAddReply) GetCrcString ¶
func (*PnatBindingAddReply) GetCrcString() string
func (*PnatBindingAddReply) GetMessageName ¶
func (*PnatBindingAddReply) GetMessageName() string
func (*PnatBindingAddReply) GetMessageType ¶
func (*PnatBindingAddReply) GetMessageType() api.MessageType
func (*PnatBindingAddReply) Marshal ¶
func (m *PnatBindingAddReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingAddReply) Reset ¶
func (m *PnatBindingAddReply) Reset()
func (*PnatBindingAddReply) Size ¶
func (m *PnatBindingAddReply) Size() (size int)
func (*PnatBindingAddReply) Unmarshal ¶
func (m *PnatBindingAddReply) Unmarshal(b []byte) error
type PnatBindingAttach ¶
type PnatBindingAttach struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Attachment PnatAttachmentPoint `binapi:"pnat_attachment_point,name=attachment" json:"attachment,omitempty"` BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"` }
PnatBindingAttach defines message 'pnat_binding_attach'. InProgress: the message form may change in the future versions
func (*PnatBindingAttach) GetCrcString ¶
func (*PnatBindingAttach) GetCrcString() string
func (*PnatBindingAttach) GetMessageName ¶
func (*PnatBindingAttach) GetMessageName() string
func (*PnatBindingAttach) GetMessageType ¶
func (*PnatBindingAttach) GetMessageType() api.MessageType
func (*PnatBindingAttach) Reset ¶
func (m *PnatBindingAttach) Reset()
func (*PnatBindingAttach) Size ¶
func (m *PnatBindingAttach) Size() (size int)
func (*PnatBindingAttach) Unmarshal ¶
func (m *PnatBindingAttach) Unmarshal(b []byte) error
type PnatBindingAttachReply ¶
type PnatBindingAttachReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingAttachReply defines message 'pnat_binding_attach_reply'. InProgress: the message form may change in the future versions
func (*PnatBindingAttachReply) GetCrcString ¶
func (*PnatBindingAttachReply) GetCrcString() string
func (*PnatBindingAttachReply) GetMessageName ¶
func (*PnatBindingAttachReply) GetMessageName() string
func (*PnatBindingAttachReply) GetMessageType ¶
func (*PnatBindingAttachReply) GetMessageType() api.MessageType
func (*PnatBindingAttachReply) Marshal ¶
func (m *PnatBindingAttachReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingAttachReply) Reset ¶
func (m *PnatBindingAttachReply) Reset()
func (*PnatBindingAttachReply) Size ¶
func (m *PnatBindingAttachReply) Size() (size int)
func (*PnatBindingAttachReply) Unmarshal ¶
func (m *PnatBindingAttachReply) Unmarshal(b []byte) error
type PnatBindingDel ¶
type PnatBindingDel struct {
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingDel defines message 'pnat_binding_del'. InProgress: the message form may change in the future versions
func (*PnatBindingDel) GetCrcString ¶
func (*PnatBindingDel) GetCrcString() string
func (*PnatBindingDel) GetMessageName ¶
func (*PnatBindingDel) GetMessageName() string
func (*PnatBindingDel) GetMessageType ¶
func (*PnatBindingDel) GetMessageType() api.MessageType
func (*PnatBindingDel) Reset ¶
func (m *PnatBindingDel) Reset()
func (*PnatBindingDel) Size ¶
func (m *PnatBindingDel) Size() (size int)
func (*PnatBindingDel) Unmarshal ¶
func (m *PnatBindingDel) Unmarshal(b []byte) error
type PnatBindingDelReply ¶
type PnatBindingDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingDelReply defines message 'pnat_binding_del_reply'. InProgress: the message form may change in the future versions
func (*PnatBindingDelReply) GetCrcString ¶
func (*PnatBindingDelReply) GetCrcString() string
func (*PnatBindingDelReply) GetMessageName ¶
func (*PnatBindingDelReply) GetMessageName() string
func (*PnatBindingDelReply) GetMessageType ¶
func (*PnatBindingDelReply) GetMessageType() api.MessageType
func (*PnatBindingDelReply) Marshal ¶
func (m *PnatBindingDelReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingDelReply) Reset ¶
func (m *PnatBindingDelReply) Reset()
func (*PnatBindingDelReply) Size ¶
func (m *PnatBindingDelReply) Size() (size int)
func (*PnatBindingDelReply) Unmarshal ¶
func (m *PnatBindingDelReply) Unmarshal(b []byte) error
type PnatBindingDetach ¶
type PnatBindingDetach struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Attachment PnatAttachmentPoint `binapi:"pnat_attachment_point,name=attachment" json:"attachment,omitempty"` BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"` }
PnatBindingDetach defines message 'pnat_binding_detach'. InProgress: the message form may change in the future versions
func (*PnatBindingDetach) GetCrcString ¶
func (*PnatBindingDetach) GetCrcString() string
func (*PnatBindingDetach) GetMessageName ¶
func (*PnatBindingDetach) GetMessageName() string
func (*PnatBindingDetach) GetMessageType ¶
func (*PnatBindingDetach) GetMessageType() api.MessageType
func (*PnatBindingDetach) Reset ¶
func (m *PnatBindingDetach) Reset()
func (*PnatBindingDetach) Size ¶
func (m *PnatBindingDetach) Size() (size int)
func (*PnatBindingDetach) Unmarshal ¶
func (m *PnatBindingDetach) Unmarshal(b []byte) error
type PnatBindingDetachReply ¶
type PnatBindingDetachReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingDetachReply defines message 'pnat_binding_detach_reply'. InProgress: the message form may change in the future versions
func (*PnatBindingDetachReply) GetCrcString ¶
func (*PnatBindingDetachReply) GetCrcString() string
func (*PnatBindingDetachReply) GetMessageName ¶
func (*PnatBindingDetachReply) GetMessageName() string
func (*PnatBindingDetachReply) GetMessageType ¶
func (*PnatBindingDetachReply) GetMessageType() api.MessageType
func (*PnatBindingDetachReply) Marshal ¶
func (m *PnatBindingDetachReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingDetachReply) Reset ¶
func (m *PnatBindingDetachReply) Reset()
func (*PnatBindingDetachReply) Size ¶
func (m *PnatBindingDetachReply) Size() (size int)
func (*PnatBindingDetachReply) Unmarshal ¶
func (m *PnatBindingDetachReply) Unmarshal(b []byte) error
type PnatBindingsDetails ¶
type PnatBindingsDetails struct { Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"` Rewrite PnatRewriteTuple `binapi:"pnat_rewrite_tuple,name=rewrite" json:"rewrite,omitempty"` }
PnatBindingsDetails defines message 'pnat_bindings_details'. InProgress: the message form may change in the future versions
func (*PnatBindingsDetails) GetCrcString ¶
func (*PnatBindingsDetails) GetCrcString() string
func (*PnatBindingsDetails) GetMessageName ¶
func (*PnatBindingsDetails) GetMessageName() string
func (*PnatBindingsDetails) GetMessageType ¶
func (*PnatBindingsDetails) GetMessageType() api.MessageType
func (*PnatBindingsDetails) Marshal ¶
func (m *PnatBindingsDetails) Marshal(b []byte) ([]byte, error)
func (*PnatBindingsDetails) Reset ¶
func (m *PnatBindingsDetails) Reset()
func (*PnatBindingsDetails) Size ¶
func (m *PnatBindingsDetails) Size() (size int)
func (*PnatBindingsDetails) Unmarshal ¶
func (m *PnatBindingsDetails) Unmarshal(b []byte) error
type PnatBindingsGet ¶
type PnatBindingsGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatBindingsGet defines message 'pnat_bindings_get'. InProgress: the message form may change in the future versions
func (*PnatBindingsGet) GetCrcString ¶
func (*PnatBindingsGet) GetCrcString() string
func (*PnatBindingsGet) GetMessageName ¶
func (*PnatBindingsGet) GetMessageName() string
func (*PnatBindingsGet) GetMessageType ¶
func (*PnatBindingsGet) GetMessageType() api.MessageType
func (*PnatBindingsGet) Reset ¶
func (m *PnatBindingsGet) Reset()
func (*PnatBindingsGet) Size ¶
func (m *PnatBindingsGet) Size() (size int)
func (*PnatBindingsGet) Unmarshal ¶
func (m *PnatBindingsGet) Unmarshal(b []byte) error
type PnatBindingsGetReply ¶
type PnatBindingsGetReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` }
PnatBindingsGetReply defines message 'pnat_bindings_get_reply'. InProgress: the message form may change in the future versions
func (*PnatBindingsGetReply) GetCrcString ¶
func (*PnatBindingsGetReply) GetCrcString() string
func (*PnatBindingsGetReply) GetMessageName ¶
func (*PnatBindingsGetReply) GetMessageName() string
func (*PnatBindingsGetReply) GetMessageType ¶
func (*PnatBindingsGetReply) GetMessageType() api.MessageType
func (*PnatBindingsGetReply) Marshal ¶
func (m *PnatBindingsGetReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingsGetReply) Reset ¶
func (m *PnatBindingsGetReply) Reset()
func (*PnatBindingsGetReply) Size ¶
func (m *PnatBindingsGetReply) Size() (size int)
func (*PnatBindingsGetReply) Unmarshal ¶
func (m *PnatBindingsGetReply) Unmarshal(b []byte) error
type PnatInterfacesDetails ¶
type PnatInterfacesDetails struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Enabled []bool `binapi:"bool[2],name=enabled" json:"enabled,omitempty"` LookupMask [2]PnatMask `binapi:"pnat_mask[2],name=lookup_mask" json:"lookup_mask,omitempty"` }
PnatInterfacesDetails defines message 'pnat_interfaces_details'. InProgress: the message form may change in the future versions
func (*PnatInterfacesDetails) GetCrcString ¶
func (*PnatInterfacesDetails) GetCrcString() string
func (*PnatInterfacesDetails) GetMessageName ¶
func (*PnatInterfacesDetails) GetMessageName() string
func (*PnatInterfacesDetails) GetMessageType ¶
func (*PnatInterfacesDetails) GetMessageType() api.MessageType
func (*PnatInterfacesDetails) Marshal ¶
func (m *PnatInterfacesDetails) Marshal(b []byte) ([]byte, error)
func (*PnatInterfacesDetails) Reset ¶
func (m *PnatInterfacesDetails) Reset()
func (*PnatInterfacesDetails) Size ¶
func (m *PnatInterfacesDetails) Size() (size int)
func (*PnatInterfacesDetails) Unmarshal ¶
func (m *PnatInterfacesDetails) Unmarshal(b []byte) error
type PnatInterfacesGet ¶
type PnatInterfacesGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatInterfacesGet defines message 'pnat_interfaces_get'. InProgress: the message form may change in the future versions
func (*PnatInterfacesGet) GetCrcString ¶
func (*PnatInterfacesGet) GetCrcString() string
func (*PnatInterfacesGet) GetMessageName ¶
func (*PnatInterfacesGet) GetMessageName() string
func (*PnatInterfacesGet) GetMessageType ¶
func (*PnatInterfacesGet) GetMessageType() api.MessageType
func (*PnatInterfacesGet) Reset ¶
func (m *PnatInterfacesGet) Reset()
func (*PnatInterfacesGet) Size ¶
func (m *PnatInterfacesGet) Size() (size int)
func (*PnatInterfacesGet) Unmarshal ¶
func (m *PnatInterfacesGet) Unmarshal(b []byte) error
type PnatInterfacesGetReply ¶
type PnatInterfacesGetReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` }
PnatInterfacesGetReply defines message 'pnat_interfaces_get_reply'. InProgress: the message form may change in the future versions
func (*PnatInterfacesGetReply) GetCrcString ¶
func (*PnatInterfacesGetReply) GetCrcString() string
func (*PnatInterfacesGetReply) GetMessageName ¶
func (*PnatInterfacesGetReply) GetMessageName() string
func (*PnatInterfacesGetReply) GetMessageType ¶
func (*PnatInterfacesGetReply) GetMessageType() api.MessageType
func (*PnatInterfacesGetReply) Marshal ¶
func (m *PnatInterfacesGetReply) Marshal(b []byte) ([]byte, error)
func (*PnatInterfacesGetReply) Reset ¶
func (m *PnatInterfacesGetReply) Reset()
func (*PnatInterfacesGetReply) Size ¶
func (m *PnatInterfacesGetReply) Size() (size int)
func (*PnatInterfacesGetReply) Unmarshal ¶
func (m *PnatInterfacesGetReply) Unmarshal(b []byte) error
type PnatMatchTuple ¶
type PnatMatchTuple struct { Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"` Dst ip_types.IP4Address `binapi:"ip4_address,name=dst" json:"dst,omitempty"` Proto ip_types.IPProto `binapi:"ip_proto,name=proto" json:"proto,omitempty"` Sport uint16 `binapi:"u16,name=sport" json:"sport,omitempty"` Dport uint16 `binapi:"u16,name=dport" json:"dport,omitempty"` Mask PnatMask `binapi:"pnat_mask,name=mask" json:"mask,omitempty"` }
PnatMatchTuple defines type 'pnat_match_tuple'.
type PnatRewriteTuple ¶
type PnatRewriteTuple struct { Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"` Dst ip_types.IP4Address `binapi:"ip4_address,name=dst" json:"dst,omitempty"` Sport uint16 `binapi:"u16,name=sport" json:"sport,omitempty"` Dport uint16 `binapi:"u16,name=dport" json:"dport,omitempty"` Mask PnatMask `binapi:"pnat_mask,name=mask" json:"mask,omitempty"` FromOffset uint8 `binapi:"u8,name=from_offset" json:"from_offset,omitempty"` ToOffset uint8 `binapi:"u8,name=to_offset" json:"to_offset,omitempty"` ClearOffset uint8 `binapi:"u8,name=clear_offset" json:"clear_offset,omitempty"` }
PnatRewriteTuple defines type 'pnat_rewrite_tuple'.
type RPCService ¶
type RPCService interface { PnatBindingAdd(ctx context.Context, in *PnatBindingAdd) (*PnatBindingAddReply, error) PnatBindingAttach(ctx context.Context, in *PnatBindingAttach) (*PnatBindingAttachReply, error) PnatBindingDel(ctx context.Context, in *PnatBindingDel) (*PnatBindingDelReply, error) PnatBindingDetach(ctx context.Context, in *PnatBindingDetach) (*PnatBindingDetachReply, error) PnatBindingsGet(ctx context.Context, in *PnatBindingsGet) (RPCService_PnatBindingsGetClient, error) PnatInterfacesGet(ctx context.Context, in *PnatInterfacesGet) (RPCService_PnatInterfacesGetClient, error) }
RPCService defines RPC service pnat.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_PnatBindingsGetClient ¶
type RPCService_PnatBindingsGetClient interface { Recv() (*PnatBindingsDetails, error) api.Stream }
type RPCService_PnatInterfacesGetClient ¶
type RPCService_PnatInterfacesGetClient interface { Recv() (*PnatInterfacesDetails, error) api.Stream }