Attached are several patches for 2.4.19-12um that allow a UML to use SLIRP
as a networking transport. It modifies the SLIP transport to call the
userlevel program, slirp (which you must have compiled on your system). This
removes the need for root privileges or setuid binaries to get networking
Patch #01 just fixes a 'segfault with no mm' bug in the standard 2.4.19-12um
Patch #02 modifies the SLIP transport with basic SLIRP functionality. You
must select CONFIG_UML_NET_SLIPSLIRP when compiling your kernel, otherwise
you'll just get the regular SLIP transport. Example startup:
Note: just like in SLIP, the interface inside UML is named "umn", not
"eth0". In UML you would, "ifconfig umn 10.0.2.15", "route add default dev
umn" to get the interface up and kickstart slirp.
Patch #03 is a workaround for a bug that makes command line quoted strings
lose cohesion -- anything after a space is truncated. A startup string
(with quotes) like:
"eth0=slip,slirp,redir 8080 10.0.2.15:80"
comes out as:
I have no idea why quotes don't work, so in the mean time, patch #03 just
changes underscores to spaces:
'slirp' 'redir 8080 10.0.2.15:80'
Patch #04 fixes an issue in that the SLIP transport assumed 1 read == 1
packet, but SLIRP may send more than one packet at a time. This patch
remembers any extra bytes read to avoid mangling the data stream, and speed
Don't expect to set any lan' speed records, even with patch #04. I can only
get about 3Kbytes a second, and have no idea where the bottleneck is. If
you do, let me know...
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Get latest updates about Open Source Projects, Conferences and News.