Jiajie Chen
|
2c3a4d75dd
|
implement getaddr for netlink, ip l/ip a is working now
|
2019-04-07 02:19:07 +08:00 |
|
Jiajie Chen
|
1f99f1270a
|
Implement recvmsg syscall for netlink
|
2019-04-06 14:21:35 +08:00 |
|
Jiajie Chen
|
6335597897
|
Add netlink socket skeleton
|
2019-04-06 13:33:17 +08:00 |
|
Jiajie Chen
|
55df9ca892
|
Initial support for ioctl SIOCGARP
|
2019-04-04 21:38:32 +08:00 |
|
Jiajie Chen
|
c944d2269d
|
Enable user to send to iface directly via packet socket
|
2019-04-04 20:31:46 +08:00 |
|
Jiajie Chen
|
77f8afa30c
|
Refactor network endpoint, and add basic support for sockaddr_ll
|
2019-04-04 20:01:59 +08:00 |
|
Jiajie Chen
|
d3a462e8a0
|
Implement hdrincl for raw socket
|
2019-04-04 14:32:58 +08:00 |
|
WangRunji
|
1ffd44cde0
|
HUGE REFACTOR net module
|
2019-03-29 13:23:49 +08:00 |
|
Jiajie Chen
|
556d263d8e
|
Implement sys_openat and sys_renameat
|
2019-03-24 00:36:13 +08:00 |
|
Jiajie Chen
|
9f03bfc849
|
Add rand module for ip port randomization and use ethernet default mtu in ixgbe
|
2019-03-23 18:23:02 +08:00 |
|
WangRunji
|
5ddd5ece8d
|
rename, simplify
|
2019-03-22 23:45:57 +08:00 |
|
Jiajie Chen
|
960ef2e1f8
|
Implement PCI driver detach and merge NetDriver trait into Driver
|
2019-03-20 11:36:41 +08:00 |
|
Jiajie Chen
|
fffc330f47
|
Fix u540 serial print and fix sys_accept
|
2019-03-19 22:58:17 +08:00 |
|
Jiajie Chen
|
5d601c3ea4
|
Move socket to global, move and merge functions to net/structs.rs
|
2019-03-19 18:33:13 +08:00 |
|
Jiajie Chen
|
23b4c39ec7
|
Enlarge tcp send/recv buf for sys_accept() sockets
|
2019-03-17 11:24:50 +08:00 |
|
Jiajie Chen
|
755f820c41
|
Enable interrupt throttling, use spin before wait in sys_read and fix sys_bind, sys_poll for udp
|
2019-03-17 00:33:05 +08:00 |
|
Jiajie Chen
|
236c403f36
|
Enable ixgbe ip receive checksum
|
2019-03-16 15:58:32 +08:00 |
|
Jiajie Chen
|
0977814d34
|
Fix ixgbe and e1000 drivers by adding IFCS bit
|
2019-03-16 10:05:43 +08:00 |
|
Jiajie Chen
|
af63d937d6
|
Add udp remote endpoint state
|
2019-03-12 13:38:20 +08:00 |
|
Jiajie Chen
|
33ce72703b
|
Enlarge tcp send/recv buf, implement getsockopt for send/recv buf and add spin_and_wait
|
2019-03-12 11:59:31 +08:00 |
|
jiegec
|
09588d7a1f
|
Fix Sockaddr, implement sys_rusage and fix readv
|
2019-03-12 09:54:58 +08:00 |
|
Jiajie Chen
|
cb0a51d28d
|
Use union to implement sockaddr, and eliminate many warnings
|
2019-03-10 08:39:22 +08:00 |
|
Jiajie Chen
|
d041884cc2
|
Fix sys_accept deadlock
|
2019-03-10 01:20:50 +08:00 |
|
Jiajie Chen
|
6697861860
|
Add is_listening to TcpSocketState, support sys_poll for listen
|
2019-03-10 00:58:10 +08:00 |
|
Jiajie Chen
|
d0d05acfd0
|
Implement Clone for SocketWrapper
|
2019-03-10 00:48:04 +08:00 |
|
WangRunji
|
84c12ae6e1
|
rename functions. ignore readonly in mmap to avoid page fault.
|
2019-03-09 15:55:00 +08:00 |
|
WangRunji
|
84b2af3cdb
|
refactor sys_close_internal to SocketWrapper::drop
|
2019-03-09 12:49:59 +08:00 |
|
WangRunji
|
c3563192b5
|
fix SysResult::Ok(isize -> usize)
|
2019-03-08 19:04:39 +08:00 |
|
Jiajie Chen
|
b590545375
|
Implement sys_pwrite, sys_accept4 and dummy sys_chown, sys_epoll_create1. Allow recvfrom for tcp
|
2019-03-08 18:03:46 +08:00 |
|
Jiajie Chen
|
35dad6853f
|
Enable SSE and save FP registers in trapframe, implement sys_pread, sys_uname and sys_sched_getaffinity, support FIXED in mmap
|
2019-03-08 14:24:20 +08:00 |
|
Jiajie Chen
|
cca53536d1
|
Implement sys_pipe, fix sys_chdir, add dummy sys_setuid, and set an ephermal port when binding port 0
|
2019-03-07 19:31:46 +08:00 |
|
Jiajie Chen
|
bf5e176176
|
Implement sys_shutdown
|
2019-03-07 18:07:54 +08:00 |
|
Jiajie Chen
|
026ee459ec
|
Fix sys_poll, implement sys_getpeername and dummy sys_access
|
2019-03-07 16:55:02 +08:00 |
|
WangRunji
|
bc6818e365
|
minor improvement of net syscalls
|
2019-03-07 16:43:55 +08:00 |
|
Jiajie Chen
|
a1576b12ad
|
Fix dup2 socket ref count and sys_accept, close sockets on sys_exit
|
2019-03-07 14:55:31 +08:00 |
|
Jiajie Chen
|
c5aa5922bd
|
Fix forking and sys_dup2, implement sys_getsockopt and update sys_exec
|
2019-03-07 14:21:26 +08:00 |
|
Jiajie Chen
|
781630e06d
|
Implement sys_select and nc is working
|
2019-03-07 09:47:36 +08:00 |
|
Jiajie Chen
|
8b9aecca1c
|
Fix a potential racing in park() and unpark(), fix sys_poll for a running telnet
|
2019-03-07 07:46:11 +08:00 |
|
WangRunji
|
9e6483f488
|
refactor driver: make (Net)Driver Sync. may help avoid deadlock?
|
2019-03-07 01:00:46 +08:00 |
|
Jiajie Chen
|
42b02453a0
|
Implement basic version of sys_poll supporting stdin and socket, fix some deadlocks and introduce some others
|
2019-03-06 20:24:55 +08:00 |
|
Jiajie Chen
|
2683314c38
|
Allocate pages eagerly for Delay when forking. Implement sys_getsockname.
|
2019-03-06 15:35:10 +08:00 |
|
Jiajie Chen
|
3e6860ae8a
|
Fix lookup_inode for absolute path, and implement sys_accept for tcp
|
2019-03-06 10:57:28 +08:00 |
|
Jiajie Chen
|
a51b9dbd90
|
Implement tls setup code(not working yet), tcp sys_bind and sys_connect
|
2019-03-06 10:19:19 +08:00 |
|
Jiajie Chen
|
82e273df58
|
Implement sys_read for tcp
|
2019-03-05 09:35:59 +08:00 |
|
Jiajie Chen
|
0cf57be9e5
|
Tftp client is working by implement udp in some syscalls
|
2019-03-05 00:57:40 +08:00 |
|
Jiajie Chen
|
c6c89198cd
|
Add cmos rtc driver for x86
|
2019-03-04 16:25:57 +08:00 |
|
Jiajie Chen
|
1a1e39c960
|
Move socket set to iface, redesign NetDriver trait and implement blocking net syscalls
|
2019-03-04 15:34:02 +08:00 |
|
WangRunji
|
738554386b
|
introduce VMError to simplify EFAULT error handling
|
2019-03-03 01:27:30 +08:00 |
|
Jiajie Chen
|
81176e5561
|
Implement raw socket for ping and add SocketWrapper struct
|
2019-03-03 00:44:46 +08:00 |
|
Jiajie Chen
|
d8345e96c7
|
Fix typo
|
2019-03-01 08:09:01 +08:00 |
|