summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet
AgeCommit message (Collapse)Author
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-31packet: fix typosFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-03-30packet: silence staticcheck warningFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-03-29fixed naming issue, removed one more error allocationSergey Elantsev
2020-03-29optimized packet/mrt allocations, mostly by reuse of error valuesSergey Elantsev
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>
2020-01-13Parse BMP Stats Report messages with unknown Stat TypesMichael Lechner
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-10-30server: unexport constFUJITA Tomonori
No need to export 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>