~vcs-imports/qemu/git

  • Committer: aliguori
  • Date: 2008-11-11 20:54:09 UTC
  • Revision ID: git-v1:f07b6003b6cebaa5404d702ad8aca181580e4d6c
sockets: switch over tcp/telnet/unix serial line to new helper functions (Gerd Hoffman)

This switches the tcp, telnet and unix socket support for character
devices (serial/parallel, ...) to the new socket helpers.  Thereby they
gain IPv6 support and also get ability to search for a free tcp port.
Syntax is the same as for vnc, using a to= option, like this:

        -serial tcp:localhost:5000,to=5099,server

This will check the 5000 -> 5099 port range (inclusive) for a free tcp
port.  Likewise you can get auto-allocated unix sockets by specifying an
empty path:

        -serial unix:,server

qemu will create a randomly named socket in $TMPDIR then.

tcp also got new "ipv4" and "ipv6" options to make qemu try only the
specified internet protocol version.

You can use the "info chardev" command added by the first patch in this
series to figure the tcp port / unix socket actually allocated.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5697 c046a42c-6fe2-441c-8c8c-71466251a162
Filename Latest Rev Last Changed Committer Comment Size
..
bootp.c 5365 16 years ago blueswir1 Make some variables static git-svn-id: svn://svn. 6.7 KB Diff Download File
bootp.h 1452 19 years ago bellard 64 bit fixes (initial patch by Gwenole Beauchesne) 2.8 KB Diff Download File
cksum.c 3167 17 years ago ths find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, 4 KB Diff Download File
COPYRIGHT 3163 17 years ago ths find -type f | xargs sed -i 's/[\t ]$//g' # on mos 2.9 KB Diff Download File
ctl.h 730 20 years ago bellard initial user mode network support git-svn-id: sv 139 bytes Diff Download File
debug.c 5104 16 years ago blueswir1 Fix some warnings that would be generated by gcc - 11.6 KB Diff Download File
debug.h 3441 17 years ago blueswir1 Make Slirp statistics gathering and output conditi 1013 bytes Diff Download File
icmp_var.h 3441 17 years ago blueswir1 Make Slirp statistics gathering and output conditi 2.7 KB Diff Download File
if.c 5352 16 years ago blueswir1 Add some missing static qualifiers git-svn-id: sv 7.1 KB Diff Download File
if.h 3443 17 years ago blueswir1 Add const etc. to places forgotten from the previ 1.7 KB Diff Download File
ip.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 9.6 KB Diff Download File
ip_icmp.c 5365 16 years ago blueswir1 Make some variables static git-svn-id: svn://svn. 10.4 KB Diff Download File
ip_icmp.h 5195 16 years ago blueswir1 Fix warnings that would be caused by gcc flag -Wwr 6.3 KB Diff Download File
ip_input.c 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 17.4 KB Diff Download File
ip_output.c 3443 17 years ago blueswir1 Add const etc. to places forgotten from the previ 5.6 KB Diff Download File
libslirp.h 3441 17 years ago blueswir1 Make Slirp statistics gathering and output conditi 803 bytes Diff Download File
main.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 1.2 KB Diff Download File
mbuf.c 5363 16 years ago blueswir1 Remove unused variables git-svn-id: svn://svn.sav 4.5 KB Diff Download File
mbuf.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 4.8 KB Diff Download File
misc.c 5215 16 years ago aliguori Use common objects for qemu-img and qemu-nbd Righ 19 KB Diff Download File
misc.h 5529 16 years ago blueswir1 Fix inline use warnings from sparse git-svn-id: s 1.9 KB Diff Download File
sbuf.c 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 4 KB Diff Download File
sbuf.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 837 bytes Diff Download File
slirp.c 5488 16 years ago bellard added explicit license git-svn-id: svn://svn.sava 19.3 KB Diff Download File
slirp.h 5529 16 years ago blueswir1 Fix inline use warnings from sparse git-svn-id: s 6.5 KB Diff Download File
slirp_config.h 5104 16 years ago blueswir1 Fix some warnings that would be generated by gcc - 4.6 KB Diff Download File
socket.c 5367 16 years ago blueswir1 Fix warning about variables used uninitialized gi 16.7 KB Diff Download File
socket.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 3.2 KB Diff Download File
tcp.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 6.2 KB Diff Download File
tcp_input.c 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 48.2 KB Diff Download File
tcp_output.c 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 17.2 KB Diff Download File
tcp_subr.c 5264 16 years ago blueswir1 Suppress gcc 4.x -Wpointer-sign (included in -Wall 34.9 KB Diff Download File
tcp_timer.c 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 9.3 KB Diff Download File
tcp_timer.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 5.6 KB Diff Download File
tcp_var.h 3441 17 years ago blueswir1 Make Slirp statistics gathering and output conditi 10.5 KB Diff Download File
tcpip.h 730 20 years ago bellard initial user mode network support git-svn-id: sv 2.6 KB Diff Download File
tftp.c 5264 16 years ago blueswir1 Suppress gcc 4.x -Wpointer-sign (included in -Wall 8.7 KB Diff Download File
tftp.h 3163 17 years ago ths find -type f | xargs sed -i 's/[\t ]$//g' # on mos 566 bytes Diff Download File
udp.c 5520 16 years ago blueswir1 Replace uses of strncpy (a GNU extension) with Qem 17.3 KB Diff Download File
udp.h 3442 17 years ago blueswir1 Use const and static as needed, disable unused co 4.2 KB Diff Download File