2021-12-28 23:21:31 -06:00
|
|
|
/*
|
|
|
|
* dhcp_client.h
|
|
|
|
* This file is part of Network Inador
|
|
|
|
*
|
|
|
|
* Copyright (C) 2021 - Félix Arreola Rodríguez
|
|
|
|
*
|
|
|
|
* Network Inador is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Network Inador is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Network Inador; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DHCP_CLIENT_H__
|
|
|
|
#define __DHCP_CLIENT_H__
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
int interfaces_dhcp_client_run (NetworkInadorHandle *handle, int index, int type, uint32_t flags);
|
|
|
|
void interfaces_dhcp_client_stop (NetworkInadorHandle *handle, int index);
|
2022-01-01 18:32:59 -06:00
|
|
|
void interfaces_dhcp_client_internal_feed_from_client (NetworkInadorHandle *handle, int index, int status, struct_addr *ip, int prefix, struct_addr *gateway, struct_addr *broadcast, struct_addr *dhcp_server, uint32_t lease_time, struct_addr *dns_list, int dns_count, char *domain_name);
|
2021-12-28 23:21:31 -06:00
|
|
|
|
|
|
|
#endif /* __DHCP_CLIENT_H__ */
|
|
|
|
|