X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fbgp_client.rs;h=d2b3443b06d723840436edcd2cc7b3446776a3a6;hb=f018bfcb43aa4846a037d8a7884a1a28b3e66516;hp=dc5c6736a923fdfdbc2487d0fc51e2718034a40e;hpb=8f18b470ceb2288ace50e75dc2640f26f7daab0d;p=dnsseed-rust diff --git a/src/bgp_client.rs b/src/bgp_client.rs index dc5c673..d2b3443 100644 --- a/src/bgp_client.rs +++ b/src/bgp_client.rs @@ -145,7 +145,6 @@ impl RoutingTable { NLRIEncoding::IP_MPLS_WITH_PATH_ID(_) => (), NLRIEncoding::IP_VPN_MPLS(_) => (), NLRIEncoding::L2VPN(_) => (), - NLRIEncoding::FLOWSPEC(_) => (), }; } @@ -176,7 +175,6 @@ impl RoutingTable { NLRIEncoding::IP_MPLS_WITH_PATH_ID(_) => (), NLRIEncoding::IP_VPN_MPLS(_) => (), NLRIEncoding::L2VPN(_) => (), - NLRIEncoding::FLOWSPEC(_) => (), }; } } @@ -222,6 +220,9 @@ impl codec::Decoder for MsgCoder { match reader.read() { Ok((_header, msg)) => { decoder.buf.advance(decoder.pos); + if let Message::Open(ref o) = &msg { + self.0 = Some(Capabilities::from_parameters(o.parameters.clone())); + } Ok(Some(msg)) }, Err(e) => match e.kind() {