1. 19 Dec, 2012 2 commits
  2. 15 Nov, 2012 1 commit
  3. 06 Aug, 2012 1 commit
  4. 03 Aug, 2012 1 commit
  5. 26 Apr, 2012 1 commit
  6. 13 Mar, 2012 2 commits
  7. 22 Aug, 2011 1 commit
  8. 20 Aug, 2011 1 commit
  9. 05 Aug, 2011 1 commit
  10. 03 Aug, 2011 2 commits
  11. 25 Jul, 2011 1 commit
    • Blue Swirl's avatar
      Wrap recv to avoid warnings · 00aa0040
      Blue Swirl authored
      Avoid warnings like these by wrapping recv():
        CC    slirp/ip_icmp.o
      /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive':
      /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror]
      /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *'
      Remove also casts used to avoid warnings.
      Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
  12. 23 Jul, 2011 1 commit
  13. 21 Mar, 2011 1 commit
    • Paolo Bonzini's avatar
      change all rt_clock references to use millisecond resolution accessors · 7bd427d8
      Paolo Bonzini authored
      This was done with:
          sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
              $(git grep -l 'get_clock\>.*rt_clock' )
          sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \
              $(git grep -l 'new_timer\>.*rt_clock' )
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
  14. 17 Sep, 2010 1 commit
  15. 06 Jul, 2010 1 commit
  16. 07 Mar, 2010 1 commit
  17. 12 Sep, 2009 1 commit
    • Blue Swirl's avatar
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl authored
      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 15cc9235,
      96555a96 and
      3990d09a but the fixes were fragile.
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
  18. 05 Sep, 2009 1 commit
  19. 31 Aug, 2009 1 commit
    • Stefan Weil's avatar
      Fix compiler warnings · 9e3a95ef
      Stefan Weil authored
      Starting with commit df7a86ed,
      mingw32 builds result in a compiler warning for dns_addr:
        CC    slirp/slirp.o
      /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: missing braces around initializer
      /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: (near initialization for ‘dns_addr.S_un’)
      Removing the assignment fixes the warning without the need of special code
      for mingw32 (and also saves some bytes in the resulting binary).
      To fix another potential compiler warning, the missing 'static'
      attribute was added.
      The same changes were applied to dns_addr_time.
      Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
  20. 27 Aug, 2009 2 commits
    • Ed Swierk's avatar
      slirp: Read host DNS config on demand · df7a86ed
      Ed Swierk authored
      Currently the qemu user-mode networking stack reads the host DNS
      configuration (/etc/resolv.conf or the Windows equivalent) only once
      when qemu starts.  This causes name lookups in the guest to fail if the
      host is moved to a different network from which the original DNS servers
      are unreachable, a common occurrence when the host is a laptop.
      This patch changes the slirp code to read the host DNS configuration on
      demand, caching the results for at most 1 second to avoid unnecessary
      overhead if name lookups occur in rapid succession.  On non-Windows
      hosts, /etc/resolv.conf is re-read only if the file has been replaced or
      if its size or mtime has changed.
      Signed-off-by: default avatarEd Swierk <eswierk@aristanetworks.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    • Ed Swierk's avatar
      slirp: Remove our_addr code · ce0bd027
      Ed Swierk authored
      Three problems with our_addr:
      - It's determined only once when qemu starts, but the address can change
      (just like the DNS configuration can).
      - It's supposed to be the IP address of a host network interface, but
      there's no guarantee that gethostbyname(gethostname()) actually does
      that: the host might be a laptop that has only a loopback interface up,
      or the hostname might be localhost.localdomain, etc.
      - It's useless at best: get_dns_addr() calls it, there's no reason to
      send DNS requests to a different IP address if you're running a DNS
      server on the host and resolv.conf points to
      These problems are easily solved by removing the code.
      Signed-off-by: default avatarEd Swierk <eswierk@aristanetworks.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
  21. 01 Aug, 2009 1 commit
  22. 27 Jul, 2009 2 commits
  23. 29 Jun, 2009 13 commits