Documentation ¶
Overview ¶
Package arping contains generated bindings for API file arping.api.
Contents: - 2 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type Arping
- type ArpingReply
- func (*ArpingReply) GetCrcString() string
- func (*ArpingReply) GetMessageName() string
- func (*ArpingReply) GetMessageType() api.MessageType
- func (m *ArpingReply) Marshal(b []byte) ([]byte, error)
- func (m *ArpingReply) Reset()
- func (m *ArpingReply) Size() (size int)
- func (m *ArpingReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "arping" APIVersion = "1.0.0" VersionCrc = 0x666f91cc )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type Arping ¶
type Arping struct { Address ip_types.Address `binapi:"address,name=address" json:"address,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsGarp bool `binapi:"bool,name=is_garp" json:"is_garp,omitempty"` Repeat uint32 `binapi:"u32,name=repeat,default=1" json:"repeat,omitempty"` Interval float64 `binapi:"f64,name=interval,default=1" json:"interval,omitempty"` }
- client_index - opaque cookie to identify the sender
- address - address to send arp request or gratuitous arp.
- sw_if_index - interface to send
- repeat - number of packets to send
- interval - if more than 1 packet is sent, the delay between send
- is_garp - is garp or arp request
Arping defines message 'arping'.
func (*Arping) GetCrcString ¶
func (*Arping) GetMessageName ¶
func (*Arping) GetMessageType ¶
func (*Arping) GetMessageType() api.MessageType
type ArpingReply ¶
type ArpingReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ReplyCount uint32 `binapi:"u32,name=reply_count" json:"reply_count,omitempty"` }
- context - sender context, to match reply w/ request
- retval - return value for request @reply_count - return value for reply count
ArpingReply defines message 'arping_reply'.
func (*ArpingReply) GetCrcString ¶
func (*ArpingReply) GetCrcString() string
func (*ArpingReply) GetMessageName ¶
func (*ArpingReply) GetMessageName() string
func (*ArpingReply) GetMessageType ¶
func (*ArpingReply) GetMessageType() api.MessageType
func (*ArpingReply) Reset ¶
func (m *ArpingReply) Reset()
func (*ArpingReply) Size ¶
func (m *ArpingReply) Size() (size int)
func (*ArpingReply) Unmarshal ¶
func (m *ArpingReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
Arping(ctx context.Context, in *Arping) (*ArpingReply, error)
}
RPCService defines RPC service arping.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.