networkd-network.c revision bd8f65387673e29f46136a4ed172097035002c23
2521N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
3998N/A#include "networkd.h"
2521N/A#include "networkd-netdev.h"
2521N/A#include "network-internal.h"
2521N/A#include "path-util.h"
3998N/A#include "conf-files.h"
2521N/A#include "conf-parser.h"
return log_oom();
return log_oom();
return log_oom();
return log_oom();
false, false, true, network);
Iterator i;
if (!network)
ifname)) {
return -ENOENT;
return -EINVAL;
return -errno;
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata) {
if (!kind_string)
return log_oom();
for (p = kind_string; *p; p++)
*p = tolower(*p);
switch (kind) {
case NETDEV_KIND_BRIDGE:
case NETDEV_KIND_BOND:
case NETDEV_KIND_VLAN:
case NETDEV_KIND_MACVLAN:
case NETDEV_KIND_VXLAN:
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata) {
int config_parse_dhcp(
const char* unit,
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata) {
DHCPSupport s;
*dhcp = s;
int config_parse_llmnr(
const char* unit,
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata) {
LLMNRSupport s;
log_syntax(unit, LOG_ERR, filename, line, -s, "Failed to parse LLMNR option, ignoring: %s", rvalue);
*llmnr = s;