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:
parent
41e9ad5ea0
commit
93c16590f1
3 changed files with 44 additions and 40 deletions
|
@ -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}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue