author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
89,491
18.07.2018 08:37:31
-7,200
9b14373482510e0a41a8b7de63b6d956e6d56fa8
moved supportsMultiProtocol to FSM because it is internal state of FSM and only used in server package
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm.go", "new_path": "protocols/bgp/server/fsm.go", "diff": "@@ -63,6 +63,8 @@ type FSM struct {\nipv4Unicast *fsmAddressFamily\nipv6Unicast *fsmAddressFamily\n+ supportsMultiProtocol bool\n+\nneighborID uint32\nstate state\nstateMu sync.R...
Go
Apache License 2.0
bio-routing/bio-rd
moved supportsMultiProtocol to FSM because it is internal state of FSM and only used in server package
89,491
18.07.2018 17:05:46
-7,200
0e6ef1410da0dfe9d04cb5d4717a5362681232fe
switched to separate types for encoding and decoding options
[ { "change_type": "ADD", "old_path": null, "new_path": "protocols/bgp/packet/decode_options.go", "diff": "+package packet\n+\n+type DecodeOptions struct {\n+ Use32BitASN bool\n+}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "protocols/bgp/packet/encode_options.go", ...
Go
Apache License 2.0
bio-routing/bio-rd
switched to separate types for encoding and decoding options
89,491
18.07.2018 18:35:18
-7,200
976215cd6aa260d0c0a96261cadcf9b2ebf34f7a
renamed vars to make the difference between configured and aggreed more clear
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_address_family.go", "new_path": "protocols/bgp/server/fsm_address_family.go", "diff": "@@ -30,7 +30,7 @@ type fsmAddressFamily struct {\nupdateSender *UpdateSender\naddPathSend routingtable.ClientOptions\n- addPathRecv bool\n+ addPathR...
Go
Apache License 2.0
bio-routing/bio-rd
renamed vars to make the difference between configured and aggreed more clear
89,491
18.07.2018 18:48:06
-7,200
d8878d16354d2c4d3daf3958fe124357c0c6501f
removed CapAddPathRX from neighbor because it is family specific
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_address_family.go", "new_path": "protocols/bgp/server/fsm_address_family.go", "diff": "@@ -56,7 +56,7 @@ func (f *fsmAddressFamily) init(n *routingtable.Neighbor) {\ncontributingASNs.Add(f.fsm.peer.localASN)\nf.adjRIBIn.Register(f.rib)...
Go
Apache License 2.0
bio-routing/bio-rd
removed CapAddPathRX from neighbor because it is family specific
89,491
18.07.2018 21:49:02
-7,200
9d0b9e842d3660bdb58368bb6ba193620ef599c5
mini improvement
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/path_attributes.go", "new_path": "protocols/bgp/packet/path_attributes.go", "diff": "@@ -499,17 +499,17 @@ func (pa *PathAttribute) serializeASPath(buf *bytes.Buffer, opt *EncodeOptions)\nbuf.WriteByte(attrFlags)\nbuf.WriteByte(ASPathAttr)...
Go
Apache License 2.0
bio-routing/bio-rd
mini improvement
89,491
19.07.2018 08:14:07
-7,200
0b00897ecdd858067b7baa32af2d07fc792dac03
added method to parse string to BIOs IP type
[ { "change_type": "MODIFY", "old_path": "net/ip.go", "new_path": "net/ip.go", "diff": "@@ -62,6 +62,21 @@ func IPFromBytes(b []byte) (IP, error) {\nreturn IP{}, fmt.Errorf(\"byte slice has an invalid legth. Expected either 4 (IPv4) or 16 (IPv6) bytes but got: %d\", len(b))\n}\n+// IPFromString return...
Go
Apache License 2.0
bio-routing/bio-rd
added method to parse string to BIOs IP type
89,486
20.07.2018 18:51:30
-7,200
af52ee3b9bba7ddd3c4b33cd7432ed49fa4ff4a4
Updated fuzzing code
[ { "change_type": "MODIFY", "old_path": "fuzzing/packet/.gitignore", "new_path": "fuzzing/packet/.gitignore", "diff": "packet-fuzz.zip\n+crashers\n+suppressions\n" }, { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/fuzzing.go", "new_path": "protocols/bgp/packet/fuzzing.go...
Go
Apache License 2.0
bio-routing/bio-rd
Updated fuzzing code
89,491
21.07.2018 11:02:38
-7,200
8424ff0e9132785f7ba7ff55e29b761ec6687f4b
added test for existing boundary check
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/path_attributes_test.go", "new_path": "protocols/bgp/packet/path_attributes_test.go", "diff": "@@ -968,6 +968,17 @@ func TestDecodeMultiProtocolReachNLRI(t *testing.T) {\n},\n},\n},\n+ {\n+ name: \"MP_REACH_NLRI with invalid prefixes\",\n+...
Go
Apache License 2.0
bio-routing/bio-rd
added test for existing boundary check
89,491
23.07.2018 21:51:58
-7,200
66447b4ce7d5fc5c6450cf62ba66795ce3eabff3
Update fsm_test.go
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_test.go", "new_path": "protocols/bgp/server/fsm_test.go", "diff": "@@ -13,8 +13,8 @@ import (\nbnet \"github.com/bio-routing/bio-rd/net\"\n)\n-// TestFSM55UpdatesIPv4 emulates receiving 255 BGP updates and withdraws. Checks route count...
Go
Apache License 2.0
bio-routing/bio-rd
Update fsm_test.go
89,491
23.07.2018 21:56:13
-7,200
d421a88d02a59b2db5080732bbe2d2fb5aef8450
Update update_sender.go fixed wrong method call
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/update_sender.go", "new_path": "protocols/bgp/server/update_sender.go", "diff": "@@ -249,7 +249,7 @@ func (u *UpdateSender) withdrawPrefix(pfx bnet.Prefix, p *route.Path) error {\n}\nif u.afi == packet.IPv6AFI {\n- return u.withdrawPrefixI...
Go
Apache License 2.0
bio-routing/bio-rd
Update update_sender.go fixed wrong method call
89,491
23.07.2018 23:36:04
-7,200
972c9564be11714f836309386b29ff641e837599
fsm sees add path as TX, on peer it's RX
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_address_family.go", "new_path": "protocols/bgp/server/fsm_address_family.go", "diff": "@@ -30,24 +30,24 @@ type fsmAddressFamily struct {\nupdateSender *UpdateSender\naddPathSend routingtable.ClientOptions\n- addPathRXConfigured bool\n...
Go
Apache License 2.0
bio-routing/bio-rd
fsm sees add path as TX, on peer it's RX
89,491
24.07.2018 00:30:13
-7,200
5cb60229f6d3e1080834022ae0cdffce5f8f1a87
testing withdraw func to increase test coverage
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/update_sender.go", "new_path": "protocols/bgp/server/update_sender.go", "diff": "@@ -243,7 +243,7 @@ func (u *UpdateSender) copyAttributesWithoutNextHop(pa *packet.PathAttribute) (a\n// RemovePath withdraws prefix `pfx` from a peer\nfunc (...
Go
Apache License 2.0
bio-routing/bio-rd
testing withdraw func to increase test coverage
89,491
22.08.2018 20:14:37
-7,200
055d6235b7d2333e4295fa27dff579bf048bc2c2
local address was always 16 bytes which lead to invalid updates for non ipv6 eBGP sessions
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_established.go", "new_path": "protocols/bgp/server/fsm_established.go", "diff": "@@ -60,11 +60,7 @@ func (s *establishedState) init() error {\nif err != nil {\nreturn fmt.Errorf(\"Unable to get local address: %v\", err)\n}\n- hostIP :=...
Go
Apache License 2.0
bio-routing/bio-rd
local address was always 16 bytes which lead to invalid updates for non ipv6 eBGP sessions
89,491
23.09.2018 17:11:29
-7,200
770229cdbff269fc8ea7fee0604aeb4ac5130347
added flag to allow ipv4 being advertised as MP
[ { "change_type": "MODIFY", "old_path": "config/peer.go", "new_path": "config/peer.go", "diff": "@@ -24,6 +24,7 @@ type Peer struct {\nRouteServerClient bool\nRouteReflectorClient bool\nRouteReflectorClusterID uint32\n+ AdvertiseIPv4MultiProtocol bool\nIPv4 *AddressFamilyConfig\nIPv6 *AddressFamilyCo...
Go
Apache License 2.0
bio-routing/bio-rd
added flag to allow ipv4 being advertised as MP
89,491
16.10.2018 12:00:11
-7,200
314fe6b5b4bd0a92986dc9973f22af1c9b8197ba
using IP type instead of uint32 in NLRI
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/decoder_test.go", "new_path": "protocols/bgp/packet/decoder_test.go", "diff": "@@ -6,12 +6,10 @@ import (\n\"strconv\"\n\"testing\"\n- \"github.com/bio-routing/bio-rd/net\"\n+ bnet \"github.com/bio-routing/bio-rd/net\"\n\"github.com/bio-ro...
Go
Apache License 2.0
bio-routing/bio-rd
using IP type instead of uint32 in NLRI
89,491
17.10.2018 12:04:38
-7,200
a6d0ff741d3c611e82d02289f1c7cfc110b57e52
use NLRI on MP_REACH
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "# 'go build' binary\nbio-rd\n+examples/bgp\n+examples/bmp\n# bazel directories\n/bazel-*\n" }, { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/decoder.go", "new_path": "protocols/bgp/...
Go
Apache License 2.0
bio-routing/bio-rd
use NLRI on MP_REACH
89,491
17.10.2018 12:27:07
-7,200
8f49c1aae7cd99dbc32ae5bc1cc4a196f3f3ddf9
removed uneccessary if
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_address_family.go", "new_path": "protocols/bgp/server/fsm_address_family.go", "diff": "@@ -151,10 +151,6 @@ func (f *fsmAddressFamily) multiProtocolUpdate(path *route.Path, nlri packet.Mul\npath.BGPPath.NextHop = nlri.NextHop\n- if nlr...
Go
Apache License 2.0
bio-routing/bio-rd
removed uneccessary if
89,491
17.10.2018 17:55:53
-7,200
49fe60ef66bf2253799b2937a3fad41dce6150a0
MP_UNREACH also uses NLRI struct now
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/mp_unreach_nlri.go", "new_path": "protocols/bgp/packet/mp_unreach_nlri.go", "diff": "@@ -4,7 +4,6 @@ import (\n\"bytes\"\n\"fmt\"\n- bnet \"github.com/bio-routing/bio-rd/net\"\n\"github.com/bio-routing/bio-rd/util/decode\"\n\"github.com/ta...
Go
Apache License 2.0
bio-routing/bio-rd
MP_UNREACH also uses NLRI struct now
89,491
17.10.2018 18:41:15
-7,200
e2f9583b33b9b5ce4b648046beb4e2d4420f1f9e
addpath serialization clean up
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/mp_reach_nlri.go", "new_path": "protocols/bgp/packet/mp_reach_nlri.go", "diff": "@@ -28,11 +28,7 @@ func (n *MultiProtocolReachNLRI) serialize(buf *bytes.Buffer, opt *EncodeOptions\ntempBuf.WriteByte(0) // RESERVED\nfor cur := n.NLRI; cur ...
Go
Apache License 2.0
bio-routing/bio-rd
addpath serialization clean up
89,491
28.10.2018 20:00:51
-3,600
51646032eb5eff0bcae252c10020c25df3acb192
refactored client manager to gain more flexibility
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/update_sender.go", "new_path": "protocols/bgp/server/update_sender.go", "diff": "@@ -16,7 +16,7 @@ import (\n// UpdateSender converts table changes into BGP update messages\ntype UpdateSender struct {\n- routingtable.ClientManager\n+ clien...
Go
Apache License 2.0
bio-routing/bio-rd
refactored client manager to gain more flexibility
89,491
28.10.2018 21:09:09
-3,600
4d208e24901b79a90147c0ed6507bf020a930bcc
withdraw prefixes from RIBIn when RIB gets unregistered
[ { "change_type": "MODIFY", "old_path": "routingtable/adjRIBIn/adj_rib_in.go", "new_path": "routingtable/adjRIBIn/adj_rib_in.go", "diff": "@@ -186,5 +186,13 @@ func (a *AdjRIBIn) Register(client routingtable.RouteTableClient) {\n// Unregister unregisters a client\nfunc (a *AdjRIBIn) Unregister(client...
Go
Apache License 2.0
bio-routing/bio-rd
withdraw prefixes from RIBIn when RIB gets unregistered
89,499
18.11.2018 11:29:08
-3,600
5a7c00ecb5d482be148928b076683d05a1dba6dc
Fix README after bazel remove Update to vendoring
[ { "change_type": "MODIFY", "old_path": "CONTRIBUTORS", "new_path": "CONTRIBUTORS", "diff": "# lists people. For example, Google employees are listed here\n# but not in AUTHORS, because Google holds the copyright.\n+Annika Wickert\nCedric Kienzler\nChristoph Petrausch\nDaniel Czerwonk\n" }, { ...
Go
Apache License 2.0
bio-routing/bio-rd
Fix README after bazel remove Update to vendoring
89,491
18.11.2018 15:15:28
-3,600
55f170b58066a98d76ddefddd5c6c0bddc9b5bf3
applied changes to new netlink pkg
[ { "change_type": "MODIFY", "old_path": "protocols/netlink/netlink.go", "new_path": "protocols/netlink/netlink.go", "diff": "@@ -35,10 +35,10 @@ func (n *Netlink) Start() {\n}\n// 1. from locRib to Kernel\n- n.locRib.ClientManager.RegisterWithOptions(n.writer, options)\n+ n.locRib.RegisterWithOptions...
Go
Apache License 2.0
bio-routing/bio-rd
applied changes to new netlink pkg
89,498
21.11.2018 21:42:03
18,000
48b502d49cca0c79d65811dee23ce175ce4d09d7
My first commit. Added some test cases and a comment as we're missing a lot
[ { "change_type": "MODIFY", "old_path": "config/server_test.go", "new_path": "config/server_test.go", "diff": "@@ -68,7 +68,38 @@ func TestAddrIsGreater(t *testing.T) {\nargs args\nwant bool\n}{\n- // TODO: Add test cases.\n+ {\n+ name: \"192.168.0.0 lower than 192.168.0.1\",\n+ args: args{\n+ a: net...
Go
Apache License 2.0
bio-routing/bio-rd
My first commit. Added some test cases and a comment as we're missing a lot
89,498
21.11.2018 21:43:34
18,000
6eff168d39122110d184ad9ea2ae74f9239340f5
First commit. Adding tests cases and comment
[ { "change_type": "MODIFY", "old_path": "config/server.go", "new_path": "config/server.go", "diff": "@@ -125,10 +125,9 @@ func _getLoopbackIP(iface *net.Interface) (net.IP, error) {\nreturn max, nil\n}\n+// addrIsGreater returns true if the first address is higher than the second.\n+// Returns false ...
Go
Apache License 2.0
bio-routing/bio-rd
First commit. Adding tests cases and comment
89,498
21.11.2018 21:44:45
18,000
692c88af81c169358bc7155fa98bca635218576a
First commit. Adding test cases and comment
[ { "change_type": "MODIFY", "old_path": "config/server.go", "new_path": "config/server.go", "diff": "@@ -128,6 +128,9 @@ func _getLoopbackIP(iface *net.Interface) (net.IP, error) {\n// addrIsGreater returns true if the first address is higher than the second.\n// Returns false if not.\nfunc addrIsGre...
Go
Apache License 2.0
bio-routing/bio-rd
First commit. Adding test cases and comment
89,499
22.11.2018 12:29:17
-3,600
a77239e2e0e6fe9dd9ff71bd9a45f43c85039b34
Add v6 test and switch compare method
[ { "change_type": "MODIFY", "old_path": "config/server.go", "new_path": "config/server.go", "diff": "package config\nimport (\n+ \"bytes\"\n\"fmt\"\n\"net\"\n\"strings\"\n@@ -128,10 +129,7 @@ func _getLoopbackIP(iface *net.Interface) (net.IP, error) {\n// addrIsGreater returns true if the first addre...
Go
Apache License 2.0
bio-routing/bio-rd
Add v6 test and switch compare method
89,491
27.12.2018 20:47:52
-3,600
1baef567309251c5233875d5cf36c32b00c48541
added unique name for locRIBs
[ { "change_type": "MODIFY", "old_path": "examples/bgp/main.go", "new_path": "examples/bgp/main.go", "diff": "@@ -4,12 +4,9 @@ import (\n\"fmt\"\n\"time\"\n- \"github.com/sirupsen/logrus\"\n-\n- \"github.com/bio-routing/bio-rd/protocols/bgp/server\"\n- \"github.com/bio-routing/bio-rd/routingtable/locR...
Go
Apache License 2.0
bio-routing/bio-rd
added unique name for locRIBs
89,491
27.12.2018 21:50:27
-3,600
fe95d39c98d164d60d29de173fef0917d97e07b7
added proto file for bgp sessions
[ { "change_type": "ADD", "old_path": null, "new_path": "protocols/bgp/server/api/session.pb.go", "diff": "+// Code generated by protoc-gen-go. DO NOT EDIT.\n+// source: protocols/bgp/server/api/session.proto\n+\n+package api // import \"protocols/bgp/server/api\"\n+\n+import proto \"github.com/golang...
Go
Apache License 2.0
bio-routing/bio-rd
added proto file for bgp sessions
89,491
27.12.2018 22:34:48
-3,600
9d7cac6faaa16dfd72fbbb8984208235d959f751
added simple bgp service to get session information
[ { "change_type": "ADD", "old_path": null, "new_path": "protocols/bgp/api/bgp.pb.go", "diff": "+// Code generated by protoc-gen-go. DO NOT EDIT.\n+// source: protocols/bgp/server/api/bgp.proto\n+\n+package api // import \"protocols/bgp/server/api\"\n+\n+import proto \"github.com/golang/protobuf/proto...
Go
Apache License 2.0
bio-routing/bio-rd
added simple bgp service to get session information
89,491
27.12.2018 22:43:47
-3,600
45bb380777443add1bb51ca5f23b2054ec113f8c
proto comile of service
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/api/bgp.pb.go", "new_path": "protocols/bgp/api/bgp.pb.go", "diff": "// Code generated by protoc-gen-go. DO NOT EDIT.\n-// source: protocols/bgp/server/api/bgp.proto\n+// source: protocols/bgp/api/bgp.proto\n-package api // import \"protocols/bgp/...
Go
Apache License 2.0
bio-routing/bio-rd
proto comile of service
89,480
28.12.2018 17:34:53
-3,600
29d2489131d8c76cc7549c4fdb8f81b876515c0a
Protocol Device
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/device/main.go", "diff": "+package main\n+\n+import (\n+ \"fmt\"\n+ \"os\"\n+\n+ \"github.com/bio-routing/bio-rd/protocols/device\"\n+ log \"github.com/sirupsen/logrus\"\n+)\n+\n+// Client is a device protocol client\n+type Client struc...
Go
Apache License 2.0
bio-routing/bio-rd
Protocol Device (#147)
89,491
28.12.2018 18:21:36
-3,600
3d740bfe93e8dbf0826d4bfbcf4401d8d57307ef
removed IsLegacy()
[ { "change_type": "MODIFY", "old_path": "net/ip.go", "new_path": "net/ip.go", "diff": "@@ -47,11 +47,6 @@ func (ip IP) Higher() uint64 {\nreturn ip.higher\n}\n-// IsLegacy returns true for IPv6, else false\n-func (ip IP) IsLegacy() bool {\n- return ip.isLegacy\n-}\n-\n// IPv4 returns a new `IP` repre...
Go
Apache License 2.0
bio-routing/bio-rd
removed IsLegacy()
89,491
28.12.2018 18:45:02
-3,600
ff877cda6cbd41e543446002f0d2893c601cd77b
we decided to add vrf, so filtering will be on vrf - remote ip base
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/api/bgp.pb.go", "new_path": "protocols/bgp/api/bgp.pb.go", "diff": "@@ -6,6 +6,7 @@ package api\nimport (\ncontext \"context\"\nfmt \"fmt\"\n+ api \"github.com/bio-routing/bio-rd/net/api\"\nproto \"github.com/golang/protobuf/proto\"\ngrpc \"googl...
Go
Apache License 2.0
bio-routing/bio-rd
we decided to add vrf, so filtering will be on vrf - remote ip base
89,491
28.12.2018 19:04:02
-3,600
2cb804fe352a955c69d738b170c74ac670ab9e3f
added filter to make it more clear if a filter should be applied to the list
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/api/bgp.pb.go", "new_path": "protocols/bgp/api/bgp.pb.go", "diff": "@@ -24,8 +24,7 @@ var _ = math.Inf\nconst _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package\ntype ListSessionsRequest struct {\n- NeighborIp *api.IP `protobuf:...
Go
Apache License 2.0
bio-routing/bio-rd
added filter to make it more clear if a filter should be applied to the list
89,491
28.12.2018 19:06:15
-3,600
49f0f467f82b7f59542c9195806944a41ac57e09
renaming of stats attr
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/api/session.pb.go", "new_path": "protocols/bgp/api/session.pb.go", "diff": "@@ -152,12 +152,12 @@ func (m *Session) GetEstablishedSince() uint64 {\n}\ntype SessionStats struct {\n- PackagesIn uint64 `protobuf:\"varint,6,opt,name=packages_in,json=...
Go
Apache License 2.0
bio-routing/bio-rd
renaming of stats attr
89,491
13.01.2019 22:00:47
-3,600
55ec9f48465606cba18948f7c1a32b7226c2e008
since pushd is not available on os x, the script couldn't be run
[ { "change_type": "MODIFY", "old_path": "net/api/net.pb.go", "new_path": "net/api/net.pb.go", "diff": "@@ -5,9 +5,8 @@ package api\nimport (\nfmt \"fmt\"\n- math \"math\"\n-\nproto \"github.com/golang/protobuf/proto\"\n+ math \"math\"\n)\n// Reference imports to suppress errors if they are not otherw...
Go
Apache License 2.0
bio-routing/bio-rd
since pushd is not available on os x, the script couldn't be run
89,491
18.01.2019 20:38:16
-3,600
9649189f886e324e15cdee112e957058ec37b220
increased test coverage of decoder
[ { "change_type": "MODIFY", "old_path": "util/decoder/decoder_test.go", "new_path": "util/decoder/decoder_test.go", "diff": "@@ -8,16 +8,46 @@ import (\n)\nfunc TestDecode(t *testing.T) {\n- input := []byte{\n- 3, 0, 0, 0, 100, 200,\n- }\n-\ntype testData struct {\na uint8\nb uint32\nc []byte\n}\n+ t...
Go
Apache License 2.0
bio-routing/bio-rd
increased test coverage of decoder
89,491
19.01.2019 16:18:49
-3,600
7526f5f6355b409ec4ffb950289c7bcd142ffbae
Removed WORKSPACE file Since we removed bazel, this is not needed any more.
[ { "change_type": "DELETE", "old_path": "WORKSPACE", "new_path": null, "diff": "-load(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n-\n-# Bazel Go rules\n-http_archive(\n- name = \"io_bazel_rules_go\",\n- urls = [\"https://github.com/bazelbuild/rules_go/releases/download/0.12.1...
Go
Apache License 2.0
bio-routing/bio-rd
Removed WORKSPACE file Since we removed bazel, this is not needed any more.
89,480
31.01.2019 20:01:35
-3,600
eee7d18fa845244cabe26b6b226f3d9dbab48265
Fix go routine leak
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_established.go", "new_path": "protocols/bgp/server/fsm_established.go", "diff": "@@ -136,6 +136,7 @@ func (s *establishedState) holdTimerExpired() (state, string) {\nfunc (s *establishedState) keepaliveTimerExpired() (state, string) {\...
Go
Apache License 2.0
bio-routing/bio-rd
Fix go routine leak (#185)
89,480
18.02.2019 08:12:03
-3,600
efa7c15d9a1fefc14e93275fce5e5aca2b42bab3
Make Adj-RIB-In/Out accessible outside of BGP server
[ { "change_type": "MODIFY", "old_path": "go.mod", "new_path": "go.mod", "diff": "@@ -9,7 +9,7 @@ require (\ngithub.com/vishvananda/netlink v1.0.0\ngithub.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc // indirect\ngolang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 // indirect\n- golang....
Go
Apache License 2.0
bio-routing/bio-rd
Make Adj-RIB-In/Out accessible outside of BGP server (#196)
89,493
14.03.2019 17:33:28
0
fe08c2731661f396ceb7d067ee3dd0a67c241971
Update Readme.md I've fixed the issue
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -19,9 +19,9 @@ A re-implementation of BGP, IS-IS and OSPF in go. We value respect and robustnes\ncd examples/bmp/ && go build\n-#### Netlink\n+#### Device\n- cd examples/netlink && go build\n+ cd examples/device...
Go
Apache License 2.0
bio-routing/bio-rd
Update Readme.md I've fixed the issue #202
89,486
02.05.2019 12:40:05
-7,200
0b9c383064988b16c4298b7e5bc3d90508f57438
Move fsm state number constants to metrics package. This enables users of the bio-rd library to reuse the state numbering. Otherwise users have to maintain their own constats to avoid magic numbers.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/metrics/bgp_peer_metrics.go", "new_path": "protocols/bgp/metrics/bgp_peer_metrics.go", "diff": "@@ -6,6 +6,16 @@ import (\nbnet \"github.com/bio-routing/bio-rd/net\"\n)\n+const (\n+ StateDown = 0\n+ StateIdle = 1\n+ StateConnect = 2\n+ StateActiv...
Go
Apache License 2.0
bio-routing/bio-rd
Move fsm state number constants to metrics package. (#207) This enables users of the bio-rd library to reuse the state numbering. Otherwise users have to maintain their own constats to avoid magic numbers.
89,480
16.06.2019 14:43:39
-7,200
aa5f6e2d2bb62b37ffdcb4978b187d7b0f072ec9
Basic Netlink protocol
[ { "change_type": "ADD", "old_path": "examples/kernel/kernel", "new_path": "examples/kernel/kernel", "diff": "Binary files /dev/null and b/examples/kernel/kernel differ\n" }, { "change_type": "ADD", "old_path": null, "new_path": "examples/kernel/main.go", "diff": "+package main\n+...
Go
Apache License 2.0
bio-routing/bio-rd
Basic Netlink protocol (#209)
89,480
14.07.2019 19:29:46
-7,200
89920a8c7d5c81d0efaf1ef970acfc11a18193e4
Fix trie intermediate insert bug
[ { "change_type": "MODIFY", "old_path": "routingtable/table_test.go", "new_path": "routingtable/table_test.go", "diff": "@@ -143,6 +143,95 @@ func TestAddPath(t *testing.T) {\n},\nexpectedCount: 5,\n},\n+ {\n+ name: \"Insert disjunct prefixes plus one child high #2\",\n+ routes: []*route.Route{\n+ ro...
Go
Apache License 2.0
bio-routing/bio-rd
Fix trie intermediate insert bug (#212)
89,480
14.07.2019 19:31:38
-7,200
951fd74266a8ef1e9bc9acdb6c37500be03bac71
Fix init/uninit
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm_address_family.go", "new_path": "protocols/bgp/server/fsm_address_family.go", "diff": "@@ -84,6 +84,8 @@ func (f *fsmAddressFamily) bmpInit() {\nif f.rib != nil {\nf.adjRIBIn.Register(f.rib)\n}\n+\n+ f.initialized = true\n}\nfunc (f *f...
Go
Apache License 2.0
bio-routing/bio-rd
Fix init/uninit (#213)
89,499
23.07.2019 20:03:22
-7,200
c3a4ee7079b670b015c96a6c4bf75a912fbc8428
Fix alignment issue on arm
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm.go", "new_path": "protocols/bgp/server/fsm.go", "diff": "@@ -37,6 +37,8 @@ type state interface {\n// FSM implements the BGP finite state machine (RFC4271)\ntype FSM struct {\n+ counters fsmCounters\n+\nisBMP bool\npeer *peer\neventCh ...
Go
Apache License 2.0
bio-routing/bio-rd
Fix alignment issue on arm
89,480
17.09.2019 15:10:49
-7,200
5ffad221293df96b21657735e4be1aa6fe057f26
Fix index out of range bug
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_neighbor_manager.go", "new_path": "protocols/bgp/server/bmp_neighbor_manager.go", "diff": "@@ -75,8 +75,8 @@ func (nm *neighborManager) disposeAll() {\nnm.neighborsMu.Lock()\ndefer nm.neighborsMu.Unlock()\n- for i := range nm.neighbors...
Go
Apache License 2.0
bio-routing/bio-rd
Fix index out of range bug (#227)
89,480
29.10.2019 17:21:14
-3,600
9a2f84b22a4aac17b61e2cdddefd23f228234246
Fix pfx dedup and add tests
[ { "change_type": "ADD", "old_path": null, "new_path": "net/ip_cache_test.go", "diff": "+package net\n+\n+import (\n+ \"testing\"\n+\n+ \"github.com/stretchr/testify/assert\"\n+)\n+\n+func TestIPCache(t *testing.T) {\n+ a := &IP{\n+ higher: 100,\n+ lower: 200,\n+ isLegacy: false,\n+ }\n+ b := &IP{\n+...
Go
Apache License 2.0
bio-routing/bio-rd
Fix pfx dedup and add tests (#233)
89,480
31.10.2019 14:49:03
-3,600
2f52452b7964495aed9db95db068f86122b688bb
Fix Less method
[ { "change_type": "MODIFY", "old_path": "net/prefix.go", "new_path": "net/prefix.go", "diff": "@@ -6,7 +6,6 @@ import (\ngonet \"net\"\n\"strconv\"\n\"strings\"\n- \"unsafe\"\n\"github.com/bio-routing/bio-rd/net/api\"\n\"github.com/google/btree\"\n@@ -24,18 +23,20 @@ func (p *Prefix) Dedup() *Prefix ...
Go
Apache License 2.0
bio-routing/bio-rd
Fix Less method
89,480
09.01.2020 14:56:15
-3,600
0dcfefb3391969751d0b64e178089c6c2b5fc3f2
Fix race condition in BGP metrics handling.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/metrics_service.go", "new_path": "protocols/bgp/server/metrics_service.go", "diff": "@@ -50,6 +50,10 @@ func metricsForPeer(peer *peer) *metrics.BGPPeerMetrics {\nm.UpdatesReceived = fsm.counters.updatesReceived\nm.UpdatesSent = fsm.counte...
Go
Apache License 2.0
bio-routing/bio-rd
Fix race condition in BGP metrics handling.
89,480
13.01.2020 15:16:40
-3,600
effb3887de49421d087db2218234efed521af55f
Fix concurrent map access race.
[ { "change_type": "MODIFY", "old_path": "net/prefix_cache.go", "new_path": "net/prefix_cache.go", "diff": "@@ -37,8 +37,9 @@ func (pfxc *pfxCache) get(pfx Prefix) *Prefix {\n}\npfxc._set(pfx)\n+ ret := pfxc.cache[pfx]\npfxc.cacheMu.Unlock()\n- return pfxc.cache[pfx]\n+ return ret\n}\nfunc (pfxc *pfxC...
Go
Apache License 2.0
bio-routing/bio-rd
Fix concurrent map access race. (#238)
89,480
13.01.2020 16:01:54
-3,600
979b20e1932a1e37337e52810ab342fcf0a0ce8b
Fix BMP reconnect
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_router.go", "new_path": "protocols/bgp/server/bmp_router.go", "diff": "@@ -29,6 +29,7 @@ type Router struct {\nreconnectTimeMin int\nreconnectTimeMax int\nreconnectTime int\n+ dialTimeout time.Duration\nreconnectTimer *time.Timer\nvrfR...
Go
Apache License 2.0
bio-routing/bio-rd
Fix BMP reconnect
89,480
14.01.2020 10:15:28
-3,600
3e153bae6dfdfc6d57b169154592246e17ae477b
Add BMP session status metric
[ { "change_type": "MODIFY", "old_path": "go.sum", "new_path": "go.sum", "diff": "@@ -54,6 +54,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN\ngithub.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=\ngithub.com/prometheus...
Go
Apache License 2.0
bio-routing/bio-rd
Add BMP session status metric
89,480
14.01.2020 11:12:57
-3,600
e9d576785821f5ae9d0c39a145b6d1967c53aee8
Implement ObserveRIB clients metric
[ { "change_type": "MODIFY", "old_path": "cmd/ris/main.go", "new_path": "cmd/ris/main.go", "diff": "@@ -46,6 +46,7 @@ func main() {\n}\ns := risserver.NewServer(b)\n+ prometheus.MustRegister(s)\nunaryInterceptors := []grpc.UnaryServerInterceptor{}\nstreamInterceptors := []grpc.StreamServerInterceptor{...
Go
Apache License 2.0
bio-routing/bio-rd
Implement ObserveRIB clients metric
89,480
14.01.2020 19:38:38
-3,600
40c1db6c6be0147b205d5d7bd3ff4799a779d21b
Refactor to use prometheus GaugeVector
[ { "change_type": "MODIFY", "old_path": "cmd/ris/main.go", "new_path": "cmd/ris/main.go", "diff": "@@ -46,7 +46,6 @@ func main() {\n}\ns := risserver.NewServer(b)\n- prometheus.MustRegister(s)\nunaryInterceptors := []grpc.UnaryServerInterceptor{}\nstreamInterceptors := []grpc.StreamServerInterceptor{...
Go
Apache License 2.0
bio-routing/bio-rd
Refactor to use prometheus GaugeVector
89,480
14.01.2020 20:03:46
-3,600
fe857dea32578814d22f49444c2af28355135444
Add grpc keepalive config
[ { "change_type": "MODIFY", "old_path": "cmd/ris/main.go", "new_path": "cmd/ris/main.go", "diff": "@@ -4,6 +4,7 @@ import (\n\"flag\"\n\"net\"\n\"os\"\n+ \"time\"\n\"google.golang.org/grpc\"\n@@ -12,6 +13,7 @@ import (\n\"github.com/bio-routing/bio-rd/protocols/bgp/server\"\n\"github.com/bio-routing/...
Go
Apache License 2.0
bio-routing/bio-rd
Add grpc keepalive config
89,480
14.01.2020 20:06:50
-3,600
eb1f84c6bbb81953bb59b8461e2cb48daa3da00b
Add keepalive config to bio-rd
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/main.go", "new_path": "cmd/bio-rd/main.go", "diff": "@@ -16,11 +16,13 @@ import (\n\"github.com/pkg/errors\"\nlog \"github.com/sirupsen/logrus\"\n\"google.golang.org/grpc\"\n+ \"google.golang.org/grpc/keepalive\"\n)\nvar (\nconfigFilePath = flag.Str...
Go
Apache License 2.0
bio-routing/bio-rd
Add keepalive config to bio-rd
89,480
21.01.2020 15:58:50
-3,600
b858842766641f1ddd013a5025216232b0228d3f
Fix BGP reconnect
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm.go", "new_path": "protocols/bgp/server/fsm.go", "diff": "@@ -295,9 +295,8 @@ func (fsm *FSM) startConnectRetryTimer() {\n}\nfunc (fsm *FSM) resetConnectRetryTimer() {\n- if !fsm.connectRetryTimer.Reset(fsm.connectRetryTime) {\n- <-fsm....
Go
Apache License 2.0
bio-routing/bio-rd
Fix BGP reconnect (#244)
89,480
27.01.2020 17:07:22
-3,600
d9915da3ed58182da6d1f9e9a1c655c8e6bdcd81
BGP: Validate NLRI (valid Prefix)
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/helper.go", "new_path": "protocols/bgp/packet/helper.go", "diff": "@@ -39,5 +39,10 @@ func deserializePrefix(b []byte, pfxLen uint8, afi uint16) (*bnet.Prefix, error)\nreturn nil, err\n}\n- return bnet.NewPfx(ip, pfxLen).Dedup(), nil\n+ pf...
Go
Apache License 2.0
bio-routing/bio-rd
BGP: Validate NLRI (valid Prefix) (#246)
89,480
28.01.2020 21:47:14
-3,600
68c3468b8d3e69a544579428f1a562f5ff127665
Fix BGP Add Path RX.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/decode_options.go", "new_path": "protocols/bgp/packet/decode_options.go", "diff": "@@ -2,6 +2,24 @@ package packet\n// DecodeOptions represents options for the BGP message decoder\ntype DecodeOptions struct {\n- AddPath bool\n+ AddPathIPv4...
Go
Apache License 2.0
bio-routing/bio-rd
Fix BGP Add Path RX. (#247)
89,480
10.02.2020 19:31:37
-3,600
a876bfc20efcffa9779aa56ef9f970f2c445d60c
Implement GetAFlag
[ { "change_type": "MODIFY", "old_path": "protocols/bmp/packet/per_peer_header.go", "new_path": "protocols/bmp/packet/per_peer_header.go", "diff": "@@ -65,3 +65,8 @@ func (p *PerPeerHeader) GetIPVersion() uint8 {\n}\nreturn 4\n}\n+\n+// GetAFlag checks if the A flag is set\n+func (p *PerPeerHeader) Ge...
Go
Apache License 2.0
bio-routing/bio-rd
Implement GetAFlag
89,480
10.02.2020 20:40:09
-3,600
2d26c7b985640ce81d918c1d01f5f434d6ecee88
Fix DecodeUint32
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/path_attributes.go", "new_path": "protocols/bgp/packet/path_attributes.go", "diff": "@@ -281,23 +281,23 @@ func (pa *PathAttribute) decodeASPath(buf *bytes.Buffer, asnLength uint8) error\nfunc (pa *PathAttribute) decodeASN(buf *bytes.Buffe...
Go
Apache License 2.0
bio-routing/bio-rd
Fix DecodeUint32
89,480
10.02.2020 20:48:22
-3,600
f1851792a76a713dc6802f1e16bdef927cdf3bf4
Refactor and fix docs
[ { "change_type": "MODIFY", "old_path": "util/decode/decode.go", "new_path": "util/decode/decode.go", "diff": "@@ -19,6 +19,7 @@ func Decode(buf *bytes.Buffer, fields []interface{}) error {\nreturn nil\n}\n+// DecodeUint8 decodes an uint8\nfunc DecodeUint8(buf *bytes.Buffer, x *uint8) error {\ny, err...
Go
Apache License 2.0
bio-routing/bio-rd
Refactor and fix docs
89,480
03.03.2020 16:15:19
-3,600
ed30b51fe62deb7d96602768391caeea88b1165d
Fix route withdraw when using BGP add path TX
[ { "change_type": "MODIFY", "old_path": "routingtable/adjRIBOut/adj_rib_out.go", "new_path": "routingtable/adjRIBOut/adj_rib_out.go", "diff": "@@ -185,18 +185,20 @@ func (a *AdjRIBOut) removePath(pfx *bnet.Prefix, p *route.Path) bool {\nsentPath := p\nif a.addPathTX {\n- for _, sentPath := range r.Pa...
Go
Apache License 2.0
bio-routing/bio-rd
Fix route withdraw when using BGP add path TX
89,480
25.03.2020 15:51:57
-3,600
aa1bed92a7994e9f7d49399fcd62de01168a25dd
Add IP Next() method and Prefix BaseAddr()
[ { "change_type": "MODIFY", "old_path": "net/ip.go", "new_path": "net/ip.go", "diff": "@@ -57,6 +57,14 @@ func (ip *IP) Higher() uint64 {\nreturn ip.higher\n}\n+func (ip *IP) copy() *IP {\n+ return &IP{\n+ higher: ip.higher,\n+ lower: ip.lower,\n+ isLegacy: ip.isLegacy,\n+ }\n+}\n+\n// IPv4 returns a...
Go
Apache License 2.0
bio-routing/bio-rd
Add IP Next() method and Prefix BaseAddr()
89,480
11.04.2020 20:11:27
-7,200
86306540efbfa0bab156c90e939354b11c1e3eb2
Add support for setting TTL on BGP sessions
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/bio-rd.yml", "new_path": "cmd/bio-rd/bio-rd.yml", "diff": "routing_options:\n- autonomous_system: 65100\n- router_id: 192.0.2.1\n+ autonomous_system: 201701\n+ router_id: 2.2.2.2\npolicy_options:\npolicy_statements:\n- name: \"PeerA-In\"\n@@ -64,6 +...
Go
Apache License 2.0
bio-routing/bio-rd
Add support for setting TTL on BGP sessions
89,480
12.04.2020 23:42:40
-7,200
5a12fa7d7d36a7328ef909d5fc2e1a03239242ef
Fix listening for BGP sessions. Add auth option.
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/config/bgp.go", "new_path": "cmd/bio-rd/config/bgp.go", "diff": "@@ -50,7 +50,7 @@ func (bg *BGPGroup) load(localAS uint32, policyOptions *PolicyOptions) error {\nif bg.LocalAddress != \"\" {\na, err := bnet.IPFromString(bg.LocalAddress)\nif err != ...
Go
Apache License 2.0
bio-routing/bio-rd
Fix listening for BGP sessions. Add auth option.
89,480
12.04.2020 23:43:06
-7,200
722c2e625684662865644232b5099a4c66d49aea
Add BGP MD5 support
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/fsm.go", "new_path": "protocols/bgp/server/fsm.go", "diff": "@@ -8,6 +8,7 @@ import (\n\"sync\"\n\"time\"\n+ \"github.com/bio-routing/bio-rd/net/tcp\"\n\"github.com/bio-routing/bio-rd/protocols/bgp/packet\"\n\"github.com/bio-routing/bio-rd...
Go
Apache License 2.0
bio-routing/bio-rd
Add BGP MD5 support
89,480
12.04.2020 23:44:36
-7,200
2e5c34a380d0f64422aff69ae917d88f423f68dd
Add TCP handler class
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/bio-rd.yml", "new_path": "cmd/bio-rd/bio-rd.yml", "diff": "routing_options:\n- autonomous_system: 65100\n- router_id: 192.0.2.1\n+ autonomous_system: 201701\n+ router_id: 2.2.2.2\npolicy_options:\npolicy_statements:\n- name: \"PeerA-In\"\n@@ -64,6 +...
Go
Apache License 2.0
bio-routing/bio-rd
Add TCP handler class
89,480
15.04.2020 16:44:18
-7,200
44c6dff1811f2025521041548cdc86d34910c190
Make BGP path dedup optional. Set init cache size = 0.
[ { "change_type": "MODIFY", "old_path": "net/ip_cache.go", "new_path": "net/ip_cache.go", "diff": "@@ -5,7 +5,7 @@ import (\n)\nconst (\n- ipCachePreAlloc = 1500000\n+ ipCachePreAlloc = 0\n)\nvar (\n" }, { "change_type": "MODIFY", "old_path": "net/prefix_cache.go", "new_path": "net/pr...
Go
Apache License 2.0
bio-routing/bio-rd
Make BGP path dedup optional. Set init cache size = 0.
89,480
15.04.2020 19:09:49
-7,200
7fa08965d43cfb79415e5bca26ba823f9a317942
Refactor net API to use pointers when working with protos
[ { "change_type": "MODIFY", "old_path": "net/ip.go", "new_path": "net/ip.go", "diff": "@@ -25,7 +25,7 @@ func (ip IP) Ptr() *IP {\n}\n// IPFromProtoIP creates an IP address from a proto IP\n-func IPFromProtoIP(addr api.IP) *IP {\n+func IPFromProtoIP(addr *api.IP) *IP {\nreturn &IP{\nhigher: addr.High...
Go
Apache License 2.0
bio-routing/bio-rd
Refactor net API to use pointers when working with protos
89,480
15.04.2020 19:12:47
-7,200
347fc59eb38a542d5f84cf2bce16318d60fffefb
Change references from values to pointers
[ { "change_type": "MODIFY", "old_path": "cmd/ris/risserver/server.go", "new_path": "cmd/ris/risserver/server.go", "diff": "@@ -87,7 +87,7 @@ func (s *Server) LPM(ctx context.Context, req *pb.LPMRequest) (*pb.LPMResponse,\nreturn nil, err\n}\n- routes := rib.LPM(bnet.NewPrefixFromProtoPrefix(*req.Pfx)...
Go
Apache License 2.0
bio-routing/bio-rd
Change references from values to pointers
89,486
15.04.2020 21:42:19
-7,200
8f75257944ceae6e4e714020c8b170a039839702
Please go vet * Remove unused function This unused function triggered go vet github.com/bio-routing/bio-rd/syscallwrappers [error]syscallwrappers/syscalls_linux.go:75:9: possible misuse of unsafe.Pointer * Remove unreachable code * Use keyed syntax for composite literals * Remove copies of mutex locks
[ { "change_type": "MODIFY", "old_path": "net/ip_test.go", "new_path": "net/ip_test.go", "diff": "@@ -141,9 +141,9 @@ func TestIPFromProtoIP(t *testing.T) {\n},\n}\n- for _, test := range tests {\n- res := IPFromProtoIP(&test.proto)\n- assert.Equal(t, test.expected, res, test.name)\n+ for i := range t...
Go
Apache License 2.0
bio-routing/bio-rd
Please go vet (#257) * Remove unused function This unused function triggered go vet github.com/bio-routing/bio-rd/syscallwrappers [error]syscallwrappers/syscalls_linux.go:75:9: possible misuse of unsafe.Pointer * Remove unreachable code * Use keyed syntax for composite literals * Remove copies of mutex locks
89,495
26.04.2020 21:48:45
-7,200
3b0e52fdfe77c6d046c36eaf5dc44dd1ed3bfdfc
riscli dump-loc-rip: dump v4 and v6 + additional error handling * riscli dump-loc-rip: Dump IPv4/IPv6 routes By default riscli dump-loc-rib will now dump IPv4 and IPv6 routes. The flags -4 and -6 have been added to restrict dumping to a single address family. * riscli dump-loc-rip: Handle EOF from API
[ { "change_type": "MODIFY", "old_path": "cmd/riscli/dump_loc_rib.go", "new_path": "cmd/riscli/dump_loc_rib.go", "diff": "@@ -2,6 +2,8 @@ package main\nimport (\n\"context\"\n+ \"fmt\"\n+ \"io\"\n\"os\"\npb \"github.com/bio-routing/bio-rd/cmd/ris/api\"\n@@ -16,6 +18,10 @@ func NewDumpLocRIBCommand() c...
Go
Apache License 2.0
bio-routing/bio-rd
riscli dump-loc-rip: dump v4 and v6 + additional error handling (#259) * riscli dump-loc-rip: Dump IPv4/IPv6 routes By default riscli dump-loc-rib will now dump IPv4 and IPv6 routes. The flags -4 and -6 have been added to restrict dumping to a single address family. * riscli dump-loc-rip: Handle EOF from API
89,495
10.05.2020 14:18:43
-7,200
2306fd069f52b5b6838f4a89ff2962f8a1516daf
Allow multiple AFISAFIs in AddPath capability RFC7911 sec 4 allows multiple AFISAFIs in a single AddPath capability entry, which also must be presented in a single capability message. Without this patch the AddPath capability of a peer advertising multiple AFISAFIs cannot be parsed and the connection will fail.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/decoder.go", "new_path": "protocols/bgp/packet/decoder.go", "diff": "@@ -10,6 +10,10 @@ import (\n\"github.com/pkg/errors\"\n)\n+const (\n+ addPathTupleSize = 4\n+)\n+\n// Decode decodes a BGP message\nfunc Decode(buf *bytes.Buffer, opt *D...
Go
Apache License 2.0
bio-routing/bio-rd
Allow multiple AFISAFIs in AddPath capability RFC7911 sec 4 allows multiple AFISAFIs in a single AddPath capability entry, which also must be presented in a single capability message. Without this patch the AddPath capability of a peer advertising multiple AFISAFIs cannot be parsed and the connection will fail.
89,495
11.05.2020 02:33:36
-7,200
1ceee5169b1d69613480a5b88659722a13ab6bef
Fix crash on route withdrawal with addpath If addpath is enabled rx then adjRIBIn.RemovePath() will access a member of p. As p might be nil (e.g. called by fsm_address_family withdraw()) we need to check for this before accessing it.
[ { "change_type": "MODIFY", "old_path": "routingtable/adjRIBIn/adj_rib_in.go", "new_path": "routingtable/adjRIBIn/adj_rib_in.go", "diff": "@@ -220,7 +220,7 @@ func (a *AdjRIBIn) removePath(pfx *net.Prefix, p *route.Path) bool {\noldPaths := r.Paths()\nfor _, path := range oldPaths {\nif a.addPathRX {...
Go
Apache License 2.0
bio-routing/bio-rd
Fix crash on route withdrawal with addpath If addpath is enabled rx then adjRIBIn.RemovePath() will access a member of p. As p might be nil (e.g. called by fsm_address_family withdraw()) we need to check for this before accessing it.
89,495
11.05.2020 22:37:41
-7,200
46e596b7b4cfc9b8f5d68c05b37e9d13d6474acd
Add functions to AdjRIBIn/AdjRIBOut for RIS The funtions RegisterWithOptions(), LPPM(), Get() and GetLonger() need to be exposed by AdjRIBIn/AdjRIBOut. This makes these RIBs usable in much the same way as LocRIB for the RIS.
[ { "change_type": "MODIFY", "old_path": "routingtable/adjRIBIn/adj_rib_in.go", "new_path": "routingtable/adjRIBIn/adj_rib_in.go", "diff": "@@ -254,6 +254,11 @@ func (a *AdjRIBIn) Register(client routingtable.RouteTableClient) {\na.clientManager.RegisterWithOptions(client, routingtable.ClientOptions{B...
Go
Apache License 2.0
bio-routing/bio-rd
Add functions to AdjRIBIn/AdjRIBOut for RIS The funtions RegisterWithOptions(), LPPM(), Get() and GetLonger() need to be exposed by AdjRIBIn/AdjRIBOut. This makes these RIBs usable in much the same way as LocRIB for the RIS.
89,495
25.05.2020 18:52:59
-7,200
c6f64ea181035a4bc30f11bc5c6e197c9b08a811
Add description field to PeerConfig and BGP API When creating a BGP peer the description field can be filled as well. This can then be exported via API.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/api/session.pb.go", "new_path": "protocols/bgp/api/session.pb.go", "diff": "@@ -69,6 +69,7 @@ type Session struct {\nStatus Session_State `protobuf:\"varint,5,opt,name=status,proto3,enum=bio.bgp.Session_State\" json:\"status,omitempty\"`\nStats *...
Go
Apache License 2.0
bio-routing/bio-rd
Add description field to PeerConfig and BGP API When creating a BGP peer the description field can be filled as well. This can then be exported via API.
89,480
30.06.2020 15:09:26
-7,200
f8b1767b64af60f67fb854512faaa8223731ad8b
Cleanup BMP server locking and make VRF id human readable
[ { "change_type": "MODIFY", "old_path": "cmd/ris/risserver/server.go", "new_path": "cmd/ris/risserver/server.go", "diff": "@@ -10,6 +10,7 @@ import (\n\"github.com/bio-routing/bio-rd/routingtable\"\n\"github.com/bio-routing/bio-rd/routingtable/filter\"\n\"github.com/bio-routing/bio-rd/routingtable/lo...
Go
Apache License 2.0
bio-routing/bio-rd
Cleanup BMP server locking and make VRF id human readable (#276)
89,480
30.06.2020 15:45:11
-7,200
7fec6acf0ffe75c1b255964d13031fc5e74da172
RIS: Make logging more clear and verbose
[ { "change_type": "MODIFY", "old_path": "cmd/ris/risserver/server.go", "new_path": "cmd/ris/risserver/server.go", "diff": "@@ -11,11 +11,13 @@ import (\n\"github.com/bio-routing/bio-rd/routingtable/filter\"\n\"github.com/bio-routing/bio-rd/routingtable/locRIB\"\n\"github.com/bio-routing/bio-rd/routin...
Go
Apache License 2.0
bio-routing/bio-rd
RIS: Make logging more clear and verbose (#277)
89,480
17.07.2020 10:48:13
-7,200
8b9426ff19e90872e981d4038e74b8c8144be7d7
RIS: Add VRF string to DumpRIB and make it usable from riscli
[ { "change_type": "MODIFY", "old_path": "cmd/ris/api/ris.pb.go", "new_path": "cmd/ris/api/ris.pb.go", "diff": "@@ -501,6 +501,7 @@ func (m *RIBUpdate) GetRoute() *api1.Route {\ntype DumpRIBRequest struct {\nRouter string `protobuf:\"bytes,1,opt,name=router,proto3\" json:\"router,omitempty\"`\nVrfId u...
Go
Apache License 2.0
bio-routing/bio-rd
RIS: Add VRF string to DumpRIB and make it usable from riscli (#281)
89,489
06.02.2021 18:38:45
-3,600
b4ff6fd1e1bd7003faabb98167e584d93a15d337
add test for IPv4FromBytes
[ { "change_type": "MODIFY", "old_path": "net/ip_test.go", "new_path": "net/ip_test.go", "diff": "@@ -674,3 +674,24 @@ func TestMaskLastNBits(t *testing.T) {\nassert.Equal(t, test.expected, res, test.name)\n}\n}\n+\n+func TestIPv4FromBytes(t *testing.T) {\n+ resultZero := IPv4FromBytes([]byte{})\n+ as...
Go
Apache License 2.0
bio-routing/bio-rd
add test for IPv4FromBytes
89,489
23.06.2021 03:05:40
25,200
7fa5cba21192d1f023189d77a2be24fa467f0766
Add test for as_path.go + repair String() Adds test for protocols/bgp/types/as_path.go. The String() function of ASPath was re-implemented because its output was broken: sometimes spaces were missing or in case it only contained one ASSet it used to generate a leading space.
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/types/as_path.go", "new_path": "protocols/bgp/types/as_path.go", "diff": "package types\nimport (\n- \"fmt\"\n+ \"strconv\"\n+ \"strings\"\n\"github.com/bio-routing/bio-rd/route/api\"\n)\n@@ -154,28 +155,32 @@ func ASPathFromProtoASPath(segments ...
Go
Apache License 2.0
bio-routing/bio-rd
Add test for as_path.go + repair String() (#303) Adds test for protocols/bgp/types/as_path.go. The String() function of ASPath was re-implemented because its output was broken: sometimes spaces were missing or in case it only contained one ASSet it used to generate a leading space. Reviewed by @taktv6
89,494
06.09.2021 09:11:10
-7,200
8a5d2cc6cfbef9e3bf8fcf5a5e75fcff1c83bf9b
Migrate to sys/unix, since usage of syscall is not recommended. Also use Standard error wrapping. SOL_IP and SOL_IPV6 is defined in tcp.go to allow compilation under Darwin. Seehttps://pkg.go.dev/syscall
[ { "change_type": "MODIFY", "old_path": "net/tcp/listen.go", "new_path": "net/tcp/listen.go", "diff": "package tcp\nimport (\n+ \"fmt\"\n\"net\"\n- \"syscall\"\n- \"github.com/pkg/errors\"\n+ \"golang.org/x/sys/unix\"\n)\n// Listener listens for TCP clients\n@@ -19,59 +19,59 @@ func Listen(laddr *net...
Go
Apache License 2.0
bio-routing/bio-rd
Migrate to sys/unix, since usage of syscall is not recommended. Also use Standard error wrapping. SOL_IP and SOL_IPV6 is defined in tcp.go to allow compilation under Darwin. Seehttps://pkg.go.dev/syscall
89,486
01.12.2021 13:47:36
-3,600
95fd33853dd29c9cba11a58fdc8b14824dfef6be
Use github actions * Use portable POSIX constants * Use github actions * Update GitHub Actions Add super-linter * Make markdownlint happy * Don't test on macos * Go 1.17 only
[ { "change_type": "DELETE", "old_path": ".circleci/check-gofmt", "new_path": null, "diff": "-#!/bin/bash\n-\n-result=\"$(gofmt -e -s -l . 2>&1 | grep -v '^vendor/' )\"\n-if [ -n \"$result\" ]; then\n- echo \"Go code is not formatted, run 'gofmt -e -s -w .'\" >&2\n- echo \"$result\"\n- exit 1\n-else\n...
Go
Apache License 2.0
bio-routing/bio-rd
Use github actions (#256) * Use portable POSIX constants * Use github actions * Update GitHub Actions Add super-linter * Make markdownlint happy * Don't test on macos * Go 1.17 only Co-authored-by: Julian Kornberger <jk+github@digineo.de> Co-authored-by: takt <oliver.peter.herms@gmail.com> Co-authored-by: Annika Wickert <awlx@github.com> Co-authored-by: Oliver Geiselhardt-Herms <ogeiselhardt-herms@cloudflare.com>
89,479
02.12.2021 14:22:55
-3,600
7eb401509d820216199eaa3287b7152f6361b3e0
add rib filtering options to riscli
[ { "change_type": "MODIFY", "old_path": "cmd/riscli/dump_loc_rib.go", "new_path": "cmd/riscli/dump_loc_rib.go", "diff": "@@ -21,6 +21,9 @@ func NewDumpLocRIBCommand() cli.Command {\nFlags: []cli.Flag{\n&cli.BoolFlag{Name: \"4\", Usage: \"print IPv4 routes\"},\n&cli.BoolFlag{Name: \"6\", Usage: \"prin...
Go
Apache License 2.0
bio-routing/bio-rd
add rib filtering options to riscli
89,479
07.12.2021 17:12:05
-3,600
eb1a0116465ae4c06b7c620645f29c96ded030f9
allow forks to be linted
[ { "change_type": "MODIFY", "old_path": ".github/workflows/linter.yml", "new_path": ".github/workflows/linter.yml", "diff": "##########################\n- name: Checkout Code\nuses: actions/checkout@v2\n+ with:\n+ fetch-depth: 0\n+ ref: ${{github.event.pull_request.head.ref}}\n+ repository: ${{github...
Go
Apache License 2.0
bio-routing/bio-rd
allow forks to be linted
89,480
09.12.2021 12:24:09
-3,600
833361a1fd03ead830e63ffcf9cd837d21692089
Add gofmt, drop linter
[ { "change_type": "ADD", "old_path": null, "new_path": ".github/check-gofmt.sh", "diff": "+#!/bin/bash\n+\n+result=\"$(gofmt -e -s -l . 2>&1 | grep -v '^vendor/' )\"\n+if [ -n \"$result\" ]; then\n+ echo \"Go code is not formatted, run 'gofmt -e -s -w .'\" >&2\n+ echo \"$result\"\n+ exit 1\n+else\n+ ...
Go
Apache License 2.0
bio-routing/bio-rd
Add gofmt, drop linter
89,479
09.12.2021 14:56:00
-3,600
4298c6ee7c2dac7633f768f1ae4dce5965fed119
add nil pointer check for validating connection
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_server.go", "new_path": "protocols/bgp/server/bmp_server.go", "diff": "@@ -91,6 +91,9 @@ func (b *BMPServer) Listen(addr string) error {\nfunc (b *BMPServer) validateConnection(c net.Conn) (*Router, bool) {\nr := b.getRouter(c.RemoteAd...
Go
Apache License 2.0
bio-routing/bio-rd
add nil pointer check for validating connection (#316)
89,488
20.01.2022 14:49:46
-3,600
69466c766a8931b169143cfb7db3ec063113b2cd
bmp: set local ASN to number from capability in case of ASN4
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_router.go", "new_path": "protocols/bgp/server/bmp_router.go", "diff": "@@ -409,6 +409,10 @@ func (p *peer) configureBySentOpen(msg *packet.BGPOpen) {\n}\n}\n}\n+ case packet.ASN4CapabilityCode:\n+ if p.localASN == packet.ASTransASN {\n...
Go
Apache License 2.0
bio-routing/bio-rd
bmp: set local ASN to number from capability in case of ASN4 (#320) Co-authored-by: takt <oliver.peter.herms@gmail.com>
89,480
29.01.2022 17:37:08
-3,600
f1c2ffffcd0bf887abc1ca044a94595908c98c70
BGP-LU: Add support for BGP-LU (de)serialization Add support for MP-Reach BGP-LU (de)serialization and unreach NLRI support
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/bgp.go", "new_path": "protocols/bgp/packet/bgp.go", "diff": "@@ -95,6 +95,7 @@ const (\nIPv4AFI = 1\nIPv6AFI = 2\nUnicastSAFI = 1\n+ LabeledUnicastSAFI = 4\nCapabilitiesParamType = 2\nMultiProtocolCapabilityCode = 1\nMultiProtocolReachNLRI...
Go
Apache License 2.0
bio-routing/bio-rd
BGP-LU: Add support for BGP-LU (de)serialization (#321) Add support for MP-Reach BGP-LU (de)serialization and unreach NLRI support
89,481
29.01.2022 19:02:25
-3,600
1053f1b1e9f8e7a26ae229049fbff4be7fe113e0
Remove unused SerializeUpdateAddPath() method
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/update.go", "new_path": "protocols/bgp/packet/update.go", "diff": "@@ -73,60 +73,3 @@ func (b *BGPUpdate) SerializeUpdate(opt *EncodeOptions) ([]byte, error) {\nreturn buf.Bytes(), nil\n}\n-\n-func (b *BGPUpdate) SerializeUpdateAddPath(opt...
Go
Apache License 2.0
bio-routing/bio-rd
Remove unused SerializeUpdateAddPath() method (#322) Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
89,481
29.01.2022 23:39:22
-3,600
de25818c83f61e64a8616bc291572c244385dbd7
serializePrefix() isn't used anymore
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/packet/helper.go", "new_path": "protocols/bgp/packet/helper.go", "diff": "@@ -6,20 +6,6 @@ import (\nbnet \"github.com/bio-routing/bio-rd/net\"\n)\n-func serializePrefix(pfx bnet.Prefix) []byte {\n- if pfx.Pfxlen() == 0 {\n- return []byte{}\n- }\...
Go
Apache License 2.0
bio-routing/bio-rd
serializePrefix() isn't used anymore (#324) Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
89,497
12.04.2022 13:22:41
-7,200
6b41ade9c09f085191ca8a56cfd6f0db3e3c6b63
Update Readme.md fix link to benchmark repo
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -43,5 +43,5 @@ go mod tidy\n## Benchmarks\n-The benchmarks can be found in the [bio-rd-benchmarks](/bio-routing/bio-rd-benchmarks)\n+The benchmarks can be found in the [bio-routing/bio-rd-benchmarks](https://git...
Go
Apache License 2.0
bio-routing/bio-rd
Update Readme.md (#327) fix link to benchmark repo
89,480
14.07.2022 22:47:07
-7,200
5effa8cbc3f75cee126ea7f87ea605dcf6a31a63
ISIS: Allow removing interface
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/config/isis.go", "new_path": "cmd/bio-rd/config/isis.go", "diff": "@@ -78,3 +78,13 @@ func (i *ISISInterfaceLevel) loadDefaults() {\ni.HoldTime = defaultHoldTime\n}\n}\n+\n+func (i *ISIS) InterfaceConfigured(name string) bool {\n+ for _, x := range ...
Go
Apache License 2.0
bio-routing/bio-rd
ISIS: Allow removing interface (#328)
89,480
17.07.2022 20:05:12
-7,200
af2a5e40cc353c891d9ba5afc1f51efe8f0213cc
Implement LSP, CSNP + PSNP RX handling
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/main.go", "new_path": "cmd/bio-rd/main.go", "diff": "@@ -37,6 +37,8 @@ var (\nfunc main() {\nflag.Parse()\n+ log.SetLevel(log.DebugLevel)\n+\nstartCfg, err := config.GetConfig(*configFilePath)\nif err != nil {\nlog.Errorf(\"unable to get config: %v\...
Go
Apache License 2.0
bio-routing/bio-rd
Implement LSP, CSNP + PSNP RX handling (#329)
89,480
18.07.2022 19:46:11
-7,200
84b39b99fe4c7f13d104c2c9d49f2a47e47783a5
Implement ISIS server management API
[ { "change_type": "MODIFY", "old_path": "cmd/bio-rd/main.go", "new_path": "cmd/bio-rd/main.go", "diff": "@@ -12,6 +12,7 @@ import (\nbgpapi \"github.com/bio-routing/bio-rd/protocols/bgp/api\"\nbgpserver \"github.com/bio-routing/bio-rd/protocols/bgp/server\"\n\"github.com/bio-routing/bio-rd/protocols/...
Go
Apache License 2.0
bio-routing/bio-rd
Implement ISIS server management API (#330)
89,480
25.07.2022 18:03:25
-7,200
a8ab4a6303cb3bf98e52f2654c128ef5878e0e70
Refactoring: Make Adj-RIB-In pluggable
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_router.go", "new_path": "protocols/bgp/server/bmp_router.go", "diff": "@@ -48,6 +48,7 @@ type Router struct {\nribClients map[afiClient]struct{}\nribClientsMu sync.Mutex\n+ adjRIBInFactory adjRIBInFactoryI\ncounters routerCounters\n}\n...
Go
Apache License 2.0
bio-routing/bio-rd
Refactoring: Make Adj-RIB-In pluggable (#333) Co-authored-by: Oliver Geiselhardt-Herms <ogeiselhardt-herms@cloudflare.com>
89,480
26.07.2022 18:11:14
-7,200
60415894b4d0ee70c746ddafc5854bd566ad70b1
BMP: Support pre policy monitoring
[ { "change_type": "MODIFY", "old_path": "protocols/bgp/server/bmp_router.go", "new_path": "protocols/bgp/server/bmp_router.go", "diff": "@@ -181,7 +181,8 @@ func (r *Router) processRouteMonitoringMsg(msg *bmppkt.RouteMonitoringMsg) {\ns := n.fsm.state.(*establishedState)\nopt := s.fsm.decodeOptions()...
Go
Apache License 2.0
bio-routing/bio-rd
BMP: Support pre policy monitoring (#336)