Statistics
| Branch: | Revision:

root / slirp @ 036208c9

Name Size
COPYRIGHT 2.8 kB
Makefile.objs 212 Bytes
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.8 kB
if.h 569 Bytes
ip.h 7.2 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.7 kB
main.h 1.1 kB
mbuf.c 4.9 kB
mbuf.h 4.5 kB
misc.c 9.3 kB
misc.h 1.5 kB
sbuf.c 4 kB
sbuf.h 812 Bytes
slirp.c 30.9 kB
slirp.h 7.4 kB
slirp_config.h 4.2 kB
socket.c 17.5 kB
socket.h 3.4 kB
tcp.h 6 kB
tcp_input.c 41 kB
tcp_output.c 14.1 kB
tcp_subr.c 26.3 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 10.3 kB
tftp.h 733 Bytes
udp.c 9.8 kB
udp.h 3.2 kB

Latest revisions

# Date Author Comment
036208c9 11/10/2012 03:49 pm Blue Swirl

slirp: remove unused function u_sleep

Signed-off-by: Blue Swirl <>

4d5b97da 10/05/2012 04:10 pm Amos Kong

cleanup useless return sentence

This patch cleans up return sentences in the end of void functions.

Reported-by: Paolo Bonzini <>
Signed-off-by: Amos Kong <>
Signed-off-by: Stefan Hajnoczi <>

30daca5f 10/05/2012 03:24 pm Stefan Weil

slirp: Fix spelling in comment (enought -> enough, insure -> ensure)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

95b1ad7a 09/14/2012 01:26 am Hervé Poussineau

slirp: Implement TFTP Blocksize option

This option is described in RFC 1783. As this is only an optional field,
we may ignore it in some situations and handle it in some others.

However, MS Windows 2003 PXE boot client requests a block size of the MTU
(most of the times 1472 bytes), and doesn't work if the option is not...

eb7faf0e 09/13/2012 01:44 pm Jan Kiszka

slirp: Remove unused return value of tftp_send_next_block

No caller actually makes use of this value, so let's simplify the code.

Signed-off-by: Jan Kiszka <>

4aa401f3 09/13/2012 01:39 pm Hervé Poussineau

slirp: Handle more than 65535 blocks in TFTP transfers

RFC 1350 does not mention block count roll-over. However, a lot of TFTP servers
implement it to be able to transmit big files, so do it also.

Current block size is 512 bytes, so TFTP files were limited to 32 MB....

c4d12a74 09/13/2012 01:38 pm Stefan Weil

slirp: Remove wrong type casts ins debug statements

The type casts of pointers to long are not allowed
when sizeof(pointer) != sizeof(long).

Signed-off-by: Stefan Weil <>
Signed-off-by: Jan Kiszka <>

e56afbc5 09/13/2012 01:38 pm Stefan Weil

slirp: Fix error reported by static code analysis

Report from smatch:

slirp/tcp_subr.c:127 tcp_respond(17) error:
we previously assumed 'tp' could be null (see line 124)

Return if 'tp' is NULL.

Signed-off-by: Stefan Weil <>
Signed-off-by: Jan Kiszka <>

78be0566 09/13/2012 01:38 pm Hervé Poussineau

slirp: improve TFTP performance

When transferring a file, keep it open during the whole transfer,
instead of opening/closing it for each block.

Signed-off-by: Hervé Poussineau <>
Reviewed-by: Aurelien Jarno <>
Signed-off-by: Jan Kiszka <>

0b8db8fe 08/07/2012 03:31 am Anthony Liguori

slirp: fix build on mingw32

in_addr_t isn't available on mingw32. Just use an unsigned long instead. I
considered typedef'ing in_addr_t on mingw32 but this would potentially be
brittle if mingw32 did introduce the type.

Cc: Jan Kiszka <>...

View revisions

Also available in: Atom