Versions in this module Expand all Collapse all v3 v3.2.4 Jan 10, 2024 Changes in this version + const AFI_IP + const AFI_IP6 + const AFI_L2VPN + const AFI_LS + const AFI_OPAQUE + const AS_TRANS + const BGP_ASPATH_ATTR_TYPE_CONFED_SEQ + const BGP_ASPATH_ATTR_TYPE_CONFED_SET + const BGP_ASPATH_ATTR_TYPE_SEQ + const BGP_ASPATH_ATTR_TYPE_SET + const BGP_ATTR_NHLEN_IPV6_GLOBAL + const BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL + const BGP_ERROR_ADMINISTRATIVE_COMMUNICATION_MAX + const BGP_ERROR_CEASE + const BGP_ERROR_FSM_ERROR + const BGP_ERROR_HOLD_TIMER_EXPIRED + const BGP_ERROR_MESSAGE_HEADER_ERROR + const BGP_ERROR_OPEN_MESSAGE_ERROR + const BGP_ERROR_ROUTE_REFRESH_MESSAGE_ERROR + const BGP_ERROR_SUB_ADMINISTRATIVE_RESET + const BGP_ERROR_SUB_ADMINISTRATIVE_SHUTDOWN + const BGP_ERROR_SUB_ATTRIBUTE_FLAGS_ERROR + const BGP_ERROR_SUB_ATTRIBUTE_LENGTH_ERROR + const BGP_ERROR_SUB_BAD_BGP_IDENTIFIER + const BGP_ERROR_SUB_BAD_MESSAGE_LENGTH + const BGP_ERROR_SUB_BAD_MESSAGE_TYPE + const BGP_ERROR_SUB_BAD_PEER_AS + const BGP_ERROR_SUB_CONNECTION_COLLISION_RESOLUTION + const BGP_ERROR_SUB_CONNECTION_NOT_SYNCHRONIZED + const BGP_ERROR_SUB_CONNECTION_REJECTED + const BGP_ERROR_SUB_DEPRECATED_AUTHENTICATION_FAILURE + const BGP_ERROR_SUB_DEPRECATED_ROUTING_LOOP + const BGP_ERROR_SUB_HARD_RESET + const BGP_ERROR_SUB_HOLD_TIMER_EXPIRED + const BGP_ERROR_SUB_INVALID_MESSAGE_LENGTH + const BGP_ERROR_SUB_INVALID_NETWORK_FIELD + const BGP_ERROR_SUB_INVALID_NEXT_HOP_ATTRIBUTE + const BGP_ERROR_SUB_INVALID_ORIGIN_ATTRIBUTE + const BGP_ERROR_SUB_MALFORMED_AS_PATH + const BGP_ERROR_SUB_MALFORMED_ATTRIBUTE_LIST + const BGP_ERROR_SUB_MAXIMUM_NUMBER_OF_PREFIXES_REACHED + const BGP_ERROR_SUB_MISSING_WELL_KNOWN_ATTRIBUTE + const BGP_ERROR_SUB_OPTIONAL_ATTRIBUTE_ERROR + const BGP_ERROR_SUB_OTHER_CONFIGURATION_CHANGE + const BGP_ERROR_SUB_OUT_OF_RESOURCES + const BGP_ERROR_SUB_PEER_DECONFIGURED + const BGP_ERROR_SUB_RECEIVE_UNEXPECTED_MESSAGE_IN_ESTABLISHED_STATE + const BGP_ERROR_SUB_RECEIVE_UNEXPECTED_MESSAGE_IN_OPENCONFIRM_STATE + const BGP_ERROR_SUB_RECEIVE_UNEXPECTED_MESSAGE_IN_OPENSENT_STATE + const BGP_ERROR_SUB_UNACCEPTABLE_HOLD_TIME + const BGP_ERROR_SUB_UNRECOGNIZED_WELL_KNOWN_ATTRIBUTE + const BGP_ERROR_SUB_UNSUPPORTED_CAPABILITY + const BGP_ERROR_SUB_UNSUPPORTED_OPTIONAL_PARAMETER + const BGP_ERROR_SUB_UNSUPPORTED_VERSION_NUMBER + const BGP_ERROR_UPDATE_MESSAGE_ERROR + const BGP_HEADER_LENGTH + const BGP_MAX_MESSAGE_LENGTH + const BGP_MSG_KEEPALIVE + const BGP_MSG_NOTIFICATION + const BGP_MSG_OPEN + const BGP_MSG_ROUTE_REFRESH + const BGP_MSG_UPDATE + const BGP_OPT_CAPABILITY + const BGP_ORIGIN_ATTR_TYPE_EGP + const BGP_ORIGIN_ATTR_TYPE_IGP + const BGP_ORIGIN_ATTR_TYPE_INCOMPLETE + const BGP_PORT + const BGP_RD_FOUR_OCTET_AS + const BGP_RD_IPV4_ADDRESS + const BGP_RD_TWO_OCTET_AS + const BITMASK_FLAG_OP_AND + const BITMASK_FLAG_OP_END + const BITMASK_FLAG_OP_MATCH + const BITMASK_FLAG_OP_NOT + const BITMASK_FLAG_OP_NOT_MATCH + const BITMASK_FLAG_OP_OR + const DEC_NUM_OP_AND + const DEC_NUM_OP_END + const DEC_NUM_OP_EQ + const DEC_NUM_OP_FALSE + const DEC_NUM_OP_GT + const DEC_NUM_OP_GT_EQ + const DEC_NUM_OP_LT + const DEC_NUM_OP_LT_EQ + const DEC_NUM_OP_NOT_EQ + const DEC_NUM_OP_OR + const DEC_NUM_OP_TRUE + const EGP + const EGRESS_ENDPOINT_ADDRESS_POS + const EGRESS_ENDPOINT_FAMILY_POS + const EGRESS_ENDPOINT_RESERVED_POS + const EVPN_ETHERNET_SEGMENT_ROUTE + const EVPN_INCLUSIVE_MULTICAST_ETHERNET_TAG + const EVPN_IP_PREFIX + const EVPN_I_PMSI + const EVPN_ROUTE_TYPE_ETHERNET_AUTO_DISCOVERY + const EVPN_ROUTE_TYPE_MAC_IP_ADVERTISEMENT + const FRAG_FLAG_DONT + const FRAG_FLAG_FIRST + const FRAG_FLAG_IS + const FRAG_FLAG_LAST + const FRAG_FLAG_NOT + const GRE + const ICMP + const IGMP + const IGP + const IPIP + const LS_OSPF_ROUTE_TYPE_EXTERNAL1 + const LS_OSPF_ROUTE_TYPE_EXTERNAL2 + const LS_OSPF_ROUTE_TYPE_INTER_AREA + const LS_OSPF_ROUTE_TYPE_INTRA_AREA + const LS_OSPF_ROUTE_TYPE_NSSA1 + const LS_OSPF_ROUTE_TYPE_NSSA2 + const LS_OSPF_ROUTE_TYPE_UNKNOWN + const LS_PROTOCOL_BGP + const LS_PROTOCOL_DIRECT + const LS_PROTOCOL_ISIS_L1 + const LS_PROTOCOL_ISIS_L2 + const LS_PROTOCOL_OSPF_V2 + const LS_PROTOCOL_OSPF_V3 + const LS_PROTOCOL_STATIC + const LS_PROTOCOL_UNKNOWN + const LS_TLV_ADJACENCY_SID + const LS_TLV_ADMIN_GROUP + const LS_TLV_AS + const LS_TLV_BGP_CONFEDERATION_MEMBER + const LS_TLV_BGP_LS_ID + const LS_TLV_BGP_ROUTER_ID + const LS_TLV_EXTENDED_ROUTE_TAG + const LS_TLV_IGP_FLAGS + const LS_TLV_IGP_METRIC + const LS_TLV_IGP_ROUTER_ID + const LS_TLV_IGP_ROUTE_TAG + const LS_TLV_IPV4_INTERFACE_ADDR + const LS_TLV_IPV4_LOCAL_ROUTER_ID + const LS_TLV_IPV4_NEIGHBOR_ADDR + const LS_TLV_IPV4_REMOTE_ROUTER_ID + const LS_TLV_IPV6_INTERFACE_ADDR + const LS_TLV_IPV6_LOCAL_ROUTER_ID + const LS_TLV_IPV6_NEIGHBOR_ADDR + const LS_TLV_IPV6_REMOTE_ROUTER_ID + const LS_TLV_IP_REACH_INFO + const LS_TLV_ISIS_AREA + const LS_TLV_L2_BUNDLE_MEMBER_TLV + const LS_TLV_LAN_ADJACENCY_SID + const LS_TLV_LINK_ID + const LS_TLV_LINK_NAME + const LS_TLV_LINK_PROTECTION_TYPE + const LS_TLV_LOCAL_NODE_DESC + const LS_TLV_MAX_LINK_BANDWIDTH + const LS_TLV_MAX_RESERVABLE_BANDWIDTH + const LS_TLV_MPLS_PROTOCOL_MASK + const LS_TLV_MULTI_TOPO_ID + const LS_TLV_NODE_FLAG_BITS + const LS_TLV_NODE_NAME + const LS_TLV_OPAQUE_LINK_ATTR + const LS_TLV_OPAQUE_NODE_ATTR + const LS_TLV_OPAQUE_PREFIX_ATTR + const LS_TLV_OSPF_AREA + const LS_TLV_OSPF_FORWARDING_ADDR + const LS_TLV_OSPF_ROUTE_TYPE + const LS_TLV_PEER_ADJACENCY_SID + const LS_TLV_PEER_NODE_SID + const LS_TLV_PEER_SET_SID + const LS_TLV_PREFIX_ATTRIBUTE_FLAGS + const LS_TLV_PREFIX_METRIC + const LS_TLV_PREFIX_SID + const LS_TLV_RANGE + const LS_TLV_REMOTE_NODE_DESC + const LS_TLV_RTM_CAPABILITY + const LS_TLV_SID_LABEL_TLV + const LS_TLV_SOURCE_ROUTER_ID + const LS_TLV_SRLG + const LS_TLV_SRMS_PREFERENCE + const LS_TLV_SR_ALGORITHM + const LS_TLV_SR_CAPABILITIES + const LS_TLV_SR_LOCAL_BLOCK + const LS_TLV_TE_DEFAULT_METRIC + const LS_TLV_UNKNOWN + const LS_TLV_UNRESERVED_BANDWIDTH + const MUP_ARCH_TYPE_3GPP_5G + const MUP_ARCH_TYPE_UNDEFINED + const MUP_ROUTE_TYPE_DIRECT_SEGMENT_DISCOVERY + const MUP_ROUTE_TYPE_INTERWORK_SEGMENT_DISCOVERY + const MUP_ROUTE_TYPE_TYPE_1_SESSION_TRANSFORMED + const MUP_ROUTE_TYPE_TYPE_2_SESSION_TRANSFORMED + const OSPF + const PIM + const RSVP + const SAFI_ENCAPSULATION + const SAFI_EVPN + const SAFI_FLOW_SPEC_UNICAST + const SAFI_FLOW_SPEC_VPN + const SAFI_KEY_VALUE + const SAFI_LS + const SAFI_MPLS_LABEL + const SAFI_MPLS_VPN + const SAFI_MPLS_VPN_MULTICAST + const SAFI_MULTICAST + const SAFI_MUP + const SAFI_ROUTE_TARGET_CONSTRAINTS + const SAFI_SRPOLICY + const SAFI_UNICAST + const SAFI_VPLS + const SCTP + const SRPolicyIPv4NLRILen + const SRPolicyIPv6NLRILen + const SegmentListSubTLVWeight + const TCP + const TCP_FLAG_ACK + const TCP_FLAG_CWR + const TCP_FLAG_ECE + const TCP_FLAG_FIN + const TCP_FLAG_PUSH + const TCP_FLAG_RST + const TCP_FLAG_SYN + const TCP_FLAG_URGENT + const UDP + const Unknown + const WITHDRAW_LABEL + const ZERO_LABEL + var AddressFamilyNameMap = map[RouteFamily]string + var AddressFamilyValueMap = map[string]RouteFamily + var BitmaskFlagOpNameMap = map[BitmaskFlagOp]string + var BitmaskFlagOpValueMap = map[string]BitmaskFlagOp + var CapNameMap = map[BGPCapabilityCode]string + var DECNumOpNameMap = map[DECNumOp]string + var DECNumOpValueMap = map[string]DECNumOp + var EthernetTypeNameMap = map[EthernetType]string + var FlowSpecNameMap = map[BGPFlowSpecType]string + var FlowSpecValueMap = map[string]BGPFlowSpecType + var FragmentFlagNameMap = map[FragmentFlag]string + var FragmentSortedFlags = []FragmentFlag + var PathAttrFlags map[BGPAttrType]BGPAttrFlag = map[BGPAttrType]BGPAttrFlag + var ProtocolNameMap = map[Protocol]string + var TCPFlagNameMap = map[TCPFlag]string + var TCPSortedFlags = []TCPFlag + var WellKnownCommunityNameMap = map[WellKnownCommunity]string + var WellKnownCommunityValueMap = map[string]WellKnownCommunity + func AsPathString(aspath *PathAttributeAsPath) string + func CompareFlowSpecNLRI(n, m *FlowSpecNLRI) (int, error) + func ContainsCIDR(n1, n2 *net.IPNet) bool + func EndpointString(nlri AddrPrefixInterface) string + func FlatUpdate(f1, f2 map[string]string) error + func GetBGPUpdateAttributes(data []byte) map[BGPAttrType]bool + func GetBGPUpdateAttributesFromMsg(msg *BGPUpdate) map[BGPAttrType]bool + func IsAddPathEnabled(decode bool, f RouteFamily, options []*MarshallingOption) bool + func IsAttributePresent(attr BGPAttrType, options []*MarshallingOption) bool + func LabelString(nlri AddrPrefixInterface) string + func NewMessageError(typeCode, subTypeCode uint8, data []byte, msg string) error + func NewMessageErrorWithErrorHandling(typeCode, subTypeCode uint8, data []byte, errorHandling ErrorHandling, ...) error + func QFIString(nlri AddrPrefixInterface) string + func RouteFamilyToAfiSafi(rf RouteFamily) (uint16, uint8) + func SerializeExtendedCommunities(comms []ExtendedCommunityInterface) ([][]byte, error) + func TEIDString(nlri AddrPrefixInterface) string + func ValidateAttribute(a PathAttributeInterface, rfs map[RouteFamily]BGPAddPathMode, isEBGP bool, ...) (bool, error) + func ValidateBGPMessage(m *BGPMessage) error + func ValidateOpenMsg(m *BGPOpen, expectedAS uint32, myAS uint32, myId net.IP) (uint32, error) + func ValidateUpdateMsg(m *BGPUpdate, rfs map[RouteFamily]BGPAddPathMode, isEBGP bool, isConfed bool, ...) (bool, error) + type AddrPrefixInterface interface + AFI func() uint16 + DecodeFromBytes func([]byte, ...*MarshallingOption) error + Flat func() map[string]string + Len func(...*MarshallingOption) int + MarshalJSON func() ([]byte, error) + PathIdentifier func() uint32 + PathLocalIdentifier func() uint32 + SAFI func() uint8 + Serialize func(...*MarshallingOption) ([]byte, error) + SetPathIdentifier func(uint32) + SetPathLocalIdentifier func(uint32) + String func() string + func GetImplicitPrefix(options []*MarshallingOption) AddrPrefixInterface + func NewPrefixFromRouteFamily(afi uint16, safi uint8, prefixStr ...string) (prefix AddrPrefixInterface, err error) + type AigpTLVDefault struct + Value []byte + func NewAigpTLVDefault(typ AigpTLVType, value []byte) *AigpTLVDefault + func (t *AigpTLVDefault) Len() int + func (t *AigpTLVDefault) MarshalJSON() ([]byte, error) + func (t *AigpTLVDefault) Serialize() ([]byte, error) + func (t *AigpTLVDefault) String() string + func (t *AigpTLVDefault) Type() AigpTLVType + type AigpTLVIgpMetric struct + Metric uint64 + func NewAigpTLVIgpMetric(metric uint64) *AigpTLVIgpMetric + func (t *AigpTLVIgpMetric) Len() int + func (t *AigpTLVIgpMetric) MarshalJSON() ([]byte, error) + func (t *AigpTLVIgpMetric) Serialize() ([]byte, error) + func (t *AigpTLVIgpMetric) String() string + func (t *AigpTLVIgpMetric) Type() AigpTLVType + type AigpTLVInterface interface + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + Type func() AigpTLVType + type AigpTLVType uint8 + const AIGP_TLV_IGP_METRIC + const AIGP_TLV_UNKNOWN + type As4PathParam struct + AS []uint32 + Num uint8 + Type uint8 + func NewAs4PathParam(segType uint8, as []uint32) *As4PathParam + func (a *As4PathParam) ASLen() int + func (a *As4PathParam) DecodeFromBytes(data []byte) error + func (a *As4PathParam) GetAS() []uint32 + func (a *As4PathParam) GetType() uint8 + func (a *As4PathParam) Len() int + func (a *As4PathParam) MarshalJSON() ([]byte, error) + func (a *As4PathParam) Serialize() ([]byte, error) + func (a *As4PathParam) String() string + type AsPathParam struct + AS []uint16 + Num uint8 + Type uint8 + func NewAsPathParam(segType uint8, as []uint16) *AsPathParam + func (a *AsPathParam) ASLen() int + func (a *AsPathParam) DecodeFromBytes(data []byte) error + func (a *AsPathParam) GetAS() []uint32 + func (a *AsPathParam) GetType() uint8 + func (a *AsPathParam) Len() int + func (a *AsPathParam) MarshalJSON() ([]byte, error) + func (a *AsPathParam) Serialize() ([]byte, error) + func (a *AsPathParam) String() string + type AsPathParamFormat struct + type AsPathParamInterface interface + ASLen func() int + DecodeFromBytes func([]byte) error + GetAS func() []uint32 + GetType func() uint8 + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + type BGPAddPathMode uint8 + const BGP_ADD_PATH_BOTH + const BGP_ADD_PATH_NONE + const BGP_ADD_PATH_RECEIVE + const BGP_ADD_PATH_SEND + func (m BGPAddPathMode) String() string + type BGPAttrFlag uint8 + const BGP_ATTR_FLAG_EXTENDED_LENGTH + const BGP_ATTR_FLAG_OPTIONAL + const BGP_ATTR_FLAG_PARTIAL + const BGP_ATTR_FLAG_TRANSITIVE + func (f BGPAttrFlag) String() string + type BGPAttrType uint8 + const BGP_ATTR_TYPE_AGGREGATOR + const BGP_ATTR_TYPE_AIGP + const BGP_ATTR_TYPE_AS4_AGGREGATOR + const BGP_ATTR_TYPE_AS4_PATH + const BGP_ATTR_TYPE_AS_PATH + const BGP_ATTR_TYPE_ATOMIC_AGGREGATE + const BGP_ATTR_TYPE_CLUSTER_LIST + const BGP_ATTR_TYPE_COMMUNITIES + const BGP_ATTR_TYPE_EXTENDED_COMMUNITIES + const BGP_ATTR_TYPE_IP6_EXTENDED_COMMUNITIES + const BGP_ATTR_TYPE_LARGE_COMMUNITY + const BGP_ATTR_TYPE_LOCAL_PREF + const BGP_ATTR_TYPE_LS + const BGP_ATTR_TYPE_MP_REACH_NLRI + const BGP_ATTR_TYPE_MP_UNREACH_NLRI + const BGP_ATTR_TYPE_MULTI_EXIT_DISC + const BGP_ATTR_TYPE_NEXT_HOP + const BGP_ATTR_TYPE_ORIGIN + const BGP_ATTR_TYPE_ORIGINATOR_ID + const BGP_ATTR_TYPE_PMSI_TUNNEL + const BGP_ATTR_TYPE_PREFIX_SID + const BGP_ATTR_TYPE_TUNNEL_ENCAP + func (i BGPAttrType) String() string + type BGPBody interface + DecodeFromBytes func([]byte, ...*MarshallingOption) error + Serialize func(...*MarshallingOption) ([]byte, error) + type BGPCapabilityCode uint8 + const BGP_CAP_ADD_PATH + const BGP_CAP_CARRYING_LABEL_INFO + const BGP_CAP_ENHANCED_ROUTE_REFRESH + const BGP_CAP_EXTENDED_NEXTHOP + const BGP_CAP_FOUR_OCTET_AS_NUMBER + const BGP_CAP_FQDN + const BGP_CAP_GRACEFUL_RESTART + const BGP_CAP_LONG_LIVED_GRACEFUL_RESTART + const BGP_CAP_MULTIPROTOCOL + const BGP_CAP_ROUTE_REFRESH + const BGP_CAP_ROUTE_REFRESH_CISCO + const BGP_CAP_SOFT_VERSION + func (c BGPCapabilityCode) String() string + type BGPFlowSpecType uint8 + const FLOW_SPEC_TYPE_COS + const FLOW_SPEC_TYPE_DSCP + const FLOW_SPEC_TYPE_DST_MAC + const FLOW_SPEC_TYPE_DST_PORT + const FLOW_SPEC_TYPE_DST_PREFIX + const FLOW_SPEC_TYPE_ETHERNET_TYPE + const FLOW_SPEC_TYPE_FRAGMENT + const FLOW_SPEC_TYPE_ICMP_CODE + const FLOW_SPEC_TYPE_ICMP_TYPE + const FLOW_SPEC_TYPE_INNER_COS + const FLOW_SPEC_TYPE_INNER_VID + const FLOW_SPEC_TYPE_IP_PROTO + const FLOW_SPEC_TYPE_LABEL + const FLOW_SPEC_TYPE_LLC_CONTROL + const FLOW_SPEC_TYPE_LLC_DSAP + const FLOW_SPEC_TYPE_LLC_SSAP + const FLOW_SPEC_TYPE_PKT_LEN + const FLOW_SPEC_TYPE_PORT + const FLOW_SPEC_TYPE_SNAP + const FLOW_SPEC_TYPE_SRC_MAC + const FLOW_SPEC_TYPE_SRC_PORT + const FLOW_SPEC_TYPE_SRC_PREFIX + const FLOW_SPEC_TYPE_TCP_FLAG + const FLOW_SPEC_TYPE_UNKNOWN + const FLOW_SPEC_TYPE_VID + func (t BGPFlowSpecType) String() string + type BGPHeader struct + Len uint16 + Marker []byte + Type uint8 + func (msg *BGPHeader) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPHeader) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPKeepAlive struct + func (msg *BGPKeepAlive) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPKeepAlive) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPMessage struct + Body BGPBody + Header BGPHeader + func NewBGPKeepAliveMessage() *BGPMessage + func NewBGPNotificationMessage(errcode uint8, errsubcode uint8, data []byte) *BGPMessage + func NewBGPOpenMessage(myas uint16, holdtime uint16, id string, optparams []OptionParameterInterface) *BGPMessage + func NewBGPRouteRefreshMessage(afi uint16, demarcation uint8, safi uint8) *BGPMessage + func NewBGPUpdateMessage(withdrawnRoutes []*IPAddrPrefix, pathattrs []PathAttributeInterface, ...) *BGPMessage + func NewEndOfRib(family RouteFamily) *BGPMessage + func NewTestBGPOpenMessage() *BGPMessage + func NewTestBGPUpdateMessage() *BGPMessage + func ParseBGPBody(h *BGPHeader, data []byte, options ...*MarshallingOption) (*BGPMessage, error) + func ParseBGPMessage(data []byte, options ...*MarshallingOption) (*BGPMessage, error) + func (msg *BGPMessage) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPNotification struct + Data []byte + ErrorCode uint8 + ErrorSubcode uint8 + func (msg *BGPNotification) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPNotification) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPOpen struct + HoldTime uint16 + ID net.IP + MyAS uint16 + OptParamLen uint8 + OptParams []OptionParameterInterface + Version uint8 + func (msg *BGPOpen) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPOpen) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPRouteRefresh struct + AFI uint16 + Demarcation uint8 + SAFI uint8 + func (msg *BGPRouteRefresh) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPRouteRefresh) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPUpdate struct + NLRI []*IPAddrPrefix + PathAttributes []PathAttributeInterface + TotalPathAttributeLen uint16 + WithdrawnRoutes []*IPAddrPrefix + WithdrawnRoutesLen uint16 + func TreatAsWithdraw(msg *BGPUpdate) *BGPUpdate + func (msg *BGPUpdate) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (msg *BGPUpdate) IsEndOfRib() (bool, RouteFamily) + func (msg *BGPUpdate) Serialize(options ...*MarshallingOption) ([]byte, error) + type BGPUpdateAttributes struct + Attribute map[BGPAttrType]bool + type BSID struct + Value []byte + func NewBSID(v []byte) (*BSID, error) + func (b *BSID) Len() int + func (b *BSID) Serialize() []byte + func (b *BSID) String() string + type BitmaskFlagOp uint8 + func (f BitmaskFlagOp) String() string + type CapAddPath struct + Tuples []*CapAddPathTuple + func NewCapAddPath(tuples []*CapAddPathTuple) *CapAddPath + func (c *CapAddPath) DecodeFromBytes(data []byte) error + func (c *CapAddPath) MarshalJSON() ([]byte, error) + func (c *CapAddPath) Serialize() ([]byte, error) + type CapAddPathTuple struct + Mode BGPAddPathMode + RouteFamily RouteFamily + func NewCapAddPathTuple(family RouteFamily, mode BGPAddPathMode) *CapAddPathTuple + func (t *CapAddPathTuple) MarshalJSON() ([]byte, error) + type CapCarryingLabelInfo struct + func NewCapCarryingLabelInfo() *CapCarryingLabelInfo + type CapEnhancedRouteRefresh struct + func NewCapEnhancedRouteRefresh() *CapEnhancedRouteRefresh + type CapExtendedNexthop struct + Tuples []*CapExtendedNexthopTuple + func NewCapExtendedNexthop(tuples []*CapExtendedNexthopTuple) *CapExtendedNexthop + func (c *CapExtendedNexthop) DecodeFromBytes(data []byte) error + func (c *CapExtendedNexthop) MarshalJSON() ([]byte, error) + func (c *CapExtendedNexthop) Serialize() ([]byte, error) + type CapExtendedNexthopTuple struct + NLRIAFI uint16 + NLRISAFI uint16 + NexthopAFI uint16 + func NewCapExtendedNexthopTuple(af RouteFamily, nexthop uint16) *CapExtendedNexthopTuple + func (c *CapExtendedNexthopTuple) MarshalJSON() ([]byte, error) + type CapFQDN struct + DomainName string + DomainNameLen uint8 + HostName string + HostNameLen uint8 + func NewCapFQDN(hostname string, domainname string) *CapFQDN + func (c *CapFQDN) DecodeFromBytes(data []byte) error + func (c *CapFQDN) MarshalJSON() ([]byte, error) + func (c *CapFQDN) Serialize() ([]byte, error) + type CapFourOctetASNumber struct + CapValue uint32 + func NewCapFourOctetASNumber(asnum uint32) *CapFourOctetASNumber + func (c *CapFourOctetASNumber) DecodeFromBytes(data []byte) error + func (c *CapFourOctetASNumber) MarshalJSON() ([]byte, error) + func (c *CapFourOctetASNumber) Serialize() ([]byte, error) + type CapGracefulRestart struct + Flags uint8 + Time uint16 + Tuples []*CapGracefulRestartTuple + func NewCapGracefulRestart(restarting, notification bool, time uint16, tuples []*CapGracefulRestartTuple) *CapGracefulRestart + func (c *CapGracefulRestart) DecodeFromBytes(data []byte) error + func (c *CapGracefulRestart) MarshalJSON() ([]byte, error) + func (c *CapGracefulRestart) Serialize() ([]byte, error) + type CapGracefulRestartTuple struct + AFI uint16 + Flags uint8 + SAFI uint8 + func NewCapGracefulRestartTuple(rf RouteFamily, forward bool) *CapGracefulRestartTuple + func (c *CapGracefulRestartTuple) MarshalJSON() ([]byte, error) + type CapLongLivedGracefulRestart struct + Tuples []*CapLongLivedGracefulRestartTuple + func NewCapLongLivedGracefulRestart(tuples []*CapLongLivedGracefulRestartTuple) *CapLongLivedGracefulRestart + func (c *CapLongLivedGracefulRestart) DecodeFromBytes(data []byte) error + func (c *CapLongLivedGracefulRestart) MarshalJSON() ([]byte, error) + func (c *CapLongLivedGracefulRestart) Serialize() ([]byte, error) + type CapLongLivedGracefulRestartTuple struct + AFI uint16 + Flags uint8 + RestartTime uint32 + SAFI uint8 + func NewCapLongLivedGracefulRestartTuple(rf RouteFamily, forward bool, restartTime uint32) *CapLongLivedGracefulRestartTuple + func (c *CapLongLivedGracefulRestartTuple) MarshalJSON() ([]byte, error) + type CapMultiProtocol struct + CapValue RouteFamily + func NewCapMultiProtocol(rf RouteFamily) *CapMultiProtocol + func (c *CapMultiProtocol) DecodeFromBytes(data []byte) error + func (c *CapMultiProtocol) MarshalJSON() ([]byte, error) + func (c *CapMultiProtocol) Serialize() ([]byte, error) + type CapRouteRefresh struct + func NewCapRouteRefresh() *CapRouteRefresh + type CapRouteRefreshCisco struct + func NewCapRouteRefreshCisco() *CapRouteRefreshCisco + type CapSoftwareVersion struct + SoftwareVersion string + SoftwareVersionLen uint8 + func NewCapSoftwareVersion(version string) *CapSoftwareVersion + func (c *CapSoftwareVersion) DecodeFromBytes(data []byte) error + func (c *CapSoftwareVersion) MarshalJSON() ([]byte, error) + func (c *CapSoftwareVersion) Serialize() ([]byte, error) + type CapUnknown struct + func NewCapUnknown(code BGPCapabilityCode, value []byte) *CapUnknown + type ColorExtended struct + Color uint32 + func NewColorExtended(color uint32) *ColorExtended + func (e *ColorExtended) Flat() map[string]string + func (e *ColorExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *ColorExtended) MarshalJSON() ([]byte, error) + func (e *ColorExtended) Serialize() ([]byte, error) + func (e *ColorExtended) String() string + type DECNumOp uint8 + func (f DECNumOp) String() string + type DefaultGatewayExtended struct + func NewDefaultGatewayExtended() *DefaultGatewayExtended + func (e *DefaultGatewayExtended) Flat() map[string]string + func (e *DefaultGatewayExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *DefaultGatewayExtended) MarshalJSON() ([]byte, error) + func (e *DefaultGatewayExtended) Serialize() ([]byte, error) + func (e *DefaultGatewayExtended) String() string + type DefaultParameterCapability struct + CapCode BGPCapabilityCode + CapLen uint8 + CapValue []byte + func (c *DefaultParameterCapability) Code() BGPCapabilityCode + func (c *DefaultParameterCapability) DecodeFromBytes(data []byte) error + func (c *DefaultParameterCapability) Len() int + func (c *DefaultParameterCapability) Serialize() ([]byte, error) + type DefaultPmsiTunnelID struct + Value []byte + func NewDefaultPmsiTunnelID(value []byte) *DefaultPmsiTunnelID + func (i *DefaultPmsiTunnelID) Len() int + func (i *DefaultPmsiTunnelID) Serialize() ([]byte, error) + func (i *DefaultPmsiTunnelID) String() string + type DefaultRouteDistinguisher struct + Type uint16 + func (rd *DefaultRouteDistinguisher) Len() int + type ESILabelExtended struct + IsSingleActive bool + Label uint32 + func NewESILabelExtended(label uint32, isSingleActive bool) *ESILabelExtended + func (e *ESILabelExtended) Flat() map[string]string + func (e *ESILabelExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *ESILabelExtended) MarshalJSON() ([]byte, error) + func (e *ESILabelExtended) Serialize() ([]byte, error) + func (e *ESILabelExtended) String() string + type ESIType uint8 + const ESI_ARBITRARY + const ESI_AS + const ESI_LACP + const ESI_MAC + const ESI_MSTP + const ESI_ROUTERID + func (i ESIType) String() string + type ESImportRouteTarget struct + ESImport net.HardwareAddr + func NewESImportRouteTarget(mac string) *ESImportRouteTarget + func (e *ESImportRouteTarget) Flat() map[string]string + func (e *ESImportRouteTarget) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *ESImportRouteTarget) MarshalJSON() ([]byte, error) + func (e *ESImportRouteTarget) Serialize() ([]byte, error) + func (e *ESImportRouteTarget) String() string + type EVPNEthernetAutoDiscoveryRoute struct + ESI EthernetSegmentIdentifier + ETag uint32 + Label uint32 + RD RouteDistinguisherInterface + func (er *EVPNEthernetAutoDiscoveryRoute) DecodeFromBytes(data []byte) error + func (er *EVPNEthernetAutoDiscoveryRoute) Len() int + func (er *EVPNEthernetAutoDiscoveryRoute) MarshalJSON() ([]byte, error) + func (er *EVPNEthernetAutoDiscoveryRoute) Serialize() ([]byte, error) + func (er *EVPNEthernetAutoDiscoveryRoute) String() string + type EVPNEthernetSegmentRoute struct + ESI EthernetSegmentIdentifier + IPAddress net.IP + IPAddressLength uint8 + RD RouteDistinguisherInterface + func (er *EVPNEthernetSegmentRoute) DecodeFromBytes(data []byte) error + func (er *EVPNEthernetSegmentRoute) Len() int + func (er *EVPNEthernetSegmentRoute) MarshalJSON() ([]byte, error) + func (er *EVPNEthernetSegmentRoute) Serialize() ([]byte, error) + func (er *EVPNEthernetSegmentRoute) String() string + type EVPNIPMSIRoute struct + EC ExtendedCommunityInterface + ETag uint32 + RD RouteDistinguisherInterface + func (er *EVPNIPMSIRoute) DecodeFromBytes(data []byte) error + func (er *EVPNIPMSIRoute) Len() int + func (er *EVPNIPMSIRoute) MarshalJSON() ([]byte, error) + func (er *EVPNIPMSIRoute) Serialize() ([]byte, error) + func (er *EVPNIPMSIRoute) String() string + type EVPNIPPrefixRoute struct + ESI EthernetSegmentIdentifier + ETag uint32 + GWIPAddress net.IP + IPPrefix net.IP + IPPrefixLength uint8 + Label uint32 + RD RouteDistinguisherInterface + func (er *EVPNIPPrefixRoute) DecodeFromBytes(data []byte) error + func (er *EVPNIPPrefixRoute) Len() int + func (er *EVPNIPPrefixRoute) MarshalJSON() ([]byte, error) + func (er *EVPNIPPrefixRoute) Serialize() ([]byte, error) + func (er *EVPNIPPrefixRoute) String() string + type EVPNMacIPAdvertisementRoute struct + ESI EthernetSegmentIdentifier + ETag uint32 + IPAddress net.IP + IPAddressLength uint8 + Labels []uint32 + MacAddress net.HardwareAddr + MacAddressLength uint8 + RD RouteDistinguisherInterface + func (er *EVPNMacIPAdvertisementRoute) DecodeFromBytes(data []byte) error + func (er *EVPNMacIPAdvertisementRoute) Len() int + func (er *EVPNMacIPAdvertisementRoute) MarshalJSON() ([]byte, error) + func (er *EVPNMacIPAdvertisementRoute) Serialize() ([]byte, error) + func (er *EVPNMacIPAdvertisementRoute) String() string + type EVPNMulticastEthernetTagRoute struct + ETag uint32 + IPAddress net.IP + IPAddressLength uint8 + RD RouteDistinguisherInterface + func (er *EVPNMulticastEthernetTagRoute) DecodeFromBytes(data []byte) error + func (er *EVPNMulticastEthernetTagRoute) Len() int + func (er *EVPNMulticastEthernetTagRoute) MarshalJSON() ([]byte, error) + func (er *EVPNMulticastEthernetTagRoute) Serialize() ([]byte, error) + func (er *EVPNMulticastEthernetTagRoute) String() string + type EVPNNLRI struct + Length uint8 + RouteType uint8 + RouteTypeData EVPNRouteTypeInterface + func NewEVPNEthernetAutoDiscoveryRoute(rd RouteDistinguisherInterface, esi EthernetSegmentIdentifier, etag uint32, ...) *EVPNNLRI + func NewEVPNEthernetSegmentRoute(rd RouteDistinguisherInterface, esi EthernetSegmentIdentifier, ...) *EVPNNLRI + func NewEVPNIPMSIRoute(rd RouteDistinguisherInterface, etag uint32, ec ExtendedCommunityInterface) *EVPNNLRI + func NewEVPNIPPrefixRoute(rd RouteDistinguisherInterface, esi EthernetSegmentIdentifier, etag uint32, ...) *EVPNNLRI + func NewEVPNMacIPAdvertisementRoute(rd RouteDistinguisherInterface, esi EthernetSegmentIdentifier, etag uint32, ...) *EVPNNLRI + func NewEVPNMulticastEthernetTagRoute(rd RouteDistinguisherInterface, etag uint32, ipAddress string) *EVPNNLRI + func NewEVPNNLRI(routeType uint8, routeTypeData EVPNRouteTypeInterface) *EVPNNLRI + func (l *EVPNNLRI) Flat() map[string]string + func (n *EVPNNLRI) AFI() uint16 + func (n *EVPNNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *EVPNNLRI) Len(options ...*MarshallingOption) int + func (n *EVPNNLRI) MarshalJSON() ([]byte, error) + func (n *EVPNNLRI) RD() RouteDistinguisherInterface + func (n *EVPNNLRI) SAFI() uint8 + func (n *EVPNNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *EVPNNLRI) String() string + type EVPNRouteTypeInterface interface + DecodeFromBytes func([]byte) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + type EncapExtended struct + TunnelType TunnelType + func NewEncapExtended(tunnelType TunnelType) *EncapExtended + func (e *EncapExtended) Flat() map[string]string + func (e *EncapExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *EncapExtended) MarshalJSON() ([]byte, error) + func (e *EncapExtended) Serialize() ([]byte, error) + func (e *EncapExtended) String() string + type EncapNLRI struct + func NewEncapNLRI(endpoint string) *EncapNLRI + func (n *EncapNLRI) AFI() uint16 + func (n *EncapNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *EncapNLRI) Len(options ...*MarshallingOption) int + func (n *EncapNLRI) SAFI() uint8 + func (n *EncapNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *EncapNLRI) String() string + type EncapSubTLVType uint8 + const ENCAP_SUBTLV_TYPE_COLOR + const ENCAP_SUBTLV_TYPE_EGRESS_ENDPOINT + const ENCAP_SUBTLV_TYPE_ENCAPSULATION + const ENCAP_SUBTLV_TYPE_PROTOCOL + const ENCAP_SUBTLV_TYPE_SRBINDING_SID + const ENCAP_SUBTLV_TYPE_SRCANDIDATE_PATH_NAME + const ENCAP_SUBTLV_TYPE_SRENLP + const ENCAP_SUBTLV_TYPE_SRPREFERENCE + const ENCAP_SUBTLV_TYPE_SRPRIORITY + const ENCAP_SUBTLV_TYPE_SRSEGMENT_LIST + const ENCAP_SUBTLV_TYPE_UDP_DEST_PORT + type Encapv6NLRI struct + func NewEncapv6NLRI(endpoint string) *Encapv6NLRI + func (n *Encapv6NLRI) AFI() uint16 + type ErrorHandling int + const ERROR_HANDLING_AFISAFI_DISABLE + const ERROR_HANDLING_ATTRIBUTE_DISCARD + const ERROR_HANDLING_NONE + const ERROR_HANDLING_SESSION_RESET + const ERROR_HANDLING_TREAT_AS_WITHDRAW + type EthernetSegmentIdentifier struct + Type ESIType + Value []byte + func ParseEthernetSegmentIdentifier(args []string) (EthernetSegmentIdentifier, error) + func (esi *EthernetSegmentIdentifier) DecodeFromBytes(data []byte) error + func (esi *EthernetSegmentIdentifier) Serialize() ([]byte, error) + func (esi *EthernetSegmentIdentifier) String() string + type EthernetType int + const AARP + const APPLE_TALK + const ARP + const IPX + const IPv4 + const IPv6 + const LOOPBACK + const NET_BIOS + const PPPoE_DISCOVERY + const PPPoE_SESSION + const RARP + const SNMP + const VMTP + const XTP + func (t EthernetType) String() string + type EvpnControlFlag uint8 + const BACKUP_PE + const CI_LABEL + const CONTROL_WORD + const FLOW_LABEL + const PRIMARY_PE + type ExtendedCommunityAttrSubType uint8 + const EC_SUBTYPE_BGP_DATA_COLLECTION + const EC_SUBTYPE_CISCO_VPN_DISTINGUISHER + const EC_SUBTYPE_COLOR + const EC_SUBTYPE_DEFAULT_GATEWAY + const EC_SUBTYPE_ENCAPSULATION + const EC_SUBTYPE_ESI_LABEL + const EC_SUBTYPE_ES_IMPORT + const EC_SUBTYPE_FLOWSPEC_REDIRECT + const EC_SUBTYPE_FLOWSPEC_REDIRECT_IP6 + const EC_SUBTYPE_FLOWSPEC_TRAFFIC_ACTION + const EC_SUBTYPE_FLOWSPEC_TRAFFIC_RATE + const EC_SUBTYPE_FLOWSPEC_TRAFFIC_REMARK + const EC_SUBTYPE_GENERIC + const EC_SUBTYPE_L2VPN_ID + const EC_SUBTYPE_L2_ATTRIBUTES + const EC_SUBTYPE_L2_INFO + const EC_SUBTYPE_LINK_BANDWIDTH + const EC_SUBTYPE_MAC_MOBILITY + const EC_SUBTYPE_MUP_DIRECT_SEG + const EC_SUBTYPE_ORIGIN_VALIDATION + const EC_SUBTYPE_OSPF_DOMAIN_ID + const EC_SUBTYPE_OSPF_ROUTE_ID + const EC_SUBTYPE_OSPF_ROUTE_TYPE + const EC_SUBTYPE_ROUTER_MAC + const EC_SUBTYPE_ROUTE_ORIGIN + const EC_SUBTYPE_ROUTE_TARGET + const EC_SUBTYPE_SOURCE_AS + const EC_SUBTYPE_UUID_BASED_RT + const EC_SUBTYPE_VRF_ROUTE_IMPORT + type ExtendedCommunityAttrType uint8 + const EC_TYPE_COS_CAPABILITY + const EC_TYPE_EVPN + const EC_TYPE_FLOWSPEC_REDIRECT_MIRROR + const EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL + const EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL2 + const EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL3 + const EC_TYPE_MUP + const EC_TYPE_NON_TRANSITIVE_FOUR_OCTET_AS_SPECIFIC + const EC_TYPE_NON_TRANSITIVE_IP4_SPECIFIC + const EC_TYPE_NON_TRANSITIVE_IP6_SPECIFIC + const EC_TYPE_NON_TRANSITIVE_LINK_BANDWIDTH + const EC_TYPE_NON_TRANSITIVE_OPAQUE + const EC_TYPE_NON_TRANSITIVE_QOS_MARKING + const EC_TYPE_NON_TRANSITIVE_TWO_OCTET_AS_SPECIFIC + const EC_TYPE_TRANSITIVE_FOUR_OCTET_AS_SPECIFIC + const EC_TYPE_TRANSITIVE_IP4_SPECIFIC + const EC_TYPE_TRANSITIVE_IP6_SPECIFIC + const EC_TYPE_TRANSITIVE_OPAQUE + const EC_TYPE_TRANSITIVE_QOS_MARKING + const EC_TYPE_TRANSITIVE_TWO_OCTET_AS_SPECIFIC + type ExtendedCommunityInterface interface + Flat func() map[string]string + GetTypes func() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + func ParseExtended(data []byte) (ExtendedCommunityInterface, error) + func ParseExtendedCommunity(subtype ExtendedCommunityAttrSubType, com string) (ExtendedCommunityInterface, error) + func ParseIP6Extended(data []byte) (ExtendedCommunityInterface, error) + func ParseRouteTarget(rt string) (ExtendedCommunityInterface, error) + type FSMState int + const BGP_FSM_ACTIVE + const BGP_FSM_CONNECT + const BGP_FSM_ESTABLISHED + const BGP_FSM_IDLE + const BGP_FSM_OPENCONFIRM + const BGP_FSM_OPENSENT + func (i FSMState) String() string + type FlowSpecComponent struct + Items []*FlowSpecComponentItem + func NewFlowSpecComponent(typ BGPFlowSpecType, items []*FlowSpecComponentItem) *FlowSpecComponent + func (p *FlowSpecComponent) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecComponent) Len(options ...*MarshallingOption) int + func (p *FlowSpecComponent) MarshalJSON() ([]byte, error) + func (p *FlowSpecComponent) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecComponent) String() string + func (p *FlowSpecComponent) Type() BGPFlowSpecType + type FlowSpecComponentInterface interface + DecodeFromBytes func([]byte, ...*MarshallingOption) error + Len func(...*MarshallingOption) int + Serialize func(...*MarshallingOption) ([]byte, error) + String func() string + Type func() BGPFlowSpecType + func ParseFlowSpecComponents(rf RouteFamily, arg string) ([]FlowSpecComponentInterface, error) + type FlowSpecComponentItem struct + Op uint8 + Value uint64 + func NewFlowSpecComponentItem(op uint8, value uint64) *FlowSpecComponentItem + func (v *FlowSpecComponentItem) Len() int + func (v *FlowSpecComponentItem) Serialize() ([]byte, error) + type FlowSpecDestinationMac struct + func NewFlowSpecDestinationMac(mac net.HardwareAddr) *FlowSpecDestinationMac + func (p *FlowSpecDestinationMac) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecDestinationMac) Len(options ...*MarshallingOption) int + func (p *FlowSpecDestinationMac) MarshalJSON() ([]byte, error) + func (p *FlowSpecDestinationMac) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecDestinationMac) String() string + func (p *FlowSpecDestinationMac) Type() BGPFlowSpecType + type FlowSpecDestinationPrefix struct + func NewFlowSpecDestinationPrefix(prefix AddrPrefixInterface) *FlowSpecDestinationPrefix + func (p *FlowSpecDestinationPrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecDestinationPrefix) Len(options ...*MarshallingOption) int + func (p *FlowSpecDestinationPrefix) MarshalJSON() ([]byte, error) + func (p *FlowSpecDestinationPrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecDestinationPrefix) String() string + func (p *FlowSpecDestinationPrefix) Type() BGPFlowSpecType + type FlowSpecDestinationPrefix6 struct + func NewFlowSpecDestinationPrefix6(prefix AddrPrefixInterface, offset uint8) *FlowSpecDestinationPrefix6 + func (p *FlowSpecDestinationPrefix6) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecDestinationPrefix6) Len(options ...*MarshallingOption) int + func (p *FlowSpecDestinationPrefix6) MarshalJSON() ([]byte, error) + func (p *FlowSpecDestinationPrefix6) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecDestinationPrefix6) String() string + func (p *FlowSpecDestinationPrefix6) Type() BGPFlowSpecType + type FlowSpecIPv4Unicast struct + func NewFlowSpecIPv4Unicast(value []FlowSpecComponentInterface) *FlowSpecIPv4Unicast + func (l *FlowSpecIPv4Unicast) Flat() map[string]string + func (n *FlowSpecIPv4Unicast) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type FlowSpecIPv4VPN struct + func NewFlowSpecIPv4VPN(rd RouteDistinguisherInterface, value []FlowSpecComponentInterface) *FlowSpecIPv4VPN + func (l *FlowSpecIPv4VPN) Flat() map[string]string + func (n *FlowSpecIPv4VPN) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type FlowSpecIPv6Unicast struct + func NewFlowSpecIPv6Unicast(value []FlowSpecComponentInterface) *FlowSpecIPv6Unicast + func (l *FlowSpecIPv6Unicast) Flat() map[string]string + func (n *FlowSpecIPv6Unicast) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type FlowSpecIPv6VPN struct + func NewFlowSpecIPv6VPN(rd RouteDistinguisherInterface, value []FlowSpecComponentInterface) *FlowSpecIPv6VPN + func (l *FlowSpecIPv6VPN) Flat() map[string]string + func (n *FlowSpecIPv6VPN) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type FlowSpecL2VPN struct + func NewFlowSpecL2VPN(rd RouteDistinguisherInterface, value []FlowSpecComponentInterface) *FlowSpecL2VPN + func (l *FlowSpecL2VPN) Flat() map[string]string + func (n *FlowSpecL2VPN) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type FlowSpecNLRI struct + Value []FlowSpecComponentInterface + func (n *FlowSpecNLRI) AFI() uint16 + func (n *FlowSpecNLRI) Len(options ...*MarshallingOption) int + func (n *FlowSpecNLRI) MarshalJSON() ([]byte, error) + func (n *FlowSpecNLRI) RD() RouteDistinguisherInterface + func (n *FlowSpecNLRI) SAFI() uint8 + func (n *FlowSpecNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *FlowSpecNLRI) String() string + type FlowSpecSourceMac struct + func NewFlowSpecSourceMac(mac net.HardwareAddr) *FlowSpecSourceMac + func (p *FlowSpecSourceMac) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecSourceMac) Len(options ...*MarshallingOption) int + func (p *FlowSpecSourceMac) MarshalJSON() ([]byte, error) + func (p *FlowSpecSourceMac) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecSourceMac) String() string + func (p *FlowSpecSourceMac) Type() BGPFlowSpecType + type FlowSpecSourcePrefix struct + func NewFlowSpecSourcePrefix(prefix AddrPrefixInterface) *FlowSpecSourcePrefix + func (p *FlowSpecSourcePrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecSourcePrefix) Len(options ...*MarshallingOption) int + func (p *FlowSpecSourcePrefix) MarshalJSON() ([]byte, error) + func (p *FlowSpecSourcePrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecSourcePrefix) String() string + func (p *FlowSpecSourcePrefix) Type() BGPFlowSpecType + type FlowSpecSourcePrefix6 struct + func NewFlowSpecSourcePrefix6(prefix AddrPrefixInterface, offset uint8) *FlowSpecSourcePrefix6 + func (p *FlowSpecSourcePrefix6) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecSourcePrefix6) Len(options ...*MarshallingOption) int + func (p *FlowSpecSourcePrefix6) MarshalJSON() ([]byte, error) + func (p *FlowSpecSourcePrefix6) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecSourcePrefix6) String() string + func (p *FlowSpecSourcePrefix6) Type() BGPFlowSpecType + type FlowSpecUnknown struct + Value []byte + func (p *FlowSpecUnknown) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *FlowSpecUnknown) Len(options ...*MarshallingOption) int + func (p *FlowSpecUnknown) MarshalJSON() ([]byte, error) + func (p *FlowSpecUnknown) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *FlowSpecUnknown) String() string + func (p *FlowSpecUnknown) Type() BGPFlowSpecType + type FourOctetAsSpecificExtended struct + AS uint32 + IsTransitive bool + LocalAdmin uint16 + SubType ExtendedCommunityAttrSubType + func NewFourOctetAsSpecificExtended(subtype ExtendedCommunityAttrSubType, as uint32, localAdmin uint16, ...) *FourOctetAsSpecificExtended + func (e *FourOctetAsSpecificExtended) Flat() map[string]string + func (e *FourOctetAsSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *FourOctetAsSpecificExtended) MarshalJSON() ([]byte, error) + func (e *FourOctetAsSpecificExtended) Serialize() ([]byte, error) + func (e *FourOctetAsSpecificExtended) String() string + type FragmentFlag int + func (f FragmentFlag) String() string + type IPAddrPrefix struct + func NewIPAddrPrefix(length uint8, prefix string) *IPAddrPrefix + func (r *IPAddrPrefix) AFI() uint16 + func (r *IPAddrPrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (r *IPAddrPrefix) Len(options ...*MarshallingOption) int + func (r *IPAddrPrefix) SAFI() uint8 + func (r *IPAddrPrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + type IPAddrPrefixDefault struct + Length uint8 + Prefix net.IP + func (p *IPAddrPrefixDefault) Flat() map[string]string + func (r *IPAddrPrefixDefault) MarshalJSON() ([]byte, error) + func (r *IPAddrPrefixDefault) String() string + type IPv4AddressSpecificExtended struct + IPv4 net.IP + IsTransitive bool + LocalAdmin uint16 + SubType ExtendedCommunityAttrSubType + func NewIPv4AddressSpecificExtended(subtype ExtendedCommunityAttrSubType, ip string, localAdmin uint16, ...) *IPv4AddressSpecificExtended + func (e *IPv4AddressSpecificExtended) Flat() map[string]string + func (e *IPv4AddressSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *IPv4AddressSpecificExtended) MarshalJSON() ([]byte, error) + func (e *IPv4AddressSpecificExtended) Serialize() ([]byte, error) + func (e *IPv4AddressSpecificExtended) String() string + type IPv6AddrPrefix struct + func NewIPv6AddrPrefix(length uint8, prefix string) *IPv6AddrPrefix + func (r *IPv6AddrPrefix) AFI() uint16 + func (r *IPv6AddrPrefix) String() string + type IPv6AddressSpecificExtended struct + IPv6 net.IP + IsTransitive bool + LocalAdmin uint16 + SubType ExtendedCommunityAttrSubType + func NewIPv6AddressSpecificExtended(subtype ExtendedCommunityAttrSubType, ip string, localAdmin uint16, ...) *IPv6AddressSpecificExtended + func (e *IPv6AddressSpecificExtended) Flat() map[string]string + func (e *IPv6AddressSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *IPv6AddressSpecificExtended) MarshalJSON() ([]byte, error) + func (e *IPv6AddressSpecificExtended) Serialize() ([]byte, error) + func (e *IPv6AddressSpecificExtended) String() string + type IngressReplTunnelID struct + Value net.IP + func NewIngressReplTunnelID(value string) *IngressReplTunnelID + func (i *IngressReplTunnelID) Len() int + func (i *IngressReplTunnelID) Serialize() ([]byte, error) + func (i *IngressReplTunnelID) String() string + type LabeledIPAddrPrefix struct + Labels MPLSLabelStack + func NewLabeledIPAddrPrefix(length uint8, prefix string, label MPLSLabelStack) *LabeledIPAddrPrefix + func (l *LabeledIPAddrPrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (l *LabeledIPAddrPrefix) IPPrefixLen() uint8 + func (l *LabeledIPAddrPrefix) Len(options ...*MarshallingOption) int + func (l *LabeledIPAddrPrefix) MarshalJSON() ([]byte, error) + func (l *LabeledIPAddrPrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + func (l *LabeledIPAddrPrefix) String() string + func (r *LabeledIPAddrPrefix) AFI() uint16 + func (r *LabeledIPAddrPrefix) SAFI() uint8 + type LabeledIPv6AddrPrefix struct + func NewLabeledIPv6AddrPrefix(length uint8, prefix string, label MPLSLabelStack) *LabeledIPv6AddrPrefix + func (l *LabeledIPv6AddrPrefix) AFI() uint16 + type LabeledVPNIPAddrPrefix struct + Labels MPLSLabelStack + RD RouteDistinguisherInterface + func NewLabeledVPNIPAddrPrefix(length uint8, prefix string, label MPLSLabelStack, ...) *LabeledVPNIPAddrPrefix + func (l *LabeledVPNIPAddrPrefix) AFI() uint16 + func (l *LabeledVPNIPAddrPrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (l *LabeledVPNIPAddrPrefix) Flat() map[string]string + func (l *LabeledVPNIPAddrPrefix) IPPrefix() string + func (l *LabeledVPNIPAddrPrefix) IPPrefixLen() uint8 + func (l *LabeledVPNIPAddrPrefix) Len(options ...*MarshallingOption) int + func (l *LabeledVPNIPAddrPrefix) MarshalJSON() ([]byte, error) + func (l *LabeledVPNIPAddrPrefix) SAFI() uint8 + func (l *LabeledVPNIPAddrPrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + func (l *LabeledVPNIPAddrPrefix) String() string + type LabeledVPNIPv6AddrPrefix struct + func NewLabeledVPNIPv6AddrPrefix(length uint8, prefix string, label MPLSLabelStack, ...) *LabeledVPNIPv6AddrPrefix + func (l *LabeledVPNIPv6AddrPrefix) AFI() uint16 + type LargeCommunity struct + ASN uint32 + LocalData1 uint32 + LocalData2 uint32 + func NewLargeCommunity(asn, data1, data2 uint32) *LargeCommunity + func ParseLargeCommunity(value string) (*LargeCommunity, error) + func (c *LargeCommunity) Eq(rhs *LargeCommunity) bool + func (c *LargeCommunity) Serialize() ([]byte, error) + func (c *LargeCommunity) String() string + type Layer2AttributesExtended struct + HasCILabel bool + HasControlWord bool + HasFlowLabel bool + IsBackupPe bool + IsPrimaryPe bool + Mtu uint16 + func (e *Layer2AttributesExtended) Flat() map[string]string + func (e *Layer2AttributesExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *Layer2AttributesExtended) MarshalJSON() ([]byte, error) + func (e *Layer2AttributesExtended) Serialize() ([]byte, error) + func (e *Layer2AttributesExtended) String() string + type Layer2EncapsulationType uint8 + const LAYER2ENCAPSULATION_TYPE_ATM_AAL5 + const LAYER2ENCAPSULATION_TYPE_ATM_TRANSPARENT + const LAYER2ENCAPSULATION_TYPE_ATM_VCC + const LAYER2ENCAPSULATION_TYPE_ATM_VPC + const LAYER2ENCAPSULATION_TYPE_CISCO_HDLC + const LAYER2ENCAPSULATION_TYPE_ETHERNET_RAW + const LAYER2ENCAPSULATION_TYPE_ETHERNET_VLAN + const LAYER2ENCAPSULATION_TYPE_FRAMERELAY + const LAYER2ENCAPSULATION_TYPE_IP_LAYER2 + const LAYER2ENCAPSULATION_TYPE_PPP + const LAYER2ENCAPSULATION_TYPE_SONET + const LAYER2ENCAPSULATION_TYPE_VPLS + func (l Layer2EncapsulationType) String() string + type LinkBandwidthExtended struct + AS uint16 + Bandwidth float32 + func NewLinkBandwidthExtended(as uint16, bw float32) *LinkBandwidthExtended + func (e *LinkBandwidthExtended) Flat() map[string]string + func (e *LinkBandwidthExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *LinkBandwidthExtended) MarshalJSON() ([]byte, error) + func (e *LinkBandwidthExtended) Serialize() ([]byte, error) + func (e *LinkBandwidthExtended) String() string + type LsAddrPrefix struct + Length uint16 + NLRI LsNLRIInterface + Type LsNLRIType + func (l *LsAddrPrefix) AFI() uint16 + func (l *LsAddrPrefix) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (l *LsAddrPrefix) Flat() map[string]string + func (l *LsAddrPrefix) Len(...*MarshallingOption) int + func (l *LsAddrPrefix) MarshalJSON() ([]byte, error) + func (l *LsAddrPrefix) SAFI() uint8 + func (l *LsAddrPrefix) Serialize(options ...*MarshallingOption) ([]byte, error) + func (l *LsAddrPrefix) String() string + type LsAttribute struct + BgpPeerSegment LsAttributeBgpPeerSegment + Link LsAttributeLink + Node LsAttributeNode + Prefix LsAttributePrefix + type LsAttributeBgpPeerSegment struct + BgpPeerAdjacencySid *LsBgpPeerSegmentSID + BgpPeerNodeSid *LsBgpPeerSegmentSID + BgpPeerSetSid *LsBgpPeerSegmentSID + type LsAttributeBgpPeerSegmentSIDFlags struct + Backup bool + Local bool + Persistent bool + Value bool + func NewLsBgpPeerSegmentSIDFlag(v uint8) LsAttributeBgpPeerSegmentSIDFlags + func (l *LsAttributeBgpPeerSegmentSIDFlags) FlagBits() uint8 + func (l *LsAttributeBgpPeerSegmentSIDFlags) SidLen() uint16 + type LsAttributeLink struct + AdminGroup *uint32 + Bandwidth *float32 + DefaultTEMetric *uint32 + IGPMetric *uint32 + LocalRouterID *net.IP + LocalRouterIDv6 *net.IP + Name *string + Opaque *[]byte + RemoteRouterID *net.IP + RemoteRouterIDv6 *net.IP + ReservableBandwidth *float32 + SrAdjacencySID *uint32 + Srlgs *[]uint32 + UnreservedBandwidth *[8]float32 + type LsAttributeNode struct + Flags *LsNodeFlags + IsisArea *[]byte + LocalRouterID *net.IP + LocalRouterIDv6 *net.IP + Name *string + Opaque *[]byte + SrAlgorithms *[]byte + SrCapabilties *LsSrCapabilities + SrLocalBlock *LsSrLocalBlock + type LsAttributePrefix struct + IGPFlags *LsIGPFlags + Opaque *[]byte + SrPrefixSID *uint32 + type LsBgpPeerSegmentSID struct + Flags LsAttributeBgpPeerSegmentSIDFlags + SID uint32 + Weight uint8 + type LsIGPFlags struct + Down bool + LocalAddress bool + NoUnicast bool + PropagateNSSA bool + type LsLinkDescriptor struct + InterfaceAddrIPv4 *net.IP + InterfaceAddrIPv6 *net.IP + LinkLocalID *uint32 + LinkRemoteID *uint32 + NeighborAddrIPv4 *net.IP + NeighborAddrIPv6 *net.IP + func (l *LsLinkDescriptor) ParseTLVs(tlvs []LsTLVInterface) + func (l *LsLinkDescriptor) String() string + type LsLinkNLRI struct + LinkDesc []LsTLVInterface + LocalNodeDesc LsTLVInterface + RemoteNodeDesc LsTLVInterface + func (l *LsLinkNLRI) DecodeFromBytes(data []byte) error + func (l *LsLinkNLRI) MarshalJSON() ([]byte, error) + func (l *LsLinkNLRI) Serialize() ([]byte, error) + func (l *LsLinkNLRI) String() string + type LsNLRI struct + Identifier uint64 + Length uint16 + NLRIType LsNLRIType + ProtocolID LsProtocolID + func (l *LsNLRI) DecodeFromBytes(data []byte) error + func (l *LsNLRI) Len() int + func (l *LsNLRI) Serialize(value []byte) ([]byte, error) + func (l *LsNLRI) Type() LsNLRIType + type LsNLRIInterface interface + DecodeFromBytes func([]byte) error + Len func() int + Serialize func() ([]byte, error) + String func() string + Type func() LsNLRIType + type LsNLRIType uint16 + const LS_NLRI_TYPE_LINK + const LS_NLRI_TYPE_NODE + const LS_NLRI_TYPE_PREFIX_IPV4 + const LS_NLRI_TYPE_PREFIX_IPV6 + const LS_NLRI_TYPE_UNKNOWN + type LsNodeDescriptor struct + Asn uint32 + BGPConfederationMember uint32 + BGPLsID uint32 + BGPRouterID net.IP + IGPRouterID string + OspfAreaID uint32 + PseudoNode bool + func (l *LsNodeDescriptor) String() string + type LsNodeFlags struct + ABR bool + Attached bool + External bool + Overload bool + Router bool + V6 bool + type LsNodeNLRI struct + LocalNodeDesc LsTLVInterface + func (l *LsNodeNLRI) DecodeFromBytes(data []byte) error + func (l *LsNodeNLRI) MarshalJSON() ([]byte, error) + func (l *LsNodeNLRI) Serialize() ([]byte, error) + func (l *LsNodeNLRI) String() string + type LsOspfRouteType uint8 + func (l LsOspfRouteType) String() string + type LsPrefixDescriptor struct + IPReachability []net.IPNet + OSPFRouteType LsOspfRouteType + func (l *LsPrefixDescriptor) ParseTLVs(tlvs []LsTLVInterface, ipv6 bool) + type LsPrefixV4NLRI struct + LocalNodeDesc LsTLVInterface + PrefixDesc []LsTLVInterface + func (l *LsPrefixV4NLRI) DecodeFromBytes(data []byte) error + func (l *LsPrefixV4NLRI) MarshalJSON() ([]byte, error) + func (l *LsPrefixV4NLRI) Serialize() ([]byte, error) + func (l *LsPrefixV4NLRI) String() string + type LsPrefixV6NLRI struct + LocalNodeDesc LsTLVInterface + PrefixDesc []LsTLVInterface + func (l *LsPrefixV6NLRI) DecodeFromBytes(data []byte) error + func (l *LsPrefixV6NLRI) MarshalJSON() ([]byte, error) + func (l *LsPrefixV6NLRI) Serialize() ([]byte, error) + func (l *LsPrefixV6NLRI) String() string + type LsProtocolID uint8 + func (l LsProtocolID) String() string + type LsSrCapabilities struct + IPv4Supported bool + IPv6Supported bool + Ranges []LsSrRange + type LsSrLabelRange struct + FirstLabel LsTLVSIDLabel + Range uint32 + type LsSrLocalBlock struct + Ranges []LsSrRange + type LsSrRange struct + Begin uint32 + End uint32 + type LsTLV struct + Length uint16 + Type LsTLVType + func (l *LsTLV) DecodeFromBytes(data []byte) ([]byte, error) + func (l *LsTLV) Len() int + func (l *LsTLV) Serialize(value []byte) ([]byte, error) + type LsTLVAdjacencySID struct + Flags uint8 + SID uint32 + Weight uint8 + func NewLsTLVAdjacencySID(l *uint32) *LsTLVAdjacencySID + func (l *LsTLVAdjacencySID) DecodeFromBytes(data []byte) error + func (l *LsTLVAdjacencySID) MarshalJSON() ([]byte, error) + func (l *LsTLVAdjacencySID) Serialize() ([]byte, error) + func (l *LsTLVAdjacencySID) String() string + type LsTLVAdminGroup struct + AdminGroup uint32 + func NewLsTLVAdminGroup(l *uint32) *LsTLVAdminGroup + func (l *LsTLVAdminGroup) DecodeFromBytes(data []byte) error + func (l *LsTLVAdminGroup) MarshalJSON() ([]byte, error) + func (l *LsTLVAdminGroup) Serialize() ([]byte, error) + func (l *LsTLVAdminGroup) String() string + type LsTLVAutonomousSystem struct + ASN uint32 + func (l *LsTLVAutonomousSystem) DecodeFromBytes(data []byte) error + func (l *LsTLVAutonomousSystem) MarshalJSON() ([]byte, error) + func (l *LsTLVAutonomousSystem) Serialize() ([]byte, error) + func (l *LsTLVAutonomousSystem) String() string + type LsTLVBgpConfederationMember struct + BgpConfederationMember uint32 + func (l *LsTLVBgpConfederationMember) DecodeFromBytes(data []byte) error + func (l *LsTLVBgpConfederationMember) MarshalJSON() ([]byte, error) + func (l *LsTLVBgpConfederationMember) Serialize() ([]byte, error) + func (l *LsTLVBgpConfederationMember) String() string + type LsTLVBgpLsID struct + BGPLsID uint32 + func (l *LsTLVBgpLsID) DecodeFromBytes(data []byte) error + func (l *LsTLVBgpLsID) MarshalJSON() ([]byte, error) + func (l *LsTLVBgpLsID) Serialize() ([]byte, error) + func (l *LsTLVBgpLsID) String() string + type LsTLVBgpRouterID struct + RouterID net.IP + func (l *LsTLVBgpRouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVBgpRouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVBgpRouterID) Serialize() ([]byte, error) + func (l *LsTLVBgpRouterID) String() string + type LsTLVIGPFlags struct + Flags uint8 + func NewLsTLVIGPFlags(l *LsIGPFlags) *LsTLVIGPFlags + func (l *LsTLVIGPFlags) DecodeFromBytes(data []byte) error + func (l *LsTLVIGPFlags) Extract() *LsIGPFlags + func (l *LsTLVIGPFlags) MarshalJSON() ([]byte, error) + func (l *LsTLVIGPFlags) Serialize() ([]byte, error) + func (l *LsTLVIGPFlags) String() string + type LsTLVIGPMetric struct + Metric uint32 + func NewLsTLVIGPMetric(l *uint32) *LsTLVIGPMetric + func (l *LsTLVIGPMetric) DecodeFromBytes(data []byte) error + func (l *LsTLVIGPMetric) MarshalJSON() ([]byte, error) + func (l *LsTLVIGPMetric) Serialize() ([]byte, error) + func (l *LsTLVIGPMetric) String() string + type LsTLVIPReachability struct + Prefix []byte + PrefixLength uint8 + func (l *LsTLVIPReachability) DecodeFromBytes(data []byte) error + func (l *LsTLVIPReachability) MarshalJSON() ([]byte, error) + func (l *LsTLVIPReachability) Serialize() ([]byte, error) + func (l *LsTLVIPReachability) String() string + func (l *LsTLVIPReachability) ToIPNet(ipv6 bool) net.IPNet + type LsTLVIPv4InterfaceAddr struct + IP net.IP + func (l *LsTLVIPv4InterfaceAddr) DecodeFromBytes(data []byte) error + func (l *LsTLVIPv4InterfaceAddr) MarshalJSON() ([]byte, error) + func (l *LsTLVIPv4InterfaceAddr) Serialize() ([]byte, error) + func (l *LsTLVIPv4InterfaceAddr) String() string + type LsTLVIPv4NeighborAddr struct + IP net.IP + func (l *LsTLVIPv4NeighborAddr) DecodeFromBytes(data []byte) error + func (l *LsTLVIPv4NeighborAddr) MarshalJSON() ([]byte, error) + func (l *LsTLVIPv4NeighborAddr) Serialize() ([]byte, error) + func (l *LsTLVIPv4NeighborAddr) String() string + type LsTLVIPv6InterfaceAddr struct + IP net.IP + func (l *LsTLVIPv6InterfaceAddr) DecodeFromBytes(data []byte) error + func (l *LsTLVIPv6InterfaceAddr) MarshalJSON() ([]byte, error) + func (l *LsTLVIPv6InterfaceAddr) Serialize() ([]byte, error) + func (l *LsTLVIPv6InterfaceAddr) String() string + type LsTLVIPv6NeighborAddr struct + IP net.IP + func (l *LsTLVIPv6NeighborAddr) DecodeFromBytes(data []byte) error + func (l *LsTLVIPv6NeighborAddr) MarshalJSON() ([]byte, error) + func (l *LsTLVIPv6NeighborAddr) Serialize() ([]byte, error) + func (l *LsTLVIPv6NeighborAddr) String() string + type LsTLVIgpRouterID struct + RouterID []byte + func (l *LsTLVIgpRouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVIgpRouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVIgpRouterID) Serialize() ([]byte, error) + func (l *LsTLVIgpRouterID) String() string + type LsTLVInterface interface + DecodeFromBytes func([]byte) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + func NewLsAttributeTLVs(lsAttr *LsAttribute) []LsTLVInterface + func NewLsLinkTLVs(ld *LsLinkDescriptor) []LsTLVInterface + func NewLsPrefixTLVs(pd *LsPrefixDescriptor) []LsTLVInterface + type LsTLVIsisArea struct + Area []byte + func NewLsTLVIsisArea(l *[]byte) *LsTLVIsisArea + func (l *LsTLVIsisArea) DecodeFromBytes(data []byte) error + func (l *LsTLVIsisArea) MarshalJSON() ([]byte, error) + func (l *LsTLVIsisArea) Serialize() ([]byte, error) + func (l *LsTLVIsisArea) String() string + type LsTLVLinkID struct + Local uint32 + Remote uint32 + func (l *LsTLVLinkID) DecodeFromBytes(data []byte) error + func (l *LsTLVLinkID) MarshalJSON() ([]byte, error) + func (l *LsTLVLinkID) Serialize() ([]byte, error) + func (l *LsTLVLinkID) String() string + type LsTLVLinkName struct + Name string + func NewLsTLVLinkName(l *string) *LsTLVLinkName + func (l *LsTLVLinkName) DecodeFromBytes(data []byte) error + func (l *LsTLVLinkName) MarshalJSON() ([]byte, error) + func (l *LsTLVLinkName) Serialize() ([]byte, error) + func (l *LsTLVLinkName) String() string + type LsTLVLocalIPv4RouterID struct + IP net.IP + func NewLsTLVLocalIPv4RouterID(l *net.IP) *LsTLVLocalIPv4RouterID + func (l *LsTLVLocalIPv4RouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVLocalIPv4RouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVLocalIPv4RouterID) Serialize() ([]byte, error) + func (l *LsTLVLocalIPv4RouterID) String() string + type LsTLVLocalIPv6RouterID struct + IP net.IP + func NewLsTLVLocalIPv6RouterID(l *net.IP) *LsTLVLocalIPv6RouterID + func (l *LsTLVLocalIPv6RouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVLocalIPv6RouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVLocalIPv6RouterID) Serialize() ([]byte, error) + func (l *LsTLVLocalIPv6RouterID) String() string + type LsTLVMaxLinkBw struct + Bandwidth float32 + func NewLsTLVMaxLinkBw(l *float32) *LsTLVMaxLinkBw + func (l *LsTLVMaxLinkBw) DecodeFromBytes(data []byte) error + func (l *LsTLVMaxLinkBw) MarshalJSON() ([]byte, error) + func (l *LsTLVMaxLinkBw) Serialize() ([]byte, error) + func (l *LsTLVMaxLinkBw) String() string + type LsTLVMaxReservableLinkBw struct + Bandwidth float32 + func NewLsTLVMaxReservableLinkBw(l *float32) *LsTLVMaxReservableLinkBw + func (l *LsTLVMaxReservableLinkBw) DecodeFromBytes(data []byte) error + func (l *LsTLVMaxReservableLinkBw) MarshalJSON() ([]byte, error) + func (l *LsTLVMaxReservableLinkBw) Serialize() ([]byte, error) + func (l *LsTLVMaxReservableLinkBw) String() string + type LsTLVNodeDescriptor struct + SubTLVs []LsTLVInterface + func NewLsTLVNodeDescriptor(nd *LsNodeDescriptor, tlvType LsTLVType) LsTLVNodeDescriptor + func (l *LsTLVNodeDescriptor) DecodeFromBytes(data []byte) error + func (l *LsTLVNodeDescriptor) Extract() *LsNodeDescriptor + func (l *LsTLVNodeDescriptor) MarshalJSON() ([]byte, error) + func (l *LsTLVNodeDescriptor) Serialize() ([]byte, error) + func (l *LsTLVNodeDescriptor) String() string + type LsTLVNodeFlagBits struct + Flags uint8 + func NewLsTLVNodeFlagbits(l *LsNodeFlags) *LsTLVNodeFlagBits + func (l *LsTLVNodeFlagBits) DecodeFromBytes(data []byte) error + func (l *LsTLVNodeFlagBits) Extract() *LsNodeFlags + func (l *LsTLVNodeFlagBits) MarshalJSON() ([]byte, error) + func (l *LsTLVNodeFlagBits) Serialize() ([]byte, error) + func (l *LsTLVNodeFlagBits) String() string + type LsTLVNodeName struct + Name string + func NewLsTLVNodeName(l *string) *LsTLVNodeName + func (l *LsTLVNodeName) DecodeFromBytes(data []byte) error + func (l *LsTLVNodeName) MarshalJSON() ([]byte, error) + func (l *LsTLVNodeName) Serialize() ([]byte, error) + func (l *LsTLVNodeName) String() string + type LsTLVOpaqueLinkAttr struct + Attr []byte + func NewLsTLVOpaqueLinkAttr(l *[]byte) *LsTLVOpaqueLinkAttr + func (l *LsTLVOpaqueLinkAttr) DecodeFromBytes(data []byte) error + func (l *LsTLVOpaqueLinkAttr) MarshalJSON() ([]byte, error) + func (l *LsTLVOpaqueLinkAttr) Serialize() ([]byte, error) + func (l *LsTLVOpaqueLinkAttr) String() string + type LsTLVOpaqueNodeAttr struct + Attr []byte + func NewLsTLVOpaqueNodeAttr(l *[]byte) *LsTLVOpaqueNodeAttr + func (l *LsTLVOpaqueNodeAttr) DecodeFromBytes(data []byte) error + func (l *LsTLVOpaqueNodeAttr) MarshalJSON() ([]byte, error) + func (l *LsTLVOpaqueNodeAttr) Serialize() ([]byte, error) + func (l *LsTLVOpaqueNodeAttr) String() string + type LsTLVOpaquePrefixAttr struct + Attr []byte + func NewLsTLVOpaquePrefixAttr(l *[]byte) *LsTLVOpaquePrefixAttr + func (l *LsTLVOpaquePrefixAttr) DecodeFromBytes(data []byte) error + func (l *LsTLVOpaquePrefixAttr) MarshalJSON() ([]byte, error) + func (l *LsTLVOpaquePrefixAttr) Serialize() ([]byte, error) + func (l *LsTLVOpaquePrefixAttr) String() string + type LsTLVOspfAreaID struct + AreaID uint32 + func (l *LsTLVOspfAreaID) DecodeFromBytes(data []byte) error + func (l *LsTLVOspfAreaID) MarshalJSON() ([]byte, error) + func (l *LsTLVOspfAreaID) Serialize() ([]byte, error) + func (l *LsTLVOspfAreaID) String() string + type LsTLVOspfRouteType struct + RouteType LsOspfRouteType + func (l *LsTLVOspfRouteType) DecodeFromBytes(data []byte) error + func (l *LsTLVOspfRouteType) MarshalJSON() ([]byte, error) + func (l *LsTLVOspfRouteType) Serialize() ([]byte, error) + func (l *LsTLVOspfRouteType) String() string + type LsTLVPeerAdjacencySID struct + Flags uint8 + SID uint32 + Weight uint8 + func NewLsTLVPeerAdjacencySID(l *LsBgpPeerSegmentSID) *LsTLVPeerAdjacencySID + func (l *LsTLVPeerAdjacencySID) DecodeFromBytes(data []byte) error + func (l *LsTLVPeerAdjacencySID) Extract() *LsBgpPeerSegmentSID + func (l *LsTLVPeerAdjacencySID) MarshalJSON() ([]byte, error) + func (l *LsTLVPeerAdjacencySID) Serialize() ([]byte, error) + func (l *LsTLVPeerAdjacencySID) String() string + type LsTLVPeerNodeSID struct + Flags uint8 + SID uint32 + Weight uint8 + func NewLsTLVPeerNodeSID(l *LsBgpPeerSegmentSID) *LsTLVPeerNodeSID + func (l *LsTLVPeerNodeSID) DecodeFromBytes(data []byte) error + func (l *LsTLVPeerNodeSID) Extract() *LsBgpPeerSegmentSID + func (l *LsTLVPeerNodeSID) MarshalJSON() ([]byte, error) + func (l *LsTLVPeerNodeSID) Serialize() ([]byte, error) + func (l *LsTLVPeerNodeSID) String() string + type LsTLVPeerSetSID struct + Flags uint8 + SID uint32 + Weight uint8 + func NewLsTLVPeerSetSID(l *LsBgpPeerSegmentSID) *LsTLVPeerSetSID + func (l *LsTLVPeerSetSID) DecodeFromBytes(data []byte) error + func (l *LsTLVPeerSetSID) Extract() *LsBgpPeerSegmentSID + func (l *LsTLVPeerSetSID) MarshalJSON() ([]byte, error) + func (l *LsTLVPeerSetSID) Serialize() ([]byte, error) + func (l *LsTLVPeerSetSID) String() string + type LsTLVPrefixSID struct + Algorithm uint8 + Flags uint8 + SID uint32 + func NewLsTLVPrefixSID(l *uint32) *LsTLVPrefixSID + func (l *LsTLVPrefixSID) DecodeFromBytes(data []byte) error + func (l *LsTLVPrefixSID) MarshalJSON() ([]byte, error) + func (l *LsTLVPrefixSID) Serialize() ([]byte, error) + func (l *LsTLVPrefixSID) String() string + type LsTLVRemoteIPv4RouterID struct + IP net.IP + func NewLsTLVRemoteIPv4RouterID(l *net.IP) *LsTLVRemoteIPv4RouterID + func (l *LsTLVRemoteIPv4RouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVRemoteIPv4RouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVRemoteIPv4RouterID) Serialize() ([]byte, error) + func (l *LsTLVRemoteIPv4RouterID) String() string + type LsTLVRemoteIPv6RouterID struct + IP net.IP + func NewLsTLVRemoteIPv6RouterID(l *net.IP) *LsTLVRemoteIPv6RouterID + func (l *LsTLVRemoteIPv6RouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVRemoteIPv6RouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVRemoteIPv6RouterID) Serialize() ([]byte, error) + func (l *LsTLVRemoteIPv6RouterID) String() string + type LsTLVSIDLabel struct + SID uint32 + func (l *LsTLVSIDLabel) DecodeFromBytes(data []byte) error + func (l *LsTLVSIDLabel) MarshalJSON() ([]byte, error) + func (l *LsTLVSIDLabel) Serialize() ([]byte, error) + func (l *LsTLVSIDLabel) String() string + type LsTLVSourceRouterID struct + RouterID []byte + func (l *LsTLVSourceRouterID) DecodeFromBytes(data []byte) error + func (l *LsTLVSourceRouterID) MarshalJSON() ([]byte, error) + func (l *LsTLVSourceRouterID) Serialize() ([]byte, error) + func (l *LsTLVSourceRouterID) String() string + type LsTLVSrAlgorithm struct + Algorithm []byte + func NewLsTLVSrAlgorithm(l *[]byte) *LsTLVSrAlgorithm + func (l *LsTLVSrAlgorithm) DecodeFromBytes(data []byte) error + func (l *LsTLVSrAlgorithm) MarshalJSON() ([]byte, error) + func (l *LsTLVSrAlgorithm) Serialize() ([]byte, error) + func (l *LsTLVSrAlgorithm) String() string + type LsTLVSrCapabilities struct + Flags uint8 + Ranges []LsSrLabelRange + func NewLsTLVSrCapabilities(l *LsSrCapabilities) *LsTLVSrCapabilities + func (l *LsTLVSrCapabilities) DecodeFromBytes(data []byte) error + func (l *LsTLVSrCapabilities) Extract() *LsSrCapabilities + func (l *LsTLVSrCapabilities) MarshalJSON() ([]byte, error) + func (l *LsTLVSrCapabilities) Serialize() ([]byte, error) + func (l *LsTLVSrCapabilities) String() string + type LsTLVSrLocalBlock struct + Flags uint8 + Ranges []LsSrLabelRange + func NewLsTLVSrLocalBlock(l *LsSrLocalBlock) *LsTLVSrLocalBlock + func (l *LsTLVSrLocalBlock) DecodeFromBytes(data []byte) error + func (l *LsTLVSrLocalBlock) Extract() *LsSrLocalBlock + func (l *LsTLVSrLocalBlock) MarshalJSON() ([]byte, error) + func (l *LsTLVSrLocalBlock) Serialize() ([]byte, error) + func (l *LsTLVSrLocalBlock) String() string + type LsTLVSrlg struct + Srlgs []uint32 + func NewLsTLVSrlg(l *[]uint32) *LsTLVSrlg + func (l *LsTLVSrlg) DecodeFromBytes(data []byte) error + func (l *LsTLVSrlg) MarshalJSON() ([]byte, error) + func (l *LsTLVSrlg) Serialize() ([]byte, error) + func (l *LsTLVSrlg) String() string + type LsTLVTEDefaultMetric struct + Metric uint32 + func NewLsTLVTEDefaultMetric(l *uint32) *LsTLVTEDefaultMetric + func (l *LsTLVTEDefaultMetric) DecodeFromBytes(data []byte) error + func (l *LsTLVTEDefaultMetric) MarshalJSON() ([]byte, error) + func (l *LsTLVTEDefaultMetric) Serialize() ([]byte, error) + func (l *LsTLVTEDefaultMetric) String() string + type LsTLVType uint16 + type LsTLVUnreservedBw struct + Bandwidth [8]float32 + func NewLsTLVUnreservedBw(l *[8]float32) *LsTLVUnreservedBw + func (l *LsTLVUnreservedBw) DecodeFromBytes(data []byte) error + func (l *LsTLVUnreservedBw) MarshalJSON() ([]byte, error) + func (l *LsTLVUnreservedBw) Serialize() ([]byte, error) + func (l *LsTLVUnreservedBw) String() string + type MPLSLabelStack struct + Labels []uint32 + func NewMPLSLabelStack(labels ...uint32) *MPLSLabelStack + func ParseMPLSLabelStack(buf string) (*MPLSLabelStack, error) + func (l *MPLSLabelStack) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (l *MPLSLabelStack) Len() int + func (l *MPLSLabelStack) Serialize(options ...*MarshallingOption) ([]byte, error) + func (l *MPLSLabelStack) String() string + type MUPDirectSegmentDiscoveryRoute struct + Address netip.Addr + RD RouteDistinguisherInterface + func (r *MUPDirectSegmentDiscoveryRoute) AFI() uint16 + func (r *MUPDirectSegmentDiscoveryRoute) DecodeFromBytes(data []byte, afi uint16) error + func (r *MUPDirectSegmentDiscoveryRoute) Len() int + func (r *MUPDirectSegmentDiscoveryRoute) MarshalJSON() ([]byte, error) + func (r *MUPDirectSegmentDiscoveryRoute) Serialize() ([]byte, error) + func (r *MUPDirectSegmentDiscoveryRoute) String() string + type MUPExtended struct + SegmentID2 uint16 + SegmentID4 uint32 + SubType ExtendedCommunityAttrSubType + func NewMUPExtended(sid2 uint16, sid4 uint32) *MUPExtended + func (e *MUPExtended) Flat() map[string]string + func (e *MUPExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *MUPExtended) MarshalJSON() ([]byte, error) + func (e *MUPExtended) Serialize() ([]byte, error) + func (e *MUPExtended) String() string + type MUPInterworkSegmentDiscoveryRoute struct + Prefix netip.Prefix + RD RouteDistinguisherInterface + func (r *MUPInterworkSegmentDiscoveryRoute) AFI() uint16 + func (r *MUPInterworkSegmentDiscoveryRoute) DecodeFromBytes(data []byte, afi uint16) error + func (r *MUPInterworkSegmentDiscoveryRoute) Len() int + func (r *MUPInterworkSegmentDiscoveryRoute) MarshalJSON() ([]byte, error) + func (r *MUPInterworkSegmentDiscoveryRoute) Serialize() ([]byte, error) + func (r *MUPInterworkSegmentDiscoveryRoute) String() string + type MUPNLRI struct + Afi uint16 + ArchitectureType uint8 + Length uint8 + RouteType uint16 + RouteTypeData MUPRouteTypeInterface + func NewMUPDirectSegmentDiscoveryRoute(rd RouteDistinguisherInterface, address netip.Addr) *MUPNLRI + func NewMUPInterworkSegmentDiscoveryRoute(rd RouteDistinguisherInterface, prefix netip.Prefix) *MUPNLRI + func NewMUPNLRI(afi uint16, at uint8, rt uint16, data MUPRouteTypeInterface) *MUPNLRI + func NewMUPType1SessionTransformedRoute(rd RouteDistinguisherInterface, prefix netip.Prefix, teid netip.Addr, ...) *MUPNLRI + func NewMUPType2SessionTransformedRoute(rd RouteDistinguisherInterface, eaLen uint8, ea netip.Addr, teid netip.Addr) *MUPNLRI + func (l *MUPNLRI) Flat() map[string]string + func (n *MUPNLRI) AFI() uint16 + func (n *MUPNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *MUPNLRI) Len(options ...*MarshallingOption) int + func (n *MUPNLRI) MarshalJSON() ([]byte, error) + func (n *MUPNLRI) RD() RouteDistinguisherInterface + func (n *MUPNLRI) SAFI() uint8 + func (n *MUPNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *MUPNLRI) String() string + type MUPRouteTypeInterface interface + AFI func() uint16 + DecodeFromBytes func([]byte, uint16) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + type MUPType1SessionTransformedRoute struct + EndpointAddress netip.Addr + EndpointAddressLength uint8 + Prefix netip.Prefix + QFI uint8 + RD RouteDistinguisherInterface + SourceAddress *netip.Addr + SourceAddressLength uint8 + TEID netip.Addr + func (r *MUPType1SessionTransformedRoute) AFI() uint16 + func (r *MUPType1SessionTransformedRoute) DecodeFromBytes(data []byte, afi uint16) error + func (r *MUPType1SessionTransformedRoute) Len() int + func (r *MUPType1SessionTransformedRoute) MarshalJSON() ([]byte, error) + func (r *MUPType1SessionTransformedRoute) Serialize() ([]byte, error) + func (r *MUPType1SessionTransformedRoute) String() string + type MUPType2SessionTransformedRoute struct + EndpointAddress netip.Addr + EndpointAddressLength uint8 + RD RouteDistinguisherInterface + TEID netip.Addr + func (r *MUPType2SessionTransformedRoute) AFI() uint16 + func (r *MUPType2SessionTransformedRoute) DecodeFromBytes(data []byte, afi uint16) error + func (r *MUPType2SessionTransformedRoute) Len() int + func (r *MUPType2SessionTransformedRoute) MarshalJSON() ([]byte, error) + func (r *MUPType2SessionTransformedRoute) Serialize() ([]byte, error) + func (r *MUPType2SessionTransformedRoute) String() string + type MacMobilityExtended struct + IsSticky bool + Sequence uint32 + func NewMacMobilityExtended(seq uint32, isSticky bool) *MacMobilityExtended + func (e *MacMobilityExtended) Flat() map[string]string + func (e *MacMobilityExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *MacMobilityExtended) MarshalJSON() ([]byte, error) + func (e *MacMobilityExtended) Serialize() ([]byte, error) + func (e *MacMobilityExtended) String() string + type MarshallingOption struct + AddPath map[RouteFamily]BGPAddPathMode + Attributes map[BGPAttrType]bool + ImplicitPrefix AddrPrefixInterface + type MessageError struct + Data []byte + ErrorAttribute *PathAttributeInterface + ErrorHandling ErrorHandling + Message string + SubTypeCode uint8 + TypeCode uint8 + func (e *MessageError) Error() string + func (e *MessageError) Stronger(err error) bool + type NotificationErrorCode uint16 + func NewNotificationErrorCode(code, subcode uint8) NotificationErrorCode + func (c NotificationErrorCode) String() string + type OpaqueExtended struct + IsTransitive bool + Value []byte + func NewOpaqueExtended(isTransitive bool, value []byte) *OpaqueExtended + func (e *OpaqueExtended) Flat() map[string]string + func (e *OpaqueExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *OpaqueExtended) MarshalJSON() ([]byte, error) + func (e *OpaqueExtended) Serialize() ([]byte, error) + func (e *OpaqueExtended) String() string + type OpaqueNLRI struct + Key []byte + Length uint16 + Value []byte + func NewOpaqueNLRI(key, value []byte) *OpaqueNLRI + func (l *OpaqueNLRI) Flat() map[string]string + func (n *OpaqueNLRI) AFI() uint16 + func (n *OpaqueNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *OpaqueNLRI) Len(options ...*MarshallingOption) int + func (n *OpaqueNLRI) MarshalJSON() ([]byte, error) + func (n *OpaqueNLRI) SAFI() uint8 + func (n *OpaqueNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *OpaqueNLRI) String() string + type OptionParameterCapability struct + Capability []ParameterCapabilityInterface + ParamLen uint8 + ParamType uint8 + func NewOptionParameterCapability(capability []ParameterCapabilityInterface) *OptionParameterCapability + func (o *OptionParameterCapability) DecodeFromBytes(data []byte) error + func (o *OptionParameterCapability) Serialize() ([]byte, error) + type OptionParameterInterface interface + Serialize func() ([]byte, error) + type OptionParameterUnknown struct + ParamLen uint8 + ParamType uint8 + Value []byte + func (o *OptionParameterUnknown) Serialize() ([]byte, error) + type ParameterCapabilityInterface interface + Code func() BGPCapabilityCode + DecodeFromBytes func([]byte) error + Len func() int + Serialize func() ([]byte, error) + func DecodeCapability(data []byte) (ParameterCapabilityInterface, error) + type PathAttribute struct + Flags BGPAttrFlag + Length uint16 + Type BGPAttrType + func (p *PathAttribute) DecodeFromBytes(data []byte, options ...*MarshallingOption) (value []byte, err error) + func (p *PathAttribute) Flat() map[string]string + func (p *PathAttribute) GetFlags() BGPAttrFlag + func (p *PathAttribute) GetType() BGPAttrType + func (p *PathAttribute) Len(options ...*MarshallingOption) int + func (p *PathAttribute) Serialize(value []byte, options ...*MarshallingOption) ([]byte, error) + type PathAttributeAggregator struct + Value PathAttributeAggregatorParam + func NewPathAttributeAggregator(as interface{}, address string) *PathAttributeAggregator + func (p *PathAttributeAggregator) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAggregator) MarshalJSON() ([]byte, error) + func (p *PathAttributeAggregator) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAggregator) String() string + type PathAttributeAggregatorParam struct + AS uint32 + Address net.IP + Askind reflect.Kind + type PathAttributeAigp struct + Values []AigpTLVInterface + func NewPathAttributeAigp(values []AigpTLVInterface) *PathAttributeAigp + func (p *PathAttributeAigp) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAigp) MarshalJSON() ([]byte, error) + func (p *PathAttributeAigp) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAigp) String() string + type PathAttributeAs4Aggregator struct + Value PathAttributeAggregatorParam + func NewPathAttributeAs4Aggregator(as uint32, address string) *PathAttributeAs4Aggregator + func (p *PathAttributeAs4Aggregator) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAs4Aggregator) MarshalJSON() ([]byte, error) + func (p *PathAttributeAs4Aggregator) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAs4Aggregator) String() string + type PathAttributeAs4Path struct + Value []*As4PathParam + func NewPathAttributeAs4Path(value []*As4PathParam) *PathAttributeAs4Path + func (p *PathAttributeAs4Path) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAs4Path) MarshalJSON() ([]byte, error) + func (p *PathAttributeAs4Path) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAs4Path) String() string + type PathAttributeAsPath struct + Value []AsPathParamInterface + func NewPathAttributeAsPath(value []AsPathParamInterface) *PathAttributeAsPath + func (p *PathAttributeAsPath) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAsPath) MarshalJSON() ([]byte, error) + func (p *PathAttributeAsPath) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAsPath) String() string + type PathAttributeAtomicAggregate struct + func NewPathAttributeAtomicAggregate() *PathAttributeAtomicAggregate + func (p *PathAttributeAtomicAggregate) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeAtomicAggregate) MarshalJSON() ([]byte, error) + func (p *PathAttributeAtomicAggregate) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeAtomicAggregate) String() string + type PathAttributeClusterList struct + Value []net.IP + func NewPathAttributeClusterList(value []string) *PathAttributeClusterList + func (p *PathAttributeClusterList) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeClusterList) MarshalJSON() ([]byte, error) + func (p *PathAttributeClusterList) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeClusterList) String() string + type PathAttributeCommunities struct + Value []uint32 + func NewPathAttributeCommunities(value []uint32) *PathAttributeCommunities + func (p *PathAttributeCommunities) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeCommunities) MarshalJSON() ([]byte, error) + func (p *PathAttributeCommunities) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeCommunities) String() string + type PathAttributeExtendedCommunities struct + Value []ExtendedCommunityInterface + func NewPathAttributeExtendedCommunities(value []ExtendedCommunityInterface) *PathAttributeExtendedCommunities + func (p *PathAttributeExtendedCommunities) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeExtendedCommunities) Flat() map[string]string + func (p *PathAttributeExtendedCommunities) MarshalJSON() ([]byte, error) + func (p *PathAttributeExtendedCommunities) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeExtendedCommunities) String() string + type PathAttributeIP6ExtendedCommunities struct + Value []ExtendedCommunityInterface + func NewPathAttributeIP6ExtendedCommunities(value []ExtendedCommunityInterface) *PathAttributeIP6ExtendedCommunities + func (p *PathAttributeIP6ExtendedCommunities) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeIP6ExtendedCommunities) MarshalJSON() ([]byte, error) + func (p *PathAttributeIP6ExtendedCommunities) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeIP6ExtendedCommunities) String() string + type PathAttributeInterface interface + DecodeFromBytes func([]byte, ...*MarshallingOption) error + Flat func() map[string]string + GetFlags func() BGPAttrFlag + GetType func() BGPAttrType + Len func(...*MarshallingOption) int + MarshalJSON func() ([]byte, error) + Serialize func(...*MarshallingOption) ([]byte, error) + String func() string + func GetPathAttribute(data []byte) (PathAttributeInterface, error) + type PathAttributeLargeCommunities struct + Values []*LargeCommunity + func NewPathAttributeLargeCommunities(values []*LargeCommunity) *PathAttributeLargeCommunities + func (p *PathAttributeLargeCommunities) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeLargeCommunities) MarshalJSON() ([]byte, error) + func (p *PathAttributeLargeCommunities) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeLargeCommunities) String() string + type PathAttributeLocalPref struct + Value uint32 + func NewPathAttributeLocalPref(value uint32) *PathAttributeLocalPref + func (p *PathAttributeLocalPref) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeLocalPref) MarshalJSON() ([]byte, error) + func (p *PathAttributeLocalPref) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeLocalPref) String() string + type PathAttributeLs struct + TLVs []LsTLVInterface + func (p *PathAttributeLs) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeLs) Extract() *LsAttribute + func (p *PathAttributeLs) MarshalJSON() ([]byte, error) + func (p *PathAttributeLs) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeLs) String() string + type PathAttributeMpReachNLRI struct + AFI uint16 + LinkLocalNexthop net.IP + Nexthop net.IP + SAFI uint8 + Value []AddrPrefixInterface + func NewPathAttributeMpReachNLRI(nexthop string, nlri []AddrPrefixInterface) *PathAttributeMpReachNLRI + func (p *PathAttributeMpReachNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeMpReachNLRI) MarshalJSON() ([]byte, error) + func (p *PathAttributeMpReachNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeMpReachNLRI) String() string + type PathAttributeMpUnreachNLRI struct + AFI uint16 + SAFI uint8 + Value []AddrPrefixInterface + func NewPathAttributeMpUnreachNLRI(nlri []AddrPrefixInterface) *PathAttributeMpUnreachNLRI + func (p *PathAttributeMpUnreachNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeMpUnreachNLRI) MarshalJSON() ([]byte, error) + func (p *PathAttributeMpUnreachNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeMpUnreachNLRI) String() string + type PathAttributeMultiExitDisc struct + Value uint32 + func NewPathAttributeMultiExitDisc(value uint32) *PathAttributeMultiExitDisc + func (p *PathAttributeMultiExitDisc) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeMultiExitDisc) MarshalJSON() ([]byte, error) + func (p *PathAttributeMultiExitDisc) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeMultiExitDisc) String() string + type PathAttributeNextHop struct + Value net.IP + func NewPathAttributeNextHop(addr string) *PathAttributeNextHop + func (p *PathAttributeNextHop) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeNextHop) MarshalJSON() ([]byte, error) + func (p *PathAttributeNextHop) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeNextHop) String() string + type PathAttributeOrigin struct + Value uint8 + func NewPathAttributeOrigin(value uint8) *PathAttributeOrigin + func (p *PathAttributeOrigin) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeOrigin) MarshalJSON() ([]byte, error) + func (p *PathAttributeOrigin) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeOrigin) String() string + type PathAttributeOriginatorId struct + Value net.IP + func NewPathAttributeOriginatorId(value string) *PathAttributeOriginatorId + func (p *PathAttributeOriginatorId) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeOriginatorId) MarshalJSON() ([]byte, error) + func (p *PathAttributeOriginatorId) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeOriginatorId) String() string + type PathAttributePmsiTunnel struct + IsLeafInfoRequired bool + Label uint32 + TunnelID PmsiTunnelIDInterface + TunnelType PmsiTunnelType + func NewPathAttributePmsiTunnel(typ PmsiTunnelType, isLeafInfoRequired bool, label uint32, ...) *PathAttributePmsiTunnel + func ParsePmsiTunnel(args []string) (*PathAttributePmsiTunnel, error) + func (p *PathAttributePmsiTunnel) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributePmsiTunnel) MarshalJSON() ([]byte, error) + func (p *PathAttributePmsiTunnel) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributePmsiTunnel) String() string + type PathAttributePrefixSID struct + TLVs []PrefixSIDTLVInterface + func NewPathAttributePrefixSID(values ...PrefixSIDTLVInterface) *PathAttributePrefixSID + func (p *PathAttributePrefixSID) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributePrefixSID) Extract() *PrefixSIDAttribute + func (p *PathAttributePrefixSID) MarshalJSON() ([]byte, error) + func (p *PathAttributePrefixSID) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributePrefixSID) String() string + type PathAttributeTunnelEncap struct + Value []*TunnelEncapTLV + func NewPathAttributeTunnelEncap(value []*TunnelEncapTLV) *PathAttributeTunnelEncap + func (p *PathAttributeTunnelEncap) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeTunnelEncap) MarshalJSON() ([]byte, error) + func (p *PathAttributeTunnelEncap) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeTunnelEncap) String() string + type PathAttributeUnknown struct + Value []byte + func NewPathAttributeUnknown(flags BGPAttrFlag, typ BGPAttrType, value []byte) *PathAttributeUnknown + func (p *PathAttributeUnknown) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (p *PathAttributeUnknown) MarshalJSON() ([]byte, error) + func (p *PathAttributeUnknown) Serialize(options ...*MarshallingOption) ([]byte, error) + func (p *PathAttributeUnknown) String() string + type PmsiTunnelIDInterface interface + Len func() int + Serialize func() ([]byte, error) + String func() string + type PmsiTunnelType uint8 + const PMSI_TUNNEL_TYPE_BIDIR_PIM_TREE + const PMSI_TUNNEL_TYPE_INGRESS_REPL + const PMSI_TUNNEL_TYPE_MLDP_MP2MP + const PMSI_TUNNEL_TYPE_MLDP_P2MP + const PMSI_TUNNEL_TYPE_NO_TUNNEL + const PMSI_TUNNEL_TYPE_PIM_SM_TREE + const PMSI_TUNNEL_TYPE_PIM_SSM_TREE + const PMSI_TUNNEL_TYPE_RSVP_TE_P2MP + func (p PmsiTunnelType) String() string + type PrefixDefault struct + func (p *PrefixDefault) PathIdentifier() uint32 + func (p *PrefixDefault) PathLocalIdentifier() uint32 + func (p *PrefixDefault) SetPathIdentifier(id uint32) + func (p *PrefixDefault) SetPathLocalIdentifier(id uint32) + type PrefixSIDAttribute struct + TLVs []PrefixSIDTLVInterface + type PrefixSIDTLVInterface interface + DecodeFromBytes func([]byte) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + type Protocol int + func (p Protocol) String() string + type RedirectFourOctetAsSpecificExtended struct + func NewRedirectFourOctetAsSpecificExtended(as uint32, localAdmin uint16) *RedirectFourOctetAsSpecificExtended + func (e *RedirectFourOctetAsSpecificExtended) Flat() map[string]string + func (e *RedirectFourOctetAsSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *RedirectFourOctetAsSpecificExtended) MarshalJSON() ([]byte, error) + func (e *RedirectFourOctetAsSpecificExtended) Serialize() ([]byte, error) + func (e *RedirectFourOctetAsSpecificExtended) String() string + type RedirectIPv4AddressSpecificExtended struct + func NewRedirectIPv4AddressSpecificExtended(ipv4 string, localAdmin uint16) *RedirectIPv4AddressSpecificExtended + func (e *RedirectIPv4AddressSpecificExtended) Flat() map[string]string + func (e *RedirectIPv4AddressSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *RedirectIPv4AddressSpecificExtended) MarshalJSON() ([]byte, error) + func (e *RedirectIPv4AddressSpecificExtended) Serialize() ([]byte, error) + func (e *RedirectIPv4AddressSpecificExtended) String() string + type RedirectIPv6AddressSpecificExtended struct + func NewRedirectIPv6AddressSpecificExtended(ipv6 string, localAdmin uint16) *RedirectIPv6AddressSpecificExtended + func (e *RedirectIPv6AddressSpecificExtended) Flat() map[string]string + func (e *RedirectIPv6AddressSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *RedirectIPv6AddressSpecificExtended) MarshalJSON() ([]byte, error) + func (e *RedirectIPv6AddressSpecificExtended) Serialize() ([]byte, error) + func (e *RedirectIPv6AddressSpecificExtended) String() string + type RedirectTwoOctetAsSpecificExtended struct + func NewRedirectTwoOctetAsSpecificExtended(as uint16, localAdmin uint32) *RedirectTwoOctetAsSpecificExtended + func (e *RedirectTwoOctetAsSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *RedirectTwoOctetAsSpecificExtended) MarshalJSON() ([]byte, error) + func (e *RedirectTwoOctetAsSpecificExtended) Serialize() ([]byte, error) + func (e *RedirectTwoOctetAsSpecificExtended) String() string + type RouteDistinguisherFourOctetAS struct + Admin uint32 + Assigned uint16 + func NewRouteDistinguisherFourOctetAS(admin uint32, assigned uint16) *RouteDistinguisherFourOctetAS + func (rd *RouteDistinguisherFourOctetAS) DecodeFromBytes(data []byte) error + func (rd *RouteDistinguisherFourOctetAS) MarshalJSON() ([]byte, error) + func (rd *RouteDistinguisherFourOctetAS) Serialize() ([]byte, error) + func (rd *RouteDistinguisherFourOctetAS) String() string + type RouteDistinguisherIPAddressAS struct + Admin net.IP + Assigned uint16 + func NewRouteDistinguisherIPAddressAS(admin string, assigned uint16) *RouteDistinguisherIPAddressAS + func (rd *RouteDistinguisherIPAddressAS) DecodeFromBytes(data []byte) error + func (rd *RouteDistinguisherIPAddressAS) MarshalJSON() ([]byte, error) + func (rd *RouteDistinguisherIPAddressAS) Serialize() ([]byte, error) + func (rd *RouteDistinguisherIPAddressAS) String() string + type RouteDistinguisherInterface interface + DecodeFromBytes func([]byte) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + func GetRouteDistinguisher(data []byte) RouteDistinguisherInterface + func ParseRouteDistinguisher(rd string) (RouteDistinguisherInterface, error) + func ParseVPNPrefix(prefix string) (RouteDistinguisherInterface, net.IP, *net.IPNet, error) + type RouteDistinguisherTwoOctetAS struct + Admin uint16 + Assigned uint32 + func NewRouteDistinguisherTwoOctetAS(admin uint16, assigned uint32) *RouteDistinguisherTwoOctetAS + func (rd *RouteDistinguisherTwoOctetAS) DecodeFromBytes(data []byte) error + func (rd *RouteDistinguisherTwoOctetAS) MarshalJSON() ([]byte, error) + func (rd *RouteDistinguisherTwoOctetAS) Serialize() ([]byte, error) + func (rd *RouteDistinguisherTwoOctetAS) String() string + type RouteDistinguisherUnknown struct + Value []byte + func (rd *RouteDistinguisherUnknown) DecodeFromBytes(data []byte) error + func (rd *RouteDistinguisherUnknown) MarshalJSON() ([]byte, error) + func (rd *RouteDistinguisherUnknown) Serialize() ([]byte, error) + func (rd *RouteDistinguisherUnknown) String() string + type RouteFamily int + const RF_EVPN + const RF_FS_IPv4_UC + const RF_FS_IPv4_VPN + const RF_FS_IPv6_UC + const RF_FS_IPv6_VPN + const RF_FS_L2_VPN + const RF_IPv4_ENCAP + const RF_IPv4_MC + const RF_IPv4_MPLS + const RF_IPv4_UC + const RF_IPv4_VPN + const RF_IPv4_VPN_MC + const RF_IPv6_ENCAP + const RF_IPv6_MC + const RF_IPv6_MPLS + const RF_IPv6_UC + const RF_IPv6_VPN + const RF_IPv6_VPN_MC + const RF_LS + const RF_MUP_IPv4 + const RF_MUP_IPv6 + const RF_OPAQUE + const RF_RTC_UC + const RF_SR_POLICY_IPv4 + const RF_SR_POLICY_IPv6 + const RF_VPLS + func AfiSafiToRouteFamily(afi uint16, safi uint8) RouteFamily + func GetRouteFamily(name string) (RouteFamily, error) + func (f RouteFamily) String() string + type RouteTargetMembershipNLRI struct + AS uint32 + Length uint8 + RouteTarget ExtendedCommunityInterface + func NewRouteTargetMembershipNLRI(as uint32, target ExtendedCommunityInterface) *RouteTargetMembershipNLRI + func (l *RouteTargetMembershipNLRI) Flat() map[string]string + func (n *RouteTargetMembershipNLRI) AFI() uint16 + func (n *RouteTargetMembershipNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *RouteTargetMembershipNLRI) Len(options ...*MarshallingOption) int + func (n *RouteTargetMembershipNLRI) MarshalJSON() ([]byte, error) + func (n *RouteTargetMembershipNLRI) SAFI() uint8 + func (n *RouteTargetMembershipNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *RouteTargetMembershipNLRI) String() string + type RouterMacExtended struct + Mac net.HardwareAddr + func NewRoutersMacExtended(mac string) *RouterMacExtended + func (e *RouterMacExtended) Flat() map[string]string + func (e *RouterMacExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *RouterMacExtended) MarshalJSON() ([]byte, error) + func (e *RouterMacExtended) Serialize() ([]byte, error) + func (e *RouterMacExtended) String() string + type SRBehavior int32 + const END + const ENDM_GTP4E + const ENDM_GTP6D + const ENDM_GTP6DI + const ENDM_GTP6E + const ENDT + const ENDT_WITH_PSP + const ENDT_WITH_PSP_USD + const ENDT_WITH_PSP_USP + const ENDT_WITH_PSP_USP_USD + const ENDT_WITH_USD + const ENDT_WITH_USP + const ENDT_WITH_USP_USD + const ENDX + const ENDX_WITH_PSP + const ENDX_WITH_PSP_USD + const ENDX_WITH_PSP_USP + const ENDX_WITH_PSP_USP_USD + const ENDX_WITH_USD + const ENDX_WITH_USP + const ENDX_WITH_USP_USD + const END_B6_ENCAPS + const END_B6_ENCAPS_Red + const END_BM + const END_DT2M + const END_DT2U + const END_DT4 + const END_DT46 + const END_DT6 + const END_DX2 + const END_DX2V + const END_DX4 + const END_DX6 + const END_WITH_PSP + const END_WITH_PSP_USD + const END_WITH_PSP_USP + const END_WITH_PSP_USP_USD + const END_WITH_USD + const END_WITH_USP + const END_WITH_USP_USD + const RESERVED + func (i SRBehavior) String() string + type SRENLPValue uint8 + const ENLPType1 + const ENLPType2 + const ENLPType3 + const ENLPType4 + type SRPolicyIPv4 struct + func NewSRPolicyIPv4(l uint32, d uint32, c uint32, ep []byte) *SRPolicyIPv4 + func (s *SRPolicyIPv4) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type SRPolicyIPv6 struct + func NewSRPolicyIPv6(l uint32, d uint32, c uint32, ep []byte) *SRPolicyIPv6 + func (s *SRPolicyIPv6) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + type SRPolicyNLRI struct + Color uint32 + Distinguisher uint32 + Endpoint []byte + Length uint8 + func (s *SRPolicyNLRI) AFI() uint16 + func (s *SRPolicyNLRI) Flat() map[string]string + func (s *SRPolicyNLRI) Len(options ...*MarshallingOption) int + func (s *SRPolicyNLRI) MarshalJSON() ([]byte, error) + func (s *SRPolicyNLRI) SAFI() uint8 + func (s *SRPolicyNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (s *SRPolicyNLRI) String() string + type SRv6EndpointBehaviorStructure struct + ArgLen uint8 + Behavior SRBehavior + BlockLen uint8 + FuncLen uint8 + NodeLen uint8 + func (s *SRv6EndpointBehaviorStructure) DecodeFromBytes(data []byte) error + func (s *SRv6EndpointBehaviorStructure) MarshalJSON() ([]byte, error) + func (s *SRv6EndpointBehaviorStructure) Serialize() ([]byte, error) + func (s *SRv6EndpointBehaviorStructure) String() string + type SRv6InformationSTLV struct + EndpointBehavior uint16 + Flags uint8 + SID []byte + SubSubTLVs []PrefixSIDTLVInterface + type SRv6InformationSubTLV struct + EndpointBehavior uint16 + Flags uint8 + SID []byte + SubSubTLVs []PrefixSIDTLVInterface + func NewSRv6InformationSubTLV(sid netip.Addr, behavior SRBehavior, values ...PrefixSIDTLVInterface) *SRv6InformationSubTLV + func (s *SRv6InformationSubTLV) DecodeFromBytes(data []byte) error + func (s *SRv6InformationSubTLV) Extract() *SRv6InformationSTLV + func (s *SRv6InformationSubTLV) Len() int + func (s *SRv6InformationSubTLV) MarshalJSON() ([]byte, error) + func (s *SRv6InformationSubTLV) Serialize() ([]byte, error) + func (s *SRv6InformationSubTLV) String() string + type SRv6L3Service struct + SubTLVs []PrefixSIDTLVInterface + type SRv6L3ServiceAttribute struct + SubTLVs []PrefixSIDTLVInterface + func (s *SRv6L3ServiceAttribute) DecodeFromBytes(data []byte) error + func (s *SRv6L3ServiceAttribute) Extract() *SRv6L3Service + func (s *SRv6L3ServiceAttribute) Len() int + func (s *SRv6L3ServiceAttribute) MarshalJSON() ([]byte, error) + func (s *SRv6L3ServiceAttribute) Serialize() ([]byte, error) + func (s *SRv6L3ServiceAttribute) String() string + type SRv6SIDStructureSubSubTLV struct + ArgumentLength uint8 + FunctionLength uint8 + LocatorBlockLength uint8 + LocatorNodeLength uint8 + TranspositionLength uint8 + TranspositionOffset uint8 + func NewSRv6SIDStructureSubSubTLV(lbl, lnl, fl, al, tl, to uint8) *SRv6SIDStructureSubSubTLV + func (s *SRv6SIDStructureSubSubTLV) DecodeFromBytes(data []byte) error + func (s *SRv6SIDStructureSubSubTLV) Len() int + func (s *SRv6SIDStructureSubSubTLV) MarshalJSON() ([]byte, error) + func (s *SRv6SIDStructureSubSubTLV) Serialize() ([]byte, error) + func (s *SRv6SIDStructureSubSubTLV) String() string + type SRv6ServiceTLV struct + SubTLVs []PrefixSIDTLVInterface + func NewSRv6ServiceTLV(t TLVType, values ...PrefixSIDTLVInterface) *SRv6ServiceTLV + func (s *SRv6ServiceTLV) DecodeFromBytes(data []byte) error + func (s *SRv6ServiceTLV) Len() int + func (t *SRv6ServiceTLV) MarshalJSON() ([]byte, error) + func (t *SRv6ServiceTLV) Serialize() ([]byte, error) + func (t *SRv6ServiceTLV) String() string + type SegmentListWeight struct + Flags uint8 + Weight uint32 + func (s *SegmentListWeight) DecodeFromBytes(data []byte) error + func (s *SegmentListWeight) MarshalJSON() ([]byte, error) + func (s *SegmentListWeight) Serialize() ([]byte, error) + func (s *SegmentListWeight) String() string + type SegmentType int + const TypeA + const TypeB + const TypeC + const TypeD + const TypeE + const TypeF + const TypeG + const TypeH + const TypeI + const TypeJ + const TypeK + type SegmentTypeA struct + Flags uint8 + Label uint32 + func (s *SegmentTypeA) DecodeFromBytes(data []byte) error + func (s *SegmentTypeA) MarshalJSON() ([]byte, error) + func (s *SegmentTypeA) Serialize() ([]byte, error) + func (s *SegmentTypeA) String() string + type SegmentTypeB struct + Flags uint8 + SID []byte + SRv6EBS *SRv6EndpointBehaviorStructure + func (s *SegmentTypeB) DecodeFromBytes(data []byte) error + func (s *SegmentTypeB) MarshalJSON() ([]byte, error) + func (s *SegmentTypeB) Serialize() ([]byte, error) + func (s *SegmentTypeB) String() string + type SubSubTLV struct + Length uint16 + Type SubSubTLVType + func (s *SubSubTLV) DecodeFromBytes(data []byte) ([]byte, error) + func (s *SubSubTLV) Len() int + func (s *SubSubTLV) Serialize(value []byte) ([]byte, error) + type SubSubTLVType uint8 + type SubTLV struct + Length uint16 + Type SubTLVType + func (s *SubTLV) DecodeFromBytes(data []byte) ([]byte, error) + func (s *SubTLV) Len() int + func (s *SubTLV) Serialize(value []byte) ([]byte, error) + type SubTLVType uint8 + type TCPFlag int + func (f TCPFlag) String() string + type TLV struct + Length uint16 + Type TLVType + func (t *TLV) DecodeFromBytes(data []byte) ([]byte, error) + func (t *TLV) Len() int + func (t *TLV) Serialize(value []byte) ([]byte, error) + type TLVType uint8 + const TLVTypeLavelIndex + const TLVTypeOriginatorSRGB + const TLVTypeSRv6L2Service + const TLVTypeSRv6L3Service + type TrafficActionExtended struct + Sample bool + Terminal bool + func NewTrafficActionExtended(terminal bool, sample bool) *TrafficActionExtended + func (e *TrafficActionExtended) Flat() map[string]string + func (e *TrafficActionExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *TrafficActionExtended) MarshalJSON() ([]byte, error) + func (e *TrafficActionExtended) Serialize() ([]byte, error) + func (e *TrafficActionExtended) String() string + type TrafficRateExtended struct + AS uint16 + Rate float32 + func NewTrafficRateExtended(as uint16, rate float32) *TrafficRateExtended + func (e *TrafficRateExtended) Flat() map[string]string + func (e *TrafficRateExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *TrafficRateExtended) MarshalJSON() ([]byte, error) + func (e *TrafficRateExtended) Serialize() ([]byte, error) + func (e *TrafficRateExtended) String() string + type TrafficRemarkExtended struct + DSCP uint8 + func NewTrafficRemarkExtended(dscp uint8) *TrafficRemarkExtended + func (e *TrafficRemarkExtended) Flat() map[string]string + func (e *TrafficRemarkExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *TrafficRemarkExtended) MarshalJSON() ([]byte, error) + func (e *TrafficRemarkExtended) Serialize() ([]byte, error) + func (e *TrafficRemarkExtended) String() string + type TunnelEncapSubTLV struct + Length uint16 + Type EncapSubTLVType + func (t *TunnelEncapSubTLV) DecodeFromBytes(data []byte) (value []byte, err error) + func (t *TunnelEncapSubTLV) Len() int + func (t *TunnelEncapSubTLV) Serialize(value []byte) (buf []byte, err error) + type TunnelEncapSubTLVColor struct + Color uint32 + func NewTunnelEncapSubTLVColor(color uint32) *TunnelEncapSubTLVColor + func (t *TunnelEncapSubTLVColor) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVColor) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVColor) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVColor) String() string + type TunnelEncapSubTLVEgressEndpoint struct + Address net.IP + func NewTunnelEncapSubTLVEgressEndpoint(address string) *TunnelEncapSubTLVEgressEndpoint + func (t *TunnelEncapSubTLVEgressEndpoint) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVEgressEndpoint) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVEgressEndpoint) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVEgressEndpoint) String() string + type TunnelEncapSubTLVEncapsulation struct + Cookie []byte + Key uint32 + func NewTunnelEncapSubTLVEncapsulation(key uint32, cookie []byte) *TunnelEncapSubTLVEncapsulation + func (t *TunnelEncapSubTLVEncapsulation) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVEncapsulation) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVEncapsulation) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVEncapsulation) String() string + type TunnelEncapSubTLVInterface interface + DecodeFromBytes func([]byte) error + Len func() int + MarshalJSON func() ([]byte, error) + Serialize func() ([]byte, error) + String func() string + type TunnelEncapSubTLVProtocol struct + Protocol uint16 + func NewTunnelEncapSubTLVProtocol(protocol uint16) *TunnelEncapSubTLVProtocol + func (t *TunnelEncapSubTLVProtocol) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVProtocol) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVProtocol) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVProtocol) String() string + type TunnelEncapSubTLVSRBSID struct + BSID *BSID + Flags uint8 + func (t *TunnelEncapSubTLVSRBSID) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRBSID) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRBSID) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRBSID) String() string + type TunnelEncapSubTLVSRCandidatePathName struct + CandidatePathName string + func NewTunnelEncapSubTLVSRCandidatePathName(cpn string) *TunnelEncapSubTLVSRCandidatePathName + func (t *TunnelEncapSubTLVSRCandidatePathName) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRCandidatePathName) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRCandidatePathName) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRCandidatePathName) String() string + type TunnelEncapSubTLVSRENLP struct + ENLP SRENLPValue + Flags uint8 + func NewTunnelEncapSubTLVSRENLP(flags uint32, enlp SRENLPValue) *TunnelEncapSubTLVSRENLP + func (t *TunnelEncapSubTLVSRENLP) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRENLP) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRENLP) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRENLP) String() string + type TunnelEncapSubTLVSRPreference struct + Flags uint8 + Preference uint32 + func NewTunnelEncapSubTLVSRPreference(flags uint32, preference uint32) *TunnelEncapSubTLVSRPreference + func (t *TunnelEncapSubTLVSRPreference) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRPreference) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRPreference) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRPreference) String() string + type TunnelEncapSubTLVSRPriority struct + Priority uint8 + func NewTunnelEncapSubTLVSRPriority(priority uint8) *TunnelEncapSubTLVSRPriority + func (t *TunnelEncapSubTLVSRPriority) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRPriority) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRPriority) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRPriority) String() string + type TunnelEncapSubTLVSRSegmentList struct + Segments []TunnelEncapSubTLVInterface + Weight *SegmentListWeight + func (t *TunnelEncapSubTLVSRSegmentList) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRSegmentList) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRSegmentList) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRSegmentList) String() string + type TunnelEncapSubTLVSRv6BSID struct + BSID *BSID + EPBAS *SRv6EndpointBehaviorStructure + Flags uint8 + func (t *TunnelEncapSubTLVSRv6BSID) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVSRv6BSID) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVSRv6BSID) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVSRv6BSID) String() string + type TunnelEncapSubTLVUDPDestPort struct + UDPDestPort uint16 + func NewTunnelEncapSubTLVUDPDestPort(port uint16) *TunnelEncapSubTLVUDPDestPort + func (t *TunnelEncapSubTLVUDPDestPort) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVUDPDestPort) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVUDPDestPort) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVUDPDestPort) String() string + type TunnelEncapSubTLVUnknown struct + Value []byte + func NewTunnelEncapSubTLVUnknown(typ EncapSubTLVType, value []byte) *TunnelEncapSubTLVUnknown + func (t *TunnelEncapSubTLVUnknown) DecodeFromBytes(data []byte) error + func (t *TunnelEncapSubTLVUnknown) MarshalJSON() ([]byte, error) + func (t *TunnelEncapSubTLVUnknown) Serialize() ([]byte, error) + func (t *TunnelEncapSubTLVUnknown) String() string + type TunnelEncapTLV struct + Length uint16 + Type TunnelType + Value []TunnelEncapSubTLVInterface + func NewTunnelEncapTLV(typ TunnelType, value []TunnelEncapSubTLVInterface) *TunnelEncapTLV + func (p *TunnelEncapTLV) MarshalJSON() ([]byte, error) + func (p *TunnelEncapTLV) Serialize() ([]byte, error) + func (p *TunnelEncapTLV) String() string + func (t *TunnelEncapTLV) DecodeFromBytes(data []byte) error + func (t *TunnelEncapTLV) Len() int + type TunnelType uint16 + const TUNNEL_TYPE_GENEVE + const TUNNEL_TYPE_GRE + const TUNNEL_TYPE_IP_IN_IP + const TUNNEL_TYPE_L2TP3 + const TUNNEL_TYPE_MPLS + const TUNNEL_TYPE_MPLS_IN_GRE + const TUNNEL_TYPE_MPLS_IN_UDP + const TUNNEL_TYPE_NVGRE + const TUNNEL_TYPE_SR_POLICY + const TUNNEL_TYPE_VXLAN + const TUNNEL_TYPE_VXLAN_GRE + func (p TunnelType) String() string + type TwoOctetAsSpecificExtended struct + AS uint16 + IsTransitive bool + LocalAdmin uint32 + SubType ExtendedCommunityAttrSubType + func NewTwoOctetAsSpecificExtended(subtype ExtendedCommunityAttrSubType, as uint16, localAdmin uint32, ...) *TwoOctetAsSpecificExtended + func (e *TwoOctetAsSpecificExtended) Flat() map[string]string + func (e *TwoOctetAsSpecificExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *TwoOctetAsSpecificExtended) MarshalJSON() ([]byte, error) + func (e *TwoOctetAsSpecificExtended) Serialize() ([]byte, error) + func (e *TwoOctetAsSpecificExtended) String() string + type UnknownExtended struct + Type ExtendedCommunityAttrType + Value []byte + func NewUnknownExtended(typ ExtendedCommunityAttrType, value []byte) *UnknownExtended + func (e *UnknownExtended) Flat() map[string]string + func (e *UnknownExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *UnknownExtended) MarshalJSON() ([]byte, error) + func (e *UnknownExtended) Serialize() ([]byte, error) + func (e *UnknownExtended) String() string + type VPLSExtended struct + ControlFlags uint8 + MTU uint16 + SubType ExtendedCommunityAttrSubType + func NewVPLSExtended(flags uint8, mtu uint16) *VPLSExtended + func (e *VPLSExtended) Flat() map[string]string + func (e *VPLSExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *VPLSExtended) MarshalJSON() ([]byte, error) + func (e *VPLSExtended) Serialize() ([]byte, error) + func (e *VPLSExtended) String() string + type VPLSNLRI struct + LabelBlockBase uint32 + VEBlockOffset uint16 + VEBlockSize uint16 + VEID uint16 + func NewVPLSNLRI(rd RouteDistinguisherInterface, id uint16, blockOffset uint16, ...) *VPLSNLRI + func (l *VPLSNLRI) Flat() map[string]string + func (n *VPLSNLRI) AFI() uint16 + func (n *VPLSNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error + func (n *VPLSNLRI) Len(options ...*MarshallingOption) int + func (n *VPLSNLRI) MarshalJSON() ([]byte, error) + func (n *VPLSNLRI) RD() RouteDistinguisherInterface + func (n *VPLSNLRI) SAFI() uint8 + func (n *VPLSNLRI) Serialize(options ...*MarshallingOption) ([]byte, error) + func (n *VPLSNLRI) String() string + type ValidationExtended struct + State ValidationState + func NewValidationExtended(state ValidationState) *ValidationExtended + func (e *ValidationExtended) Flat() map[string]string + func (e *ValidationExtended) GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType) + func (e *ValidationExtended) MarshalJSON() ([]byte, error) + func (e *ValidationExtended) Serialize() ([]byte, error) + func (e *ValidationExtended) String() string + type ValidationState uint8 + const VALIDATION_STATE_INVALID + const VALIDATION_STATE_NOT_FOUND + const VALIDATION_STATE_VALID + func (s ValidationState) String() string + type WellKnownCommunity uint32 + const COMMUNITY_ACCEPT_OWN + const COMMUNITY_BLACKHOLE + const COMMUNITY_INTERNET + const COMMUNITY_LLGR_STALE + const COMMUNITY_NO_ADVERTISE + const COMMUNITY_NO_EXPORT + const COMMUNITY_NO_EXPORT_SUBCONFED + const COMMUNITY_NO_LLGR + const COMMUNITY_NO_PEER + const COMMUNITY_PLANNED_SHUT + const COMMUNITY_ROUTE_FILTER_TRANSLATED_v4 + const COMMUNITY_ROUTE_FILTER_TRANSLATED_v6 + const COMMUNITY_ROUTE_FILTER_v4 + const COMMUNITY_ROUTE_FILTER_v6