Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kernel/src/net/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ pub struct UdpSocket {
impl UdpSocket {
/// 元数据的缓冲区的大小
pub const DEFAULT_METADATA_BUF_SIZE: usize = 1024;
/// 默认的发送缓冲区的大小 transmiss
pub const DEFAULT_RX_BUF_SIZE: usize = 64 * 1024;
/// 默认的接收缓冲区的大小 receive
pub const DEFAULT_RX_BUF_SIZE: usize = 64 * 1024;
/// 默认的发送缓冲区的大小 transmiss
pub const DEFAULT_TX_BUF_SIZE: usize = 64 * 1024;

/// @brief 创建一个原始的socket
Expand Down
2 changes: 1 addition & 1 deletion tools/run-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fi

# ps: 下面这条使用tap的方式,无法dhcp获取到ip,暂时不知道为什么
# QEMU_DEVICES="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -net nic,netdev=nic0 -netdev tap,id=nic0,model=virtio-net-pci,script=qemu/ifup-nat,downscript=qemu/ifdown-nat -usb -device qemu-xhci,id=xhci,p2=8,p3=4 "
QEMU_DEVICES="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -netdev user,id=hostnet0,hostfwd=tcp::12580-:12580 -device virtio-net-pci,vectors=5,netdev=hostnet0,id=net0 -usb -device qemu-xhci,id=xhci,p2=8,p3=4 "
QEMU_DEVICES="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -netdev user,id=hostnet0,hostfwd=tcp::12580-:12580,hostfwd=udp::12569-:69 -device virtio-net-pci,vectors=5,netdev=hostnet0,id=net0 -usb -device qemu-xhci,id=xhci,p2=8,p3=4 "
# E1000E
# QEMU_DEVICES="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -netdev user,id=hostnet0,hostfwd=tcp::12580-:12580 -net nic,model=e1000e,netdev=hostnet0,id=net0 -netdev user,id=hostnet1,hostfwd=tcp::12581-:12581 -device virtio-net-pci,vectors=5,netdev=hostnet1,id=net1 -usb -device qemu-xhci,id=xhci,p2=8,p3=4 "
QEMU_ARGUMENT+="-d ${QEMU_DISK_IMAGE} -m ${QEMU_MEMORY} -smp ${QEMU_SMP} -boot order=d ${QEMU_MONITOR} -d ${qemu_trace_std} "
Expand Down
23 changes: 23 additions & 0 deletions user/dadk/config/tftpd_0_2_10.dadk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "tftpd",
"version": "0.2.10",
"description": "Multithreaded TFTP server daemon for DragonOS",
"task_type": {
"BuildFromSource": {
"Git": {
"url": "https://github.com/yuyi2439/rs-tftpd/",
"branch": "dragon-tftpd"
}
}
},
"depends": [],
"build": {
"build_command": "make install"
},
"install": {
"in_dragonos_path": "/"
},
"clean": {
"clean_command": "make clean"
}
}