Skip to content

Commit f588fa2

Browse files
BUG: sockaddr cannot transmit parameters normally (#56)
* bug:Key error: size_of::<__kernel_sa_family_t>() should be greater than len. If the condition is incorrectly written, the parameters cannot be transmitted normally. * Implement the SocketAddrExt trait so that sockaddr can be directly converted to SocketAddr. Use tcp_client to call sys_connect test and pass normally * Modify the comments, delete socketaddr.rs, and correct write_to_user to write to dst_addr, and test successfully in sys_getsockname * Remove sockaddr in libs.rs * fix by cargo fmt --all * fix by make clippy * When converting SocketAddr, directly read UserConstPtr to judge family, and implement forwarding for family and addr_len methods * Remove excess type identifiers * rerun CICD
1 parent 706ea03 commit f588fa2

File tree

3 files changed

+235
-197
lines changed

3 files changed

+235
-197
lines changed

api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub mod file;
99
pub mod path;
1010
pub mod ptr;
1111
pub mod signal;
12-
pub mod sockaddr;
12+
pub mod socket;
1313
pub mod time;
1414

1515
mod imp;

api/src/sockaddr.rs

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)