Home
last modified time | relevance | path

Searched refs:new_port (Results 1 – 2 of 2) sorted by relevance

/third_party/selinux/libsepol/src/
Dport_record.c224 sepol_port_t *new_port = NULL; in sepol_port_clone() local
225 if (sepol_port_create(handle, &new_port) < 0) in sepol_port_clone()
228 new_port->low = port->low; in sepol_port_clone()
229 new_port->high = port->high; in sepol_port_clone()
230 new_port->proto = port->proto; in sepol_port_clone()
233 (sepol_context_clone(handle, port->con, &new_port->con) < 0)) in sepol_port_clone()
236 *port_ptr = new_port; in sepol_port_clone()
241 sepol_port_free(new_port); in sepol_port_clone()
/third_party/rust/crates/rustix/src/net/
Daddr.rs222 pub fn set_port(&mut self, new_port: u16) { in set_port()
224 SocketAddr::V4(ref mut a) => a.set_port(new_port), in set_port()
225 SocketAddr::V6(ref mut a) => a.set_port(new_port), in set_port()
370 pub fn set_port(&mut self, new_port: u16) { in set_port()
371 self.port = new_port; in set_port()
475 pub fn set_port(&mut self, new_port: u16) { in set_port()
476 self.port = new_port; in set_port()