blob: 241c718ba68256b70065c4f1fbfae8458c081def [file] [log] [blame]
/**
* @file ql_network.h
* @brief Quectel Openlinux network public function declarations.
*
* @note
*
* @copyright Copyright (c) 2009-2017 @ Quectel Wireless Solutions Co., Ltd.
*/
#ifndef __QL_NETWORK_H__
#define __QL_NETWORK_H__
#include "mbtk_type.h"
#include "mbtk_info_api.h"
typedef struct {
char gw_ip[20]; /* Gateway Address*/
char netmask[20]; /* netmask */
unsigned char enable_dhcp; /* Whether to enable DHCP; boolean value. */
char dhcp_start_ip[20]; /*DHCP start IP address.*/
char dhcp_end_ip[20]; /*DHCP end IP address. */
unsigned int lease_time; /*DHCP lease time, in seconds.*/
}ql_lan_dhcp_config_s;
/**
* Set the network configuration: dhcp configuration.
*s
* @param [in] lan_dhcp_config
*
* @return
* On success, 0 is returned. On error, -1 is returned.
*
*/
extern int QL_LAN_DHCP_Config_Set(ql_lan_dhcp_config_s lan_dhcp_config);
/**
* Get the network configuration: dhcp configuration.
*
* @param [out] lan_dhcp_config
*
* @return
* On success, 0 is returned. On error, -1 is returned.
*
*/
extern int QL_LAN_DHCP_Config_Get(ql_lan_dhcp_config_s *lan_dhcp_config);
#endif