28.08.2015 Views

The Design and Implementation of the Anykernel and Rump Kernels

1F3KDce

1F3KDce

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B–19<br />

golem> rump.ping www.NetBSD.org<br />

PING www.NetBSD.org (204.152.190.12): 56 data bytes<br />

64 bytes from 204.152.190.12: icmp_seq=0 ttl=250 time=169.102 ms<br />

64 bytes from 204.152.190.12: icmp_seq=1 ttl=250 time=169.279 ms<br />

64 bytes from 204.152.190.12: icmp_seq=2 ttl=250 time=169.633 ms<br />

^C<br />

----www.NetBSD.org PING Statistics----<br />

3 packets transmitted, 3 packets received, 0.0% packet loss<br />

round-trip min/avg/max/stddev = 169.102/169.338/169.633/0.270 ms<br />

In case everything is working fine, you will see approximately <strong>the</strong> same latency as<br />

with <strong>the</strong> host networking stack.<br />

golem> ping www.NetBSD.org<br />

PING www.NetBSD.org (204.152.190.12): 56 data bytes<br />

64 bytes from 204.152.190.12: icmp_seq=0 ttl=250 time=169.134 ms<br />

64 bytes from 204.152.190.12: icmp_seq=1 ttl=250 time=169.281 ms<br />

64 bytes from 204.152.190.12: icmp_seq=2 ttl=250 time=169.497 ms<br />

^C<br />

----www.NetBSD.org PING Statistics----<br />

3 packets transmitted, 3 packets received, 0.0% packet loss<br />

round-trip min/avg/max/stddev = 169.134/169.304/169.497/0.183 ms<br />

B.3.2<br />

Running applications<br />

We are now able to run arbitrary unmodified applications using <strong>the</strong> TCP/IP stack<br />

provided by <strong>the</strong> rump kernel. We just have to set LD_PRELOAD to instruct <strong>the</strong><br />

dynamic linker to load <strong>the</strong> rump hijacking library. Also, now is a good time to make<br />

sure RUMP_SERVER is still set <strong>and</strong> points to <strong>the</strong> right place.<br />

golem> export LD_PRELOAD=/usr/lib/librumphijack.so

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!