Skip to content
Snippets Groups Projects
  1. Sep 21, 2013
  2. Sep 20, 2013
  3. Sep 15, 2013
    • Nadav Har'El's avatar
      Add copyright statement to core/* · 4c0b39f3
      Nadav Har'El authored
      Added Cloudius copyright statement to core/*.
      
      poll.cc already had a BSD copyright statement, I believe this is a mistake
      (I think Guy wrote this code from scratch), but not wanting to rush to a
      conclusion I'm leaving both copyright statements and we should address this
      issue later.
      4c0b39f3
  4. Sep 10, 2013
    • Nadav Har'El's avatar
      DHCP: Fix crash · 68f4d147
      Nadav Har'El authored
      Rarely (about once every 20 runs) we had OSV crash during boot, in the
      DHCP code. It turns out that the code first sends out the DCHP requests,
      and then creates a thread to handle the replies. When a reply arrives,
      the code wake()s the thread, but on rare occasions the thread hasn't yet
      been set up (still a null pointer) so we have a crash.
      
      Fix this by reversing the order - first create the reply handling thread,
      and only then send the request.
      68f4d147
  5. Sep 08, 2013
  6. Aug 19, 2013
  7. Aug 18, 2013
  8. Aug 13, 2013
    • Avi Kivity's avatar
      dhcp: fix random dhcp failures · 26a04985
      Avi Kivity authored
      We don't initialize the dhcp packets, so some of them get the relay agent IP
      set, and the DHCP DISCOVER packets get sent to a random address on the
      Internet.  Usually it doesn't have a DHCP server installed, so the guest
      does not get configured.
      
      Fix by zero-initializing the packet.
      26a04985
  9. Jul 31, 2013
    • Avi Kivity's avatar
      dhcp: remove M_ZERO from mbuf allocation · 4ac239de
      Avi Kivity authored
      M_ZERO requests zeroing of the entire mbuf, which clears the fields initialized
      by the init function.  It only works now because we don't honor M_ZERO.
      
      Remove M_ZERO and replace with bzero() for the packet data only.
      4ac239de
  10. Jul 28, 2013
    • Guy Zana's avatar
      dhcp: initial dhcp implementation · fc428fcf
      Guy Zana authored
      Use DHCP to discover an IP address per each interface, DHCP packets are being hooked
      in the networking stack in ip_input and queued for deffered processing using a
      dhcp worker thread. Sending dhcp packet is done directly over ethrernet (building
      IP and UDP).
      
      There's still alot to be done: setting up lease time, timeouts, more error handling
      but it's possible to implement these later on.
      fc428fcf
Loading