EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
Functions that help work with DHCP Configuration structures. More...
Go to the source code of this file.
Functions | |
bool | get_config_dhcpinfo (const char *info, config_dhcpinfo_t *el) |
Creates a config_dhcpinfo_t from a string. More... | |
Functions that help work with DHCP Configuration structures.
bool get_config_dhcpinfo | ( | const char * | info, |
config_dhcpinfo_t * | el | ||
) |
Creates a config_dhcpinfo_t
from a string.
[in] | info | - The string to parse. The format of this string is a comma-separated value line of: <vlanid>,<ip_addr_low>,<ip_addr_upp>,<subnet_mask>,<lease_time> |
vlanid
must be a decimal integer.
All other parameters are passed as a dhcp-range
option to dnsmasq, see man dnsmasq(8)
.
For example: 0,10.0.0.2,10.0.0.254,255.255.255.0,24h
.
[out] | el | - The parsed dhcp info. |
true | On success. |
false | On failure. |