1. 23 8月, 2013 1 次提交
  2. 19 7月, 2013 1 次提交
  3. 19 6月, 2013 1 次提交
  4. 01 6月, 2013 1 次提交
  5. 18 5月, 2013 1 次提交
  6. 16 4月, 2013 1 次提交
  7. 02 4月, 2013 1 次提交
  8. 22 3月, 2013 1 次提交
  9. 04 3月, 2013 2 次提交
  10. 26 2月, 2013 1 次提交
  11. 22 2月, 2013 2 次提交
    • S
      slirp: switch to GPollFD · 8917c3bd
      Stefan Hajnoczi 提交于
      Slirp uses rfds/wfds/xfds more extensively than other QEMU components.
      
      The rarely-used out-of-band TCP data feature is used.  That means we
      need the full table of select(2) to g_poll(3) events:
      
        rfds -> G_IO_IN | G_IO_HUP | G_IO_ERR
        wfds -> G_IO_OUT | G_IO_ERR
        xfds -> G_IO_PRI
      
      I came up with this table by looking at Linux fs/select.c which maps
      select(2) to poll(2) internally.
      
      Another detail to watch out for are the global variables that reference
      rfds/wfds/xfds during slirp_select_poll().  sofcantrcvmore() and
      sofcantsendmore() use these globals to clear fd_set bits.  When
      sofcantrcvmore() is called, the wfds bit is cleared so that the write
      handler will no longer be run for this iteration of the event loop.
      
      This actually seems buggy to me since TCP connections can be half-closed
      and we'd still want to handle data in half-duplex fashion.  I think the
      real intention is to avoid running the read/write handler when the
      socket has been fully closed.  This is indicated with the SS_NOFDREF
      state bit so we now check for it before invoking the TCP write handler.
      Note that UDP/ICMP code paths don't care because they are
      connectionless.
      
      Note that slirp/ has a lot of tabs and sometimes mixed tabs with spaces.
      I followed the style of the surrounding code.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1361356113-11049-6-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8917c3bd
    • S
      slirp: slirp/slirp.c coding style cleanup · cf1d078e
      Stefan Hajnoczi 提交于
      The slirp glue code uses tabs in some places.  Since the next patch will
      modify the file, convert tabs to spaces and fix checkpatch.pl issues.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1361356113-11049-5-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      cf1d078e
  12. 30 1月, 2013 1 次提交
  13. 12 1月, 2013 1 次提交
  14. 19 12月, 2012 4 次提交
  15. 07 12月, 2012 1 次提交
  16. 15 11月, 2012 2 次提交
  17. 10 11月, 2012 1 次提交
  18. 05 10月, 2012 2 次提交
  19. 14 9月, 2012 1 次提交
    • H
      slirp: Implement TFTP Blocksize option · 95b1ad7a
      Hervé Poussineau 提交于
      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
      acknowledged (with whatever value).
      
      According to the RFC 1783, we cannot acknowledge the option with a bigger
      value than the requested one.
      
      As current implementation is using 512 bytes by block, accept the option
      with a value of 512 if the option was specified, and don't acknowledge it
      if it is not present or less than 512 bytes.
      Signed-off-by: NHervé Poussineau <hpoussin@reactos.org>
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      95b1ad7a
  20. 13 9月, 2012 5 次提交
  21. 07 8月, 2012 1 次提交
  22. 04 8月, 2012 1 次提交
  23. 01 8月, 2012 1 次提交
  24. 07 6月, 2012 1 次提交
  25. 29 5月, 2012 2 次提交
  26. 28 5月, 2012 1 次提交
  27. 27 4月, 2012 1 次提交
  28. 16 4月, 2012 1 次提交