Changeset bd88bee in mainline for uspace/srv/net/nconfsrv/nconfsrv.c


Ignore:
Timestamp:
2013-09-21T22:51:06Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
66ec63a
Parents:
7af0cc5
Message:

Automatically start DHCP on ethernet links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nconfsrv/nconfsrv.c

    r7af0cc5 rbd88bee  
    3939#include <errno.h>
    4040#include <fibril_synch.h>
     41#include <inet/dhcp.h>
    4142#include <inet/inetcfg.h>
    4243#include <io/log.h>
     
    6566        if (rc != EOK) {
    6667                log_msg(LOG_DEFAULT, LVL_ERROR, "Error contacting inet "
     68                    "configuration service.");
     69                return EIO;
     70        }
     71
     72        rc = dhcp_init();
     73        if (rc != EOK) {
     74                log_msg(LOG_DEFAULT, LVL_ERROR, "Error contacting dhcp "
    6775                    "configuration service.");
    6876                return EIO;
Note: See TracChangeset for help on using the changeset viewer.