networkd-network.c revision 0b1831c20c4d30077b6560b2b7d88bdb220d5cef
377N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
377N/A#include "networkd.h"
377N/A#include "networkd-netdev.h"
377N/A#include "networkd-link.h"
377N/A#include "network-internal.h"
377N/A#include "path-util.h"
377N/A#include "conf-files.h"
377N/A#include "conf-parser.h"
return log_oom();
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;