| Branch: | Revision:

root / slirp / slirp.h @ 8b7968f7

History | View | Annotate | Download (6.6 kB)

# Date Author Comment
8b7968f7 10/03/2010 09:34 am Stefan Weil

Use GCC_FMT_ATTR (format checking)

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

4a2b39d3 10/03/2010 09:31 am Andreas Färber

slirp: Silence warning on Haiku

Haiku has O_BINARY in fcntl.h.

Signed-off-by: Andreas Färber <>
Cc: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

b6dce92e 07/25/2010 05:59 pm Stefan Weil

slirp: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types

There is no need to have a second set of integral types.
Replace them by the standard types from stdint.h.

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

08dc07a3 07/25/2010 05:59 pm Stefan Weil

slirp: Remove declarations which are no longer needed

The previous patches replaced u_int8_t, u_int16_t, u_int32_t, u_int64_t
by standard int types from stdint.h,
so we can now remove their declarations which are no longer needed.

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

40ff6d7e 12/03/2009 07:45 pm Kevin Wolf

Don't leak file descriptors

We're leaking file descriptors to child processes. Set FD_CLOEXEC on file
descriptors that don't need to be passed to children to stop this misbehaviour.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

aaf10d9d 07/27/2009 10:09 pm Ed Swierk

slirp: Use monotonic clock if available (v2)

Calling gettimeofday() to compute a time interval can cause problems if
the system clock jumps forwards or backwards; replace updtime() with
qemu_get_clock(rt_clock), which calls clock_gettime(CLOCK_MONOTONIC) if...

6cb9c6d3 07/01/2009 10:11 pm Blue Swirl

Fix breakage by obsolete _P() for good

Signed-off-by: Blue Swirl <>

b1c99fcd 06/29/2009 04:52 pm Jan Kiszka

slirp: Enable multiple instances

Once again this was a long journey to reach the destination: Allow to
instantiate slirp multiple times. But as in the past, the journey was
worthwhile, cleaning up, fixing and enhancing various parts of the user
space network stack along the way....

460fec67 06/29/2009 04:52 pm Jan Kiszka

slirp: Factor out internal state structure

The essence of this patch is to stuff (almost) all global variables of
the slirp stack into the structure Slirp. In this step, we still keep
the structure as global variable, directly accessible by the whole
stack. Changes to the external interface of slirp will be applied in...

9f8bd042 06/29/2009 04:52 pm Jan Kiszka

slirp: Use internal state in interface

This now also exports the internal state to the slirp users in qemu,
returning it from slirp_init and expecting it along with service
invocations. Additionally provide an opaque value interface for the
callbacks from slirp into the qemu core....

ad0d8c4c 06/29/2009 04:52 pm Jan Kiszka

slirp: Allocate/free stack instance dynamically

Allocate the internal slirp state dynamically and provide and call
slirp_cleanup to properly release it after use. This patch finally
unbreaks slirp release and re-instantiation via host_net_* monitor

ee9be587 06/29/2009 04:52 pm Jan Kiszka

slirp: Drop unused icmp_var.h

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

0d62c4cf 06/29/2009 04:52 pm Jan Kiszka

slirp: Drop dead code

After all its years inside the qemu tree, there is no point in keeping
the dead code paths of slirp. This patch is a first round of removing
usually commented out code parts. More cleanups need to follow (and
maybe finally a proper reindention)....

0fe6a7f2 06/29/2009 04:52 pm Jan Kiszka

slirp: Drop statistic code

As agreed on the mailing list, there is no interest in keeping the
usually disabled slirp statistics in the tree. So this patch removes

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

9f349498 06/29/2009 04:52 pm Jan Kiszka

slirp: Cleanup and basic reanimation of debug code

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

a13a4126 06/29/2009 04:52 pm Jan Kiszka

slirp: Rework internal configuration

The user mode IP stack is currently only minimally configurable /wrt to
its virtual IP addresses. This is unfortunate if some guest has a fixed
idea of which IP addresses to use.

Therefore this patch prepares the stack for fully configurable IP...

49dc768d 03/08/2009 06:26 pm aliguori

Fix windows build and clean up use of <windows.h>

We want to globally define WIN_LEAN_AND_MEAN and WINVER to particular values so
let's do it in OS_CFLAGS.

Then, we can pepper in windows.h includes where using #includes that require it.

Signed-off-by: Anthony Liguori <>...

61dca5aa 01/14/2009 08:04 pm blueswir1

Fix _P use on OpenBSD

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

429d0a3d 01/13/2009 09:48 pm blueswir1

Fix 64 bit issue in slirp

Signed-off-by: Gleb Natapov <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

36bae8dd 10/26/2008 05:26 pm blueswir1

Fix inline use warnings from sparse

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

eb38c52c 09/06/2008 08:47 pm blueswir1

Fix most warnings that would be caused by gcc flag -Wundef

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

116842ee 05/17/2008 09:07 pm balrog

Missing include for Slirp on win32 (Eduardo Felipe).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

4fddf62a 12/17/2007 06:42 am ths

Use WIN32_LEAN_AND_MEAN, by Stefan Weil.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5fa0ab8f 11/07/2007 09:27 pm bellard

use config-host.h instead of config.h

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

7878ff6b 10/26/2007 10:34 pm blueswir1

Add const etc. to places forgotten from the previous commit

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

9634d903 10/26/2007 10:01 pm blueswir1

Use const and static as needed, disable unused code

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

31a60e22 10/26/2007 09:42 pm blueswir1

Make Slirp statistics gathering and output conditional to LOG_ENABLED
Add 'info slirp' command to monitor to display statistics
Disable Slirp debugging code by default

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

34444131 01/11/2005 01:19 am bellard

windows header fix

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

ef6ff6b7 11/14/2004 08:58 pm bellard

removed warning

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

6d46bf8a 10/10/2004 01:57 am bellard

win32 fix

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

02d2c54c 10/08/2004 02:27 am bellard

windows fixes (Gregory Alexander)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

c7f74643 08/25/2004 12:57 am bellard

TFTP support (Magnus Damm)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

379ff53d 07/13/2004 01:33 am bellard

win32 compile

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

ee2654ac 07/13/2004 12:11 am bellard

removed unused includes - BSD port

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

170c6f87 06/03/2004 03:53 pm bellard

header fix

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

9fafc9ea 04/26/2004 10:50 pm bellard

avoid errno variable name

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

f0cbd3ec 04/22/2004 03:10 am bellard

initial user mode network support

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162