Refactored client binary.
This commit is contained in:
@ -1,21 +1,19 @@
|
||||
[package]
|
||||
name = "integration_tests"
|
||||
version = "0.1.0"
|
||||
authors = ["Rayhaan Jaufeerally <rayhaan@rayhaan.ch>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
name = "integration_tests"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
bgpd = { path = "../../bgpd" }
|
||||
bytes = "1.*"
|
||||
tokio = { version = "1.6.1", features = ["full"] }
|
||||
tokio-util = { version = "0.6.7", features = ["codec"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
libc = "0.2.126"
|
||||
bgp_packet.workspace = true
|
||||
bgp_server.workspace = true
|
||||
bytes = "1.*"
|
||||
libc = "0.2.126"
|
||||
tokio = { version = "1.6.1", features = ["full"] }
|
||||
tokio-util = { version = "0.7.10", features = ["codec"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
serial_test = "0.5.1"
|
||||
|
||||
[unstable]
|
||||
thread_id_value = true
|
||||
@ -12,12 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use bgpd::bgp_packet;
|
||||
use bgpd::bgp_packet::constants::{AddressFamilyIdentifier, SubsequentAddressFamilyIdentifier};
|
||||
use bgpd::bgp_packet::messages::BGPSubmessage;
|
||||
use bgpd::bgp_packet::traits::ParserContext;
|
||||
use bgpd::server::bgp_server::Server;
|
||||
use bgpd::server::config::{PeerConfig, ServerConfig};
|
||||
use bgp_packet::constants::{AddressFamilyIdentifier, SubsequentAddressFamilyIdentifier};
|
||||
use bgp_packet::messages::BGPSubmessage;
|
||||
use bgp_packet::traits::ParserContext;
|
||||
use bgp_server::bgp_server::Server;
|
||||
use bgp_server::config::{PeerConfig, ServerConfig};
|
||||
use std::io::{Read, Write};
|
||||
use std::mem::size_of;
|
||||
use std::net::Ipv4Addr;
|
||||
@ -27,6 +26,7 @@ use std::net::TcpStream;
|
||||
use std::net::{IpAddr, SocketAddrV6};
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use std::time::Duration;
|
||||
use tokio::io::AsyncReadExt;
|
||||
use tokio_util::codec::Decoder;
|
||||
use tracing::info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user