1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

Kernel: Remove specific devices from network code

By setting up the devices in init() and looping over the registered
network adapters in NetworkTask_main, we can remove the remaining
hard-coded adapter references from the network code.

This also assigns IPs according to the default range supplied by QEMU
in its slirp networking mode.
This commit is contained in:
Conrad Pankoff 2019-08-28 21:53:01 +10:00 committed by Andreas Kling
parent 41e9ad5ea0
commit 93c16590f1
3 changed files with 44 additions and 40 deletions

View file

@ -45,7 +45,7 @@ elif [ "$1" = "qgrub" ]; then
-device VGA,vgamem_mb=64 \
-debugcon stdio \
-object filter-dump,id=hue,netdev=breh,file=e1000.pcap \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888 \
-device e1000,netdev=breh \
-hda _disk_image \
-soundhw pcspk
@ -57,7 +57,7 @@ else
-device VGA,vgamem_mb=64 \
-debugcon stdio \
-object filter-dump,id=hue,netdev=breh,file=e1000.pcap \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888 \
-device e1000,netdev=breh \
-kernel kernel \
-append "${SERENITY_KERNEL_CMDLINE}" \