Lines Matching refs:u16
37 tcp_port_table: SpinLock<HashMap<u16, Arc<GlobalSocketHandle>>>,
39 udp_port_table: SpinLock<HashMap<u16, Arc<GlobalSocketHandle>>>,
51 pub fn get_ephemeral_port(&self, socket_type: SocketType) -> Result<u16, SystemError> { in get_ephemeral_port() argument
54 static mut EPHEMERAL_PORT: u16 = 0; in get_ephemeral_port()
57 EPHEMERAL_PORT = (49152 + rand() % (65536 - 49152)) as u16; in get_ephemeral_port()
62 let mut port: u16; in get_ephemeral_port()
94 port: u16, in get_port() argument
113 pub fn unbind_port(&self, socket_type: SocketType, port: u16) -> Result<(), SystemError> { in unbind_port()
357 packet.set_total_len((20 + len) as u16); in write()
1093 impl TryFrom<u16> for AddressFamily {
1095 fn try_from(x: u16) -> Result<Self, Self::Error> { in try_from()