diff options
author | Kelvin Zhang <zhangxp1998@gmail.com> | 2020-01-12 18:47:31 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangxp1998@gmail.com> | 2020-01-13 15:36:26 -0500 |
commit | a5255332b83642de9d72b59787ce437a3ae1e5f1 (patch) | |
tree | c1f2fb792a730a0868cda89095d43856648caa7b /src/display/ui.rs | |
parent | e6c58c6021ffad2d0af6434e0d4521342a0d4b42 (diff) |
Sniff Ipv6 packets
Diffstat (limited to 'src/display/ui.rs')
-rw-r--r-- | src/display/ui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/ui.rs b/src/display/ui.rs index 0c4d36a..2c44d23 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -7,7 +7,7 @@ use crate::display::components::{HelpText, Layout, Table, TotalBandwidth}; use crate::display::UIState; use crate::network::{display_connection_string, display_ip_or_host, LocalSocket, Utilization}; -use ::std::net::Ipv4Addr; +use ::std::net::IpAddr; use chrono::prelude::*; @@ -17,7 +17,7 @@ where { terminal: Terminal<B>, state: UIState, - ip_to_host: HashMap<Ipv4Addr, String>, + ip_to_host: HashMap<IpAddr, String>, } impl<B> Ui<B> @@ -101,7 +101,7 @@ where &mut self, connections_to_procs: HashMap<LocalSocket, String>, utilization: Utilization, - ip_to_host: HashMap<Ipv4Addr, String>, + ip_to_host: HashMap<IpAddr, String>, ) { self.state.update(connections_to_procs, utilization); self.ip_to_host.extend(ip_to_host); |