1. 24 6月, 2014 1 次提交
  2. 29 4月, 2014 1 次提交
  3. 25 3月, 2014 1 次提交
  4. 20 2月, 2014 1 次提交
    • J
      Fix build of portallocator on mingw · 057d26b2
      Ján Tomko 提交于
      IN6ADDR_ANY_INIT does not seem to be working as expected on MinGW:
      error: missing braces around initializer [-Werror=missing-braces]
               .sin6_addr = IN6ADDR_ANY_INIT,
      
      Use the in6addr_any variable instead.
      
      Reported by Daniel P. Berrange.
      057d26b2
  5. 14 2月, 2014 2 次提交
  6. 18 11月, 2013 2 次提交
    • J
      Return -1 in virPortAllocatorAcquire if all ports are used · 8c41794a
      Ján Tomko 提交于
      Report the error in virPortAllocatorAcquire instead
      of doing it in every caller.
      
      The error contains the port range name instead of the intended
      use for the port, e.g.:
      Unable to find an unused port in range 'display' (65534-65535)
      instead of:
      Unable to find an unused port for SPICE
      
      This also adds error reporting when the QEMU driver could not
      find an unused port for VNC, VNC WebSockets or NBD migration.
      8c41794a
    • J
      Add a name to virPortAllocator · d16d90fd
      Ján Tomko 提交于
      This allows its error messages to be more specific.
      d16d90fd
  7. 11 7月, 2013 1 次提交
  8. 10 7月, 2013 1 次提交
  9. 08 7月, 2013 1 次提交
    • J
      Don't spam logs with "port 0 must be in range" errors · 86dba8f3
      Jiri Denemark 提交于
      Whenever virPortAllocatorRelease is called with port == 0, it complains
      that the port is not in an allowed range, which is expectable as the
      port was never allocated. Let's make virPortAllocatorRelease ignore 0
      ports in a similar way free() ignores NULL pointers.
      86dba8f3
  10. 21 5月, 2013 1 次提交
  11. 18 1月, 2013 2 次提交
    • E
      build: fix build on BSD · f403bdc1
      Eric Blake 提交于
      A build on FreeBSD failed with:
      util/virportallocator.c:108: error: storage size of 'addr' isn't known
      util/virportallocator.c:123: error: 'INADDR_ANY' undeclared (first use in this function)
      
      It turns out that while POSIX allows sockaddr_in to leak in through
      <arpa/inet.h> (the way Linux does it), it is not mandatory, and
      conforming applications are required to get it through <netinet/in.h>.
      
      * src/util/virportallocator.c: Include header for struct
      sockaddr_in.
      * tests/virportallocatortest.c: Likewise.
      f403bdc1
    • D
      Followup fix for integer wraparound in port allocator · 55599102
      Daniel P. Berrange 提交于
      Change iterator variable datatype to int
      55599102
  12. 17 1月, 2013 1 次提交
    • D
      Avoid integer wrap on remotePortMax in QEMU driver · da5a8aee
      Daniel P. Berrange 提交于
      The QEMU driver default max port is 65535, but it then increments
      this by 1 to 65536. This maps to 0 in an unsigned short :-( This
      was apparently done so that for() loops could use "< max" instead
      of "<= max". Remove this insanity and just make the loop do the
      right thing.
      da5a8aee
  13. 16 1月, 2013 1 次提交