Home
last modified time | relevance | path

Searched refs:tcp (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/crates/rbpf/examples/
H A Dload_elf__block_a_port.c31 struct tcphdr *tcp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() local
34 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*tcp) > data_end) in handle_ingress()
40 if (tcp->source == BLOCKED_TCP_PORT || tcp->dest == BLOCKED_TCP_PORT) in handle_ingress()
/DragonOS/kernel/src/net/socket/
H A Dinet.rs4 socket::{raw, tcp, udp},
542 socket: &mut tcp::Socket, in do_listen()
567 fn create_new_socket() -> tcp::Socket<'static> { in create_new_socket()
569 let rx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_RX_BUF_SIZE]); in create_new_socket()
570 let tx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_TX_BUF_SIZE]); in create_new_socket()
571 tcp::Socket::new(rx_buffer, tx_buffer) in create_new_socket()
580 let socket = socketset_guard.get::<tcp::Socket>(sh); in tcp_poll_listening()
606 .get_mut::<smoltcp::socket::tcp::Socket>(smoltcp_handle) in close()
635 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in read()
658 Err(tcp::RecvError::InvalidState) => { in read()
[all …]
H A Dmod.rs14 socket::{self, raw, tcp, udp},
787 socket::Socket::Tcp(tcp) => Self::tcp_poll(tcp, shutdown, handle_item.is_posix_listen), in poll()
794 socket: &tcp::Socket, in tcp_poll()
813 if shutdown == ShutdownType::SHUTDOWN_MASK || state == tcp::State::Closed { in tcp_poll()
824 if state != tcp::State::SynSent && state != tcp::State::SynReceived { in tcp_poll()
842 } else if state == tcp::State::SynSent { in tcp_poll()
/DragonOS/user/apps/test-backlog/
H A DREADME.md2 用于测试tcp的backlog功能的测试程序
H A DCargo.toml5 description = "test the tcp backlog"
/DragonOS/user/dadk/config/
H A Dtest_backlog_0_1_0.dadk4 "description": "test the tcp backlog",
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.7.md202 3.完善tcp,udp,raw socket
271 增加对dhcpv4的支持(tcp、udp socket已写好,但由于缺少epoll机制,尚未完整测试) (#237)
277 * 初步写完udp和tcp socket
H A DV0.1.10.md68 - feat(net): 实现tcp backlog功能 (#714)
110 - 移植dns查询工具dog的--tcp功能 (#652)
508 feat(net): 实现tcp backlog功能 (#714)
510 * feat:实现tcp的backlog功能
783 移植dns查询工具dog的--tcp功能 (#652)
/DragonOS/kernel/src/net/
H A Dnet_core.rs234 if inner_socket.state() == smoltcp::socket::tcp::State::Established { in send_event()
237 if inner_socket.state() == smoltcp::socket::tcp::State::CloseWait { in send_event()
/DragonOS/kernel/
H A DCargo.toml54 … = false, features = ["log", "alloc", "socket-raw", "socket-udp", "socket-tcp", "socket-icmp", "s…