Versions in this module Expand all Collapse all v0 v0.4.0 Jan 17, 2022 Changes in this version + const APIFile + const APIVersion + const VersionCrc + var AddressFamily_name = map[uint32]string + var AddressFamily_value = map[string]uint32 + var IPDscp_name = map[uint8]string + var IPDscp_value = map[string]uint8 + var IPEcn_name = map[uint8]string + var IPEcn_value = map[string]uint8 + var IPProto_name = map[uint32]string + var IPProto_value = map[string]uint32 + var IfStatusFlags_name = map[uint32]string + var IfStatusFlags_value = map[string]uint32 + var IfType_name = map[uint32]string + var IfType_value = map[string]uint32 + var LinkDuplex_name = map[uint32]string + var LinkDuplex_value = map[string]uint32 + var MtuProto_name = map[uint32]string + var MtuProto_value = map[string]uint32 + var RxMode_name = map[uint32]string + var RxMode_value = map[string]uint32 + var SubIfFlags_name = map[uint32]string + var SubIfFlags_value = map[string]uint32 + func AllMessages() []api.Message + type Address struct + Af AddressFamily + Un AddressUnion + func ParseAddress(s string) (Address, error) + func (x *Address) MarshalText() ([]byte, error) + func (x *Address) UnmarshalText(text []byte) error + func (x Address) String() string + func (x Address) ToIP() net.IP + type AddressFamily uint32 + const ADDRESS_IP4 + const ADDRESS_IP6 + func (x AddressFamily) String() string + type AddressUnion struct + XXX_UnionData [16]byte + func AddressUnionIP4(a IP4Address) (u AddressUnion) + func AddressUnionIP6(a IP6Address) (u AddressUnion) + func (u *AddressUnion) GetIP4() (a IP4Address) + func (u *AddressUnion) GetIP6() (a IP6Address) + func (u *AddressUnion) SetIP4(a IP4Address) + func (u *AddressUnion) SetIP6(a IP6Address) + type AddressWithPrefix Prefix + func ParseAddressWithPrefix(s string) (AddressWithPrefix, error) + func (x *AddressWithPrefix) MarshalText() ([]byte, error) + func (x *AddressWithPrefix) UnmarshalText(text []byte) error + func (x AddressWithPrefix) String() string + type IP4Address [4]uint8 + func ParseIP4Address(s string) (IP4Address, error) + func (x *IP4Address) MarshalText() ([]byte, error) + func (x *IP4Address) UnmarshalText(text []byte) error + func (x IP4Address) String() string + func (x IP4Address) ToIP() net.IP + type IP4AddressWithPrefix IP4Prefix + type IP4Prefix struct + Address IP4Address + Len uint8 + func ParseIP4Prefix(s string) (prefix IP4Prefix, err error) + func (x *IP4Prefix) MarshalText() ([]byte, error) + func (x *IP4Prefix) UnmarshalText(text []byte) error + func (x IP4Prefix) String() string + func (x IP4Prefix) ToIPNet() *net.IPNet + type IP6Address [16]uint8 + func ParseIP6Address(s string) (IP6Address, error) + func (x *IP6Address) MarshalText() ([]byte, error) + func (x *IP6Address) UnmarshalText(text []byte) error + func (x IP6Address) String() string + func (x IP6Address) ToIP() net.IP + type IP6AddressWithPrefix IP6Prefix + type IP6Prefix struct + Address IP6Address + Len uint8 + func ParseIP6Prefix(s string) (prefix IP6Prefix, err error) + func (x *IP6Prefix) MarshalText() ([]byte, error) + func (x *IP6Prefix) UnmarshalText(text []byte) error + func (x IP6Prefix) String() string + func (x IP6Prefix) ToIPNet() *net.IPNet + type IPDscp uint8 + const IP_API_DSCP_AF11 + const IP_API_DSCP_AF12 + const IP_API_DSCP_AF13 + const IP_API_DSCP_AF21 + const IP_API_DSCP_AF22 + const IP_API_DSCP_AF23 + const IP_API_DSCP_AF31 + const IP_API_DSCP_AF32 + const IP_API_DSCP_AF33 + const IP_API_DSCP_AF41 + const IP_API_DSCP_AF42 + const IP_API_DSCP_AF43 + const IP_API_DSCP_CS0 + const IP_API_DSCP_CS1 + const IP_API_DSCP_CS2 + const IP_API_DSCP_CS3 + const IP_API_DSCP_CS4 + const IP_API_DSCP_CS5 + const IP_API_DSCP_CS6 + const IP_API_DSCP_CS7 + const IP_API_DSCP_EF + func (x IPDscp) String() string + type IPEcn uint8 + const IP_API_ECN_CE + const IP_API_ECN_ECT0 + const IP_API_ECN_ECT1 + const IP_API_ECN_NONE + func (x IPEcn) String() string + type IPProto uint32 + const IP_API_PROTO_AH + const IP_API_PROTO_EIGRP + const IP_API_PROTO_ESP + const IP_API_PROTO_GRE + const IP_API_PROTO_HOPOPT + const IP_API_PROTO_ICMP + const IP_API_PROTO_IGMP + const IP_API_PROTO_OSPF + const IP_API_PROTO_RESERVED + const IP_API_PROTO_SCTP + const IP_API_PROTO_TCP + const IP_API_PROTO_UDP + func (x IPProto) String() string + type IfStatusFlags uint32 + const IF_STATUS_API_FLAG_ADMIN_UP + const IF_STATUS_API_FLAG_LINK_UP + func (x IfStatusFlags) String() string + type IfType uint32 + const IF_API_TYPE_HARDWARE + const IF_API_TYPE_P2P + const IF_API_TYPE_PIPE + const IF_API_TYPE_SUB + func (x IfType) String() string + type InterfaceIndex uint32 + type LinkDuplex uint32 + const LINK_DUPLEX_API_FULL + const LINK_DUPLEX_API_HALF + const LINK_DUPLEX_API_UNKNOWN + func (x LinkDuplex) String() string + type Mprefix struct + Af AddressFamily + GrpAddress AddressUnion + GrpAddressLength uint16 + SrcAddress AddressUnion + type MtuProto uint32 + const MTU_PROTO_API_IP4 + const MTU_PROTO_API_IP6 + const MTU_PROTO_API_L3 + const MTU_PROTO_API_MPLS + const MTU_PROTO_API_N + func (x MtuProto) String() string + type Prefix struct + Address Address + Len uint8 + func ParsePrefix(ip string) (prefix Prefix, err error) + func (x *Prefix) MarshalText() ([]byte, error) + func (x *Prefix) UnmarshalText(text []byte) error + func (x Prefix) String() string + func (x Prefix) ToIPNet() *net.IPNet + type PrefixMatcher struct + Ge uint8 + Le uint8 + type RPCService interface + SvsDump func(ctx context.Context, in *SvsDump) (RPCService_SvsDumpClient, error) + SvsEnableDisable func(ctx context.Context, in *SvsEnableDisable) (*SvsEnableDisableReply, error) + SvsPluginGetVersion func(ctx context.Context, in *SvsPluginGetVersion) (*SvsPluginGetVersionReply, error) + SvsRouteAddDel func(ctx context.Context, in *SvsRouteAddDel) (*SvsRouteAddDelReply, error) + SvsTableAddDel func(ctx context.Context, in *SvsTableAddDel) (*SvsTableAddDelReply, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_SvsDumpClient interface + Recv func() (*SvsDetails, error) + type RxMode uint32 + const RX_MODE_API_ADAPTIVE + const RX_MODE_API_DEFAULT + const RX_MODE_API_INTERRUPT + const RX_MODE_API_POLLING + const RX_MODE_API_UNKNOWN + func (x RxMode) String() string + type SubIfFlags uint32 + const SUB_IF_API_FLAG_DEFAULT + const SUB_IF_API_FLAG_DOT1AD + const SUB_IF_API_FLAG_DOT1AH + const SUB_IF_API_FLAG_EXACT_MATCH + const SUB_IF_API_FLAG_INNER_VLAN_ID_ANY + const SUB_IF_API_FLAG_MASK_VNET + const SUB_IF_API_FLAG_NO_TAGS + const SUB_IF_API_FLAG_ONE_TAG + const SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY + const SUB_IF_API_FLAG_TWO_TAGS + func (x SubIfFlags) String() string + type SvsDetails struct + Af AddressFamily + SwIfIndex InterfaceIndex + TableID uint32 + func (*SvsDetails) GetCrcString() string + func (*SvsDetails) GetMessageName() string + func (*SvsDetails) GetMessageType() api.MessageType + func (m *SvsDetails) Marshal(b []byte) ([]byte, error) + func (m *SvsDetails) Reset() + func (m *SvsDetails) Size() (size int) + func (m *SvsDetails) Unmarshal(b []byte) error + type SvsDump struct + func (*SvsDump) GetCrcString() string + func (*SvsDump) GetMessageName() string + func (*SvsDump) GetMessageType() api.MessageType + func (m *SvsDump) Marshal(b []byte) ([]byte, error) + func (m *SvsDump) Reset() + func (m *SvsDump) Size() (size int) + func (m *SvsDump) Unmarshal(b []byte) error + type SvsEnableDisable struct + Af AddressFamily + IsEnable bool + SwIfIndex InterfaceIndex + TableID uint32 + func (*SvsEnableDisable) GetCrcString() string + func (*SvsEnableDisable) GetMessageName() string + func (*SvsEnableDisable) GetMessageType() api.MessageType + func (m *SvsEnableDisable) Marshal(b []byte) ([]byte, error) + func (m *SvsEnableDisable) Reset() + func (m *SvsEnableDisable) Size() (size int) + func (m *SvsEnableDisable) Unmarshal(b []byte) error + type SvsEnableDisableReply struct + Retval int32 + func (*SvsEnableDisableReply) GetCrcString() string + func (*SvsEnableDisableReply) GetMessageName() string + func (*SvsEnableDisableReply) GetMessageType() api.MessageType + func (m *SvsEnableDisableReply) Marshal(b []byte) ([]byte, error) + func (m *SvsEnableDisableReply) Reset() + func (m *SvsEnableDisableReply) Size() (size int) + func (m *SvsEnableDisableReply) Unmarshal(b []byte) error + type SvsPluginGetVersion struct + func (*SvsPluginGetVersion) GetCrcString() string + func (*SvsPluginGetVersion) GetMessageName() string + func (*SvsPluginGetVersion) GetMessageType() api.MessageType + func (m *SvsPluginGetVersion) Marshal(b []byte) ([]byte, error) + func (m *SvsPluginGetVersion) Reset() + func (m *SvsPluginGetVersion) Size() (size int) + func (m *SvsPluginGetVersion) Unmarshal(b []byte) error + type SvsPluginGetVersionReply struct + Major uint32 + Minor uint32 + func (*SvsPluginGetVersionReply) GetCrcString() string + func (*SvsPluginGetVersionReply) GetMessageName() string + func (*SvsPluginGetVersionReply) GetMessageType() api.MessageType + func (m *SvsPluginGetVersionReply) Marshal(b []byte) ([]byte, error) + func (m *SvsPluginGetVersionReply) Reset() + func (m *SvsPluginGetVersionReply) Size() (size int) + func (m *SvsPluginGetVersionReply) Unmarshal(b []byte) error + type SvsRouteAddDel struct + IsAdd bool + Prefix Prefix + SourceTableID uint32 + TableID uint32 + func (*SvsRouteAddDel) GetCrcString() string + func (*SvsRouteAddDel) GetMessageName() string + func (*SvsRouteAddDel) GetMessageType() api.MessageType + func (m *SvsRouteAddDel) Marshal(b []byte) ([]byte, error) + func (m *SvsRouteAddDel) Reset() + func (m *SvsRouteAddDel) Size() (size int) + func (m *SvsRouteAddDel) Unmarshal(b []byte) error + type SvsRouteAddDelReply struct + Retval int32 + func (*SvsRouteAddDelReply) GetCrcString() string + func (*SvsRouteAddDelReply) GetMessageName() string + func (*SvsRouteAddDelReply) GetMessageType() api.MessageType + func (m *SvsRouteAddDelReply) Marshal(b []byte) ([]byte, error) + func (m *SvsRouteAddDelReply) Reset() + func (m *SvsRouteAddDelReply) Size() (size int) + func (m *SvsRouteAddDelReply) Unmarshal(b []byte) error + type SvsTableAddDel struct + Af AddressFamily + IsAdd bool + TableID uint32 + func (*SvsTableAddDel) GetCrcString() string + func (*SvsTableAddDel) GetMessageName() string + func (*SvsTableAddDel) GetMessageType() api.MessageType + func (m *SvsTableAddDel) Marshal(b []byte) ([]byte, error) + func (m *SvsTableAddDel) Reset() + func (m *SvsTableAddDel) Size() (size int) + func (m *SvsTableAddDel) Unmarshal(b []byte) error + type SvsTableAddDelReply struct + Retval int32 + func (*SvsTableAddDelReply) GetCrcString() string + func (*SvsTableAddDelReply) GetMessageName() string + func (*SvsTableAddDelReply) GetMessageType() api.MessageType + func (m *SvsTableAddDelReply) Marshal(b []byte) ([]byte, error) + func (m *SvsTableAddDelReply) Reset() + func (m *SvsTableAddDelReply) Size() (size int) + func (m *SvsTableAddDelReply) Unmarshal(b []byte) error