Ticket #2531: patch-dhcp.1.diff

File patch-dhcp.1.diff, 713 bytes (added by Adek336, 16 years ago)
  • src/servers/net/DHCPClient.cpp

     
    383383status_t
    384384DHCPClient::_Negotiate(dhcp_state state)
    385385{
     386    if (state != INIT
     387        && state != REBINDING
     388        && state != RENEWAL)
     389        fprintf(stderr, "DHCP client: negotiating: unexpected state %d\n", state);
    386390    int socket = ::socket(AF_INET, SOCK_DGRAM, 0);
    387391    if (socket < 0)
    388392        return errno;
     
    594598        return;
    595599
    596600    BMessage lease(kMsgLeaseTime);
    597     fRunner = new BMessageRunner(this, &lease, leaseTime, 1);
     601    fRunner = new BMessageRunner(this, &lease, leaseTime+1000, 1);
    598602}
    599603
    600604