Statistics
| Branch: | Revision:

root / slirp @ 0ecb72a5

Name Size
COPYRIGHT 2.8 kB
arp_table.c 3.4 kB
bootp.c 9.1 kB
bootp.h 3.1 kB
cksum.c 3.8 kB
debug.h 865 Bytes
if.c 6.9 kB
if.h 569 Bytes
ip.h 7.3 kB
ip_icmp.c 12.3 kB
ip_icmp.h 6.3 kB
ip_input.c 16.5 kB
ip_output.c 4.8 kB
libslirp.h 1.6 kB
main.h 1.1 kB
mbuf.c 4.9 kB
mbuf.h 4.5 kB
misc.c 10 kB
misc.h 1.5 kB
sbuf.c 3.8 kB
sbuf.h 812 Bytes
slirp.c 30.7 kB
slirp.h 7.8 kB
slirp_config.h 4.2 kB
socket.c 17.5 kB
socket.h 3.4 kB
tcp.h 5.9 kB
tcp_input.c 41 kB
tcp_output.c 14.1 kB
tcp_subr.c 26.2 kB
tcp_timer.c 8.5 kB
tcp_timer.h 5.3 kB
tcp_var.h 6.5 kB
tcpip.h 2.9 kB
tftp.c 9.4 kB
tftp.h 698 Bytes
udp.c 9.8 kB
udp.h 3.2 kB

Latest revisions

# Date Author Comment
2d26512b 03/13/2012 05:15 pm Stefan Weil

slirp: Fix compiler warning for w64

Casting a pointer to an integer value must use uintptr_t or intptr_t
(not long) for portable code. MinGW-w64 requires this because
sizeof(long) != sizeof(void *) for w64 hosts, so casting to long
raises a compiler warning....

f3734319 03/13/2012 03:05 pm Jan Kiszka

slirp: Remove unneeded if_queued

There is now a trivial check on entry of if_start for pending packets,
so we can drop the additional tracking via if_queued.

Signed-off-by: Jan Kiszka <>

a68adc22 03/13/2012 03:05 pm Jan Kiszka

slirp: Cleanup resources on instance removal

Close & free sockets when shutting down a slirp instance, also release
all buffers.

CC: Michael S. Tsirkin <>
Signed-off-by: Jan Kiszka <>

d6536b2c 03/13/2012 03:05 pm Jan Kiszka

slirp: Keep next_m always valid

Make sure that next_m always points to a packet if batchq is non-empty.
This will simplify walking the queues in if_start.

CC: Fabien Chouteau <>
CC: Zhi Yong Wu <>
CC: Stefan Weil <>...

953e7f54 03/13/2012 03:05 pm Jan Kiszka

slirp: Prevent recursion of if_start

if_start can be called recursively via if_encap. Avoid this as our
scheme of dequeuing packets is not compatible with this.

CC: Fabien Chouteau <>
CC: Zhi Yong Wu <>
CC: Stefan Weil <>...

e3078bf4 03/13/2012 03:05 pm Jan Kiszka

slirp: Fix queue walking in if_start

Another attempt to get this right: We need to carefully walk both the
fastq and the batchq in if_start while trying to send packets to
possibly not yet resolved hosts on the virtual network.

So far we just requeued a delayed packet where it was and then started...

90d7416a 02/27/2012 03:55 pm David Gibson

slirp: Fix assertion failure on rejected DHCP requests

The guest network stack might DHCPREQUEST an address that the slirp built
in dhcp server can't let it have - for example if the guest has an old
leases file from another network configuration. In this case the dhcp...

79e7e937 02/27/2012 03:54 pm Jan Kiszka

slirp: Clean up ifs_init

Remove duplicate ifs_init macros, reimplement the logic as static inline
in mbuf.h.

CC: Zhi Yong Wu <>
CC: Michael S. Tsirkin <>
Signed-off-by: Jan Kiszka <>

b248ede2 02/27/2012 03:54 pm Jan Kiszka

slirp: Fix requeuing of batchq packets in if_start

In case we requeued a packet that was the head of a longer session
queue, we failed to restore this ordering. Also, we did not properly
deal with changes to Slirp::next_m.

Instead of a cumbersome roll back, this fix simply avoids any changes...

b87ffa16 02/27/2012 03:54 pm Jan Kiszka

slirp: Refactor if_start

Replace gotos with a while loop, fix coding style.

CC: Zhi Yong Wu <>
CC: Fabien Chouteau <>
Signed-off-by: Jan Kiszka <>

View revisions

Also available in: Atom