summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet/bgp
AgeCommit message (Collapse)Author
2021-03-19Add GENEVE encapsulation supportRavi Aysola
2021-03-14add support for tunnel egress endpoint sub-TLVMikael Magnusson
As specified in draft-ietf-idr-tunnel-encaps-22. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2021-03-01Fix LsTLVIgpRouterID.DecodeFromBytesKirill Smorodinnikov
According to https://tools.ietf.org/html/rfc7752#section-3.2.1.4, IGPRouterID could be 4-octet for OSPFv2 or OSPFv3 non-pseudonode.
2021-02-27Extend LsLinkDescriptor.StringKirill Smorodinnikov
Cover additional cases when only one part of the link is presented.
2021-01-27go fmtedSergey Elantsev
2021-01-23fixed panics on parsing malicious bgp packetsSergey Elantsev
2021-01-23support UDP destination port sub-TLVMikael Magnusson
As specified in draft-ietf-idr-tunnel-encaps. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2021-01-20packet/bgp: Fix TunnelEncapSubTLV.DecodeFromBytesMikael Magnusson
Return data of the correct length from TunnelEncapSubTLV.DecodeFromBytes. This fixes a problem with TunnelEncapSubTLVUnknown which caused it to contain more bytes in its Value unless it was the last SubTLV. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2020-12-20fixed mistypeSergey Elantsev
2020-12-20fixed possible crashes on parsing of bgp messagesSergey Elantsev
2020-12-14change commentsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-12-09interop fixSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-30Unit tests and dependenciesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-30Code changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-25code changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-10-21packet: handle malformed prefix lenFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-07-13implement LsAddrPrefix marshal json functionJieJhih Jhang
2020-06-24Add //go:generate stringer directives for public enum types.Dmitri Nikulin
All such directives can be invoked by running $ go generate Stringer itself can be obtained by running $ go get golang.org/x/tools/cmd/stringer See https://github.com/osrg/gobgp/issues/2265
2020-06-24Regenerate stringer code for public enum types.Dmitri Nikulin
This adds support for several values which were added to enums without corresponding changes to the stringer generated code. New versions of stringer, including the one used for this change, add compile-time checks for whether any existing enum values have changed. Adding new values does not violate this check. Resolves https://github.com/osrg/gobgp/issues/2265
2020-05-13extend attributes proto for Prefix SID supportSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07address more static check failuresSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07Addressing review commentsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07remove debug messagesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07Finish methods and restructure filesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-06code Decode and Serialize for Prefix SID types and add unit testsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-06add unit test to help with developmentSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05add object definitionsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05additional changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05coding the featureSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-04adding prefix_sid_attrSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-04-24Add BGP-LS SRLG supportTom Shine
2020-03-15replaced fmt.Sprintf with strconv.Itoa for Protocol.String()Sergey Elantsev
2020-03-15optimized allocations in packet/bgp validationsSergey Elantsev
2020-03-14optimized allocations in packet/bgpSergey Elantsev
2020-03-09optimized EVPNMacIPAdvertisementRoute, SerializeExtendedCommunities and ↵Sergey Elantsev
PathAttributeIP6ExtendedCommunities allocations.
2020-03-02bgp: silence statickcheck errorsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-07-26pkg/packet/bgp: fix PathAttributeAs4Path to accept empty AS_PATHFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-04-11cmd/gobgp: Parse evpn IPMSI parameterJieJhih Jhang
2019-03-26Implement evpn I-PMSIJieJhih Jhang
2019-03-21pkg/packet/bgp: avoid crash when receiving an update with invalid AS_PATH lenEiichiro Watanabe
2019-03-21pkg/packt/bgp: add test when receiving an update with invalid AS_PATH LengthEiichiro Watanabe
2019-03-16Fixed typoszabio3
2019-01-26Add experimental BGP-LS featureArtur Makutunowicz
2019-01-09silence staticcheck warningsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2018-11-16packet: fix ValidateAttribute() to handle ipv6 addresssFUJITA Tomonori
fixes #1893 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16packet: fix NewPathAttributeNextHop() to handle ipv6 addresssFUJITA Tomonori
PathAttributeNextHop struct can handle ipv6 address but NewPathAttributeNextHop() can't. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-17pkg/packet/bgp: Fix NewEVPNMacIPAdvertisementRoute() to use correct MAC lengthYichen Wang
2018-07-24pkg/packet/bgp: fix ParsePmsiTunnel() and NewPathAttributePmsiTunnel() crashFUJITA Tomonori
Once we create an object, we should not mutate it. This fixes the following in a different way. https://github.com/osrg/gobgp/pull/1778 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-07follow Standard Go Project LayoutFUJITA Tomonori
https://github.com/golang-standards/project-layout Now you can see clearly what are private and public library code. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>