Lines Matching refs:ip
23 pub ip: IpAddr, field
29 let family = match self.ip { in fmt()
34 write!(f, "{}:{}", self.ip, self.port) in fmt()
36 write!(f, "[{}]:{}", self.ip, self.port) in fmt()
44 ip: IpAddr::V4(Ipv4Addr::from(0)), in default()
79 let mut ip = [0; IPV6LEN]; in get_from_as() localVariable
80 let l = std::cmp::min(ip.len(), v[4..].len()); in get_from_as()
81 ip[..l].copy_from_slice(&v[4..4 + l]); in get_from_as()
82 self.ip = IpAddr::V6(Ipv6Addr::from(ip)); in get_from_as()
84 let mut ip = [0; IPV4LEN]; in get_from_as() localVariable
85 let l = std::cmp::min(ip.len(), v[4..].len()); in get_from_as()
86 ip[..l].copy_from_slice(&v[4..4 + l]); in get_from_as()
87 self.ip = IpAddr::V4(Ipv4Addr::from(ip)); in get_from_as()
95 let family = match self.ip { in add_to_as()
105 match self.ip { in add_to_as()