Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(net):建立Unix InodeID映射表,并完善seqpacket相关功能 #929

Merged
merged 14 commits into from
Sep 19, 2024

Conversation

Saga1718
Copy link
Contributor

目前实现功能:

  1. 添加一个新的Endpoint(InodeId) 使用户创建的路径文件与Unix_socket的Inode映射并建立表维护
  2. 实现seqpacket_socket 的accepet()的阻塞实现
  3. 添加一个seqpacket的测试程序用于测试scoket和socket_pair
    目前还存在的问题:
  4. recvfrom的阻塞未完全实现,导致测试程序服务端不能保证收到数据(只有客户端先发数据才会收到数据)
  5. write和read系统调用会对file的offset进行调整,write调用时还会将offset(初始为0)与socket_inode的metadata里的size(目前返回为0)进行比较(offest<size时返回错误),由于部分socket采用双buffer机制,size不确定返回读还是写的buffer size,导致对单个socket read/recv可以调用很多次,write只能调用一次

@github-actions github-actions bot added the enhancement New feature or request label Sep 19, 2024
@Samuka007 Samuka007 merged commit 3ab8d05 into DragonOS-Community:feat-network-syscall Sep 19, 2024
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants