Documentation ¶
Overview ¶
Package urpf contains generated bindings for API file urpf.api.
Contents: - 1 enum - 6 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RPCService_UrpfInterfaceDumpClient
- type UrpfInterfaceDetails
- func (*UrpfInterfaceDetails) GetCrcString() string
- func (*UrpfInterfaceDetails) GetMessageName() string
- func (*UrpfInterfaceDetails) GetMessageType() api.MessageType
- func (m *UrpfInterfaceDetails) Marshal(b []byte) ([]byte, error)
- func (m *UrpfInterfaceDetails) Reset()
- func (m *UrpfInterfaceDetails) Size() (size int)
- func (m *UrpfInterfaceDetails) Unmarshal(b []byte) error
- type UrpfInterfaceDump
- func (*UrpfInterfaceDump) GetCrcString() string
- func (*UrpfInterfaceDump) GetMessageName() string
- func (*UrpfInterfaceDump) GetMessageType() api.MessageType
- func (m *UrpfInterfaceDump) Marshal(b []byte) ([]byte, error)
- func (m *UrpfInterfaceDump) Reset()
- func (m *UrpfInterfaceDump) Size() (size int)
- func (m *UrpfInterfaceDump) Unmarshal(b []byte) error
- type UrpfMode
- type UrpfUpdate
- func (*UrpfUpdate) GetCrcString() string
- func (*UrpfUpdate) GetMessageName() string
- func (*UrpfUpdate) GetMessageType() api.MessageType
- func (m *UrpfUpdate) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdate) Reset()
- func (m *UrpfUpdate) Size() (size int)
- func (m *UrpfUpdate) Unmarshal(b []byte) error
- type UrpfUpdateReply
- func (*UrpfUpdateReply) GetCrcString() string
- func (*UrpfUpdateReply) GetMessageName() string
- func (*UrpfUpdateReply) GetMessageType() api.MessageType
- func (m *UrpfUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateReply) Reset()
- func (m *UrpfUpdateReply) Size() (size int)
- func (m *UrpfUpdateReply) Unmarshal(b []byte) error
- type UrpfUpdateV2
- func (*UrpfUpdateV2) GetCrcString() string
- func (*UrpfUpdateV2) GetMessageName() string
- func (*UrpfUpdateV2) GetMessageType() api.MessageType
- func (m *UrpfUpdateV2) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateV2) Reset()
- func (m *UrpfUpdateV2) Size() (size int)
- func (m *UrpfUpdateV2) Unmarshal(b []byte) error
- type UrpfUpdateV2Reply
- func (*UrpfUpdateV2Reply) GetCrcString() string
- func (*UrpfUpdateV2Reply) GetMessageName() string
- func (*UrpfUpdateV2Reply) GetMessageType() api.MessageType
- func (m *UrpfUpdateV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateV2Reply) Reset()
- func (m *UrpfUpdateV2Reply) Size() (size int)
- func (m *UrpfUpdateV2Reply) Unmarshal(b []byte) error
Constants ¶
const ( APIFile = "urpf" APIVersion = "1.0.0" VersionCrc = 0x88759016 )
Variables ¶
var ( UrpfMode_name = map[uint8]string{ 0: "URPF_API_MODE_OFF", 1: "URPF_API_MODE_LOOSE", 2: "URPF_API_MODE_STRICT", } UrpfMode_value = map[string]uint8{ "URPF_API_MODE_OFF": 0, "URPF_API_MODE_LOOSE": 1, "URPF_API_MODE_STRICT": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { UrpfInterfaceDump(ctx context.Context, in *UrpfInterfaceDump) (RPCService_UrpfInterfaceDumpClient, error) UrpfUpdate(ctx context.Context, in *UrpfUpdate) (*UrpfUpdateReply, error) UrpfUpdateV2(ctx context.Context, in *UrpfUpdateV2) (*UrpfUpdateV2Reply, error) }
RPCService defines RPC service urpf.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_UrpfInterfaceDumpClient ¶ added in v3.29.0
type RPCService_UrpfInterfaceDumpClient interface { Recv() (*UrpfInterfaceDetails, error) api.Stream }
type UrpfInterfaceDetails ¶ added in v3.29.0
type UrpfInterfaceDetails struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsInput bool `binapi:"bool,name=is_input" json:"is_input,omitempty"` Mode UrpfMode `binapi:"urpf_mode,name=mode" json:"mode,omitempty"` Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` }
@brief uRPF enabled interface details UrpfInterfaceDetails defines message 'urpf_interface_details'.
func (*UrpfInterfaceDetails) GetCrcString ¶ added in v3.29.0
func (*UrpfInterfaceDetails) GetCrcString() string
func (*UrpfInterfaceDetails) GetMessageName ¶ added in v3.29.0
func (*UrpfInterfaceDetails) GetMessageName() string
func (*UrpfInterfaceDetails) GetMessageType ¶ added in v3.29.0
func (*UrpfInterfaceDetails) GetMessageType() api.MessageType
func (*UrpfInterfaceDetails) Marshal ¶ added in v3.29.0
func (m *UrpfInterfaceDetails) Marshal(b []byte) ([]byte, error)
func (*UrpfInterfaceDetails) Reset ¶ added in v3.29.0
func (m *UrpfInterfaceDetails) Reset()
func (*UrpfInterfaceDetails) Size ¶ added in v3.29.0
func (m *UrpfInterfaceDetails) Size() (size int)
func (*UrpfInterfaceDetails) Unmarshal ¶ added in v3.29.0
func (m *UrpfInterfaceDetails) Unmarshal(b []byte) error
type UrpfInterfaceDump ¶ added in v3.29.0
type UrpfInterfaceDump struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}
@brief Dump uRPF enabled interface(s) in zero or more urpf_interface_details replies
- sw_if_index - sw_if_index of a specific interface, or -1 (default) to return all uRPF enabled interfaces
UrpfInterfaceDump defines message 'urpf_interface_dump'.
func (*UrpfInterfaceDump) GetCrcString ¶ added in v3.29.0
func (*UrpfInterfaceDump) GetCrcString() string
func (*UrpfInterfaceDump) GetMessageName ¶ added in v3.29.0
func (*UrpfInterfaceDump) GetMessageName() string
func (*UrpfInterfaceDump) GetMessageType ¶ added in v3.29.0
func (*UrpfInterfaceDump) GetMessageType() api.MessageType
func (*UrpfInterfaceDump) Marshal ¶ added in v3.29.0
func (m *UrpfInterfaceDump) Marshal(b []byte) ([]byte, error)
func (*UrpfInterfaceDump) Reset ¶ added in v3.29.0
func (m *UrpfInterfaceDump) Reset()
func (*UrpfInterfaceDump) Size ¶ added in v3.29.0
func (m *UrpfInterfaceDump) Size() (size int)
func (*UrpfInterfaceDump) Unmarshal ¶ added in v3.29.0
func (m *UrpfInterfaceDump) Unmarshal(b []byte) error
type UrpfUpdate ¶
type UrpfUpdate struct { IsInput bool `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"` Mode UrpfMode `binapi:"urpf_mode,name=mode" json:"mode,omitempty"` Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
* @brief Enable uRPF on a given interface in a given direction
- - mode - Mode
- - af - Address Family
- - sw_if_index - Interface
- - is_input - Direction.
UrpfUpdate defines message 'urpf_update'.
func (*UrpfUpdate) GetCrcString ¶
func (*UrpfUpdate) GetCrcString() string
func (*UrpfUpdate) GetMessageName ¶
func (*UrpfUpdate) GetMessageName() string
func (*UrpfUpdate) GetMessageType ¶
func (*UrpfUpdate) GetMessageType() api.MessageType
func (*UrpfUpdate) Reset ¶
func (m *UrpfUpdate) Reset()
func (*UrpfUpdate) Size ¶
func (m *UrpfUpdate) Size() (size int)
func (*UrpfUpdate) Unmarshal ¶
func (m *UrpfUpdate) Unmarshal(b []byte) error
type UrpfUpdateReply ¶
type UrpfUpdateReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
UrpfUpdateReply defines message 'urpf_update_reply'.
func (*UrpfUpdateReply) GetCrcString ¶
func (*UrpfUpdateReply) GetCrcString() string
func (*UrpfUpdateReply) GetMessageName ¶
func (*UrpfUpdateReply) GetMessageName() string
func (*UrpfUpdateReply) GetMessageType ¶
func (*UrpfUpdateReply) GetMessageType() api.MessageType
func (*UrpfUpdateReply) Reset ¶
func (m *UrpfUpdateReply) Reset()
func (*UrpfUpdateReply) Size ¶
func (m *UrpfUpdateReply) Size() (size int)
func (*UrpfUpdateReply) Unmarshal ¶
func (m *UrpfUpdateReply) Unmarshal(b []byte) error
type UrpfUpdateV2 ¶
type UrpfUpdateV2 struct { IsInput bool `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"` Mode UrpfMode `binapi:"urpf_mode,name=mode" json:"mode,omitempty"` Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` TableID uint32 `binapi:"u32,name=table_id,default=4294967295" json:"table_id,omitempty"` }
* @brief Enable uRPF on a given interface in a given direction
- - mode - Mode
- - af - Address Family
- - sw_if_index - Interface
- - is_input - Direction.
- - table-id - Table ID
UrpfUpdateV2 defines message 'urpf_update_v2'.
func (*UrpfUpdateV2) GetCrcString ¶
func (*UrpfUpdateV2) GetCrcString() string
func (*UrpfUpdateV2) GetMessageName ¶
func (*UrpfUpdateV2) GetMessageName() string
func (*UrpfUpdateV2) GetMessageType ¶
func (*UrpfUpdateV2) GetMessageType() api.MessageType
func (*UrpfUpdateV2) Reset ¶
func (m *UrpfUpdateV2) Reset()
func (*UrpfUpdateV2) Size ¶
func (m *UrpfUpdateV2) Size() (size int)
func (*UrpfUpdateV2) Unmarshal ¶
func (m *UrpfUpdateV2) Unmarshal(b []byte) error
type UrpfUpdateV2Reply ¶
type UrpfUpdateV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
UrpfUpdateV2Reply defines message 'urpf_update_v2_reply'.
func (*UrpfUpdateV2Reply) GetCrcString ¶
func (*UrpfUpdateV2Reply) GetCrcString() string
func (*UrpfUpdateV2Reply) GetMessageName ¶
func (*UrpfUpdateV2Reply) GetMessageName() string
func (*UrpfUpdateV2Reply) GetMessageType ¶
func (*UrpfUpdateV2Reply) GetMessageType() api.MessageType
func (*UrpfUpdateV2Reply) Reset ¶
func (m *UrpfUpdateV2Reply) Reset()
func (*UrpfUpdateV2Reply) Size ¶
func (m *UrpfUpdateV2Reply) Size() (size int)
func (*UrpfUpdateV2Reply) Unmarshal ¶
func (m *UrpfUpdateV2Reply) Unmarshal(b []byte) error