Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs167 pub fn connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in connect()
168 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in connect()
185 pub fn bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in bind()
186 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in bind()
209 addrlen: usize, in sendto()
214 Some(SockAddr::to_endpoint(addr, addrlen)?) in sendto()
238 addrlen: *mut u32, in recvfrom()
254 sockaddr_in.write_to_user(addr, addrlen)?; in recvfrom()
330 pub fn accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<usize, SystemError> { in accept()
350 sockaddr_in.write_to_user(addr, addrlen)?; in accept()
[all …]
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs772 let addrlen = args[2] as usize; in handle() localVariable
775 if verify_area(virt_addr, addrlen as usize).is_err() { in handle()
779 Self::connect(args[0], addr, addrlen) in handle()
784 let addrlen = args[2] as usize; in handle() localVariable
787 if verify_area(virt_addr, addrlen as usize).is_err() { in handle()
791 Self::bind(args[0], addr, addrlen) in handle()
800 let addrlen = args[5] as usize; in handle() localVariable
807 } else if verify_area(virt_addr, addrlen as usize).is_err() { in handle()
812 Self::sendto(args[0], data, flags, addr, addrlen) in handle()
821 let addrlen = args[5] as *mut usize; in handle() localVariable
[all …]
/DragonOS-0.1.8/user/apps/http_server/
Dmain.c178 int addrlen = sizeof(address); in main() local
220 … if ((new_socket = accept(server_fd, (struct sockaddr *)&address, (socklen_t *)&addrlen)) < 0) in main()
/DragonOS-0.1.8/user/apps/test_bind/
Dmain.c17 int addrlen = sizeof(address); variable