summaryrefslogtreecommitdiffhomepage
path: root/packet
AgeCommit message (Collapse)Author
2015-12-31packet: fix missing valueEiichiro Watanabe
2015-12-22packet: fix insufficient length checkISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-12-15api: refactor afisafi apiISHIDA Wataru
remove unused fields Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-12-09packet: add test examples for RTRErrorReportEiichiro Watanabe
2015-12-09packet: add constructor for RTRErrorReportEiichiro Watanabe
2015-12-09packet: define new constants in RTREiichiro Watanabe
2015-12-09packet: fix wrong assignment for Text field of RTRErrorReportEiichiro Watanabe
2015-12-09packet: fix incorrect fieldEiichiro Watanabe
* RFC6810 says that the 3rd field of RTRErrorReport is Error Code, not Session ID.
2015-12-09packet: add test examples for rtrEiichiro Watanabe
2015-12-09packet: remove verbose methodEiichiro Watanabe
2015-12-09packet: add constructors for RTR PDUsEiichiro Watanabe
* Except Error Report PDU
2015-12-09packet: remove SessionID field from RTRIPPrefixEiichiro Watanabe
* Session ID field is not defined in IPvxPrefix PDUs in RFC6810
2015-12-07packet: fix Version and Type are reversedEiichiro Watanabe
2015-11-25bmp: export flags member in BMPPeerHeaderFUJITA Tomonori
Should be exported like other members. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-24packet: fix extended community parsingISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-11-19bmp: use BMP_VERSIONFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-19bmp: fix ParseBMPMessage to handle failure of parsing headerFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-18fix IPv4-mapped addresss handlingFUJITA Tomonori
net.IP handles IPv4-mapped addresss as ipv4 so leads to the following crash: gobgpd[857]: /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5 gobgpd[857]: github.com/osrg/gobgp/table.CidrToRadixkey(0xc2080ffec0, 0xa, 0x0, 0x0) gobgpd[857]: /usr/local/opt/go/src/github.com/osrg/gobgp/table/destination.go:63 +0xb2 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-13packet: add String() to PathAttributeAsPath and PathAttributeAs4PathISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-11-13bmp: use on-wire original update dataFUJITA Tomonori
bgpd parse on-wire original update data to construct BGPMessage object and serialize it. Sometimes the both data is not idential. For example, the original data sets the extended length for attribute even if the length is less than 256. This commit fixes the above issue. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-13mrt: use on-wire original update data for mrtFUJITA Tomonori
bgpd parse on-wire original update data to construct BGPMessage object and serialize it. Sometimes the both data is not idential. For example, the original data sets the extended length for attribute even if the length is less than 256. This commit fixes the above issue. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-11-13packet: fix PathAttributeMpReachNLRI's Serialize()FUJITA Tomonori
Properly serializes LinkLocalNexthop. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-10-21packet: use %v instead of %sEiichiro Watanabe
2015-10-21*: fix wrong types of print verbsEiichiro Watanabe
2015-10-20policy: clean upISHIDA Wataru
remove redundant api structures and shorten valiable names re-implement *ToApiStruct functions as a method of each structures Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-20packet: define map for well known communitiesISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-16packet: remove redundancyHiroshi Yokoi
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
2015-10-16packet: avoid overflowHiroshi Yokoi
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
2015-10-14*: fix Errorf call with missing format verbsEiichiro Watanabe
2015-10-14packet: fix incompatible struct field tagsEiichiro Watanabe
2015-10-09packet: add aigp path attribute serializer/decoderISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-08cli: enable to flag match/not for tcp-flag when adding flowspec pathISHIDA Wataru
$ gobgp global rib -a ipv4-flowspec add match tcp-flags not match rst then accept Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-08packet: validate flowspec port and dscp value in parserISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-08packet: support cisco-ish flowspec tcp-flag serializingISHIDA Wataru
// same as juniper matching ack+syn $ gobgp global rib -a ipv4-flowspec match tcp-flags ack syn then discard // [NEW] same as cisco matching ack+syn $ gobgp global rib -a ipv4-flowspec match tcp-flags 'ack&syn' then discard Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-22cli: show mpls label in vrf rib viewISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-22packet: add missing MarshalJSON() to VPN nlrisISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-16packet: support draft-ietf-idr-flow-spec-v6-06ISHIDA Wataru
you can add ipv6 flowspec routes like below $ gobgp global rib add match destination 2001::/64 10 label '=200' then discard -a ipv6-flowspec $ gobgp global rib -a ipv6-flowspec Network Next Hop AS_PATH Age Attrs *> [destination:2001::/64/10][label: =200] fictitious 00:00:23 [{Origin: i} {Extcomms: [discard]}] scenario_test is also added Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-14packet: add SplitBMP helper functionFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-09-13Add bmp supportFUJITA Tomonori
Can be enabled like: [Global] [Global.GlobalConfig] As = 64512 RouterId = "10.0.255.254" [BmpServers] [[BmpServers.BmpServerList]] [BmpServers.BmpServerList.BmpServerConfig] Address = "127.0.0.1" Port=11019 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-09-13packet: add bmp serialize supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-09-11packet: separate bmp stuff from bgp.goFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-09-11packet: bug fix of flowspec numeric parserISHIDA Wataru
handle failure of regexp matching also add support of the syntax below // added syntax $ gobgp rib add -a ipv4-flowspec match port 8080 then discard // original syntax (still supported) $ gobgp rib add -a ipv4-flowspec match port '=8080' then discard Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-08packet: add ADD_PATH capabilityISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-08api: kill api.CapabilityISHIDA Wataru
keep protobuf structures simple Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-08*: kill bgp.NLRInfo and bgp.WithdrawnRouteISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-09-02packet: add MarshalJSON() to flowspec related structsISHIDA Wataru
make it more pretty when marshaling flowspec nlri Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-08-28packet: update referene to 'draft-haas-idr-flowspec-redirect-rt-bis'Jun-ya Kato
The draft was promoted to IETF WG item. It is already enqueued to RFC editors in Aug. 2015. It's expected to be published as RFC soon. Signed-off-by: Jun-ya Kato <kato.junya@lab.ntt.co.jp>
2015-08-28mrt: add helper function for timestampdsp
Commiting helper function on MRTHeader to return a golang time.Time from the timestamp. Also commiting the relevant test function.
2015-08-27packet: add util methods and helper function for PathAttributePmsiTunnelISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-08-27packet: fix returning wrong OpaqueExtended subtypeISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>