ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()

This commit is contained in:
Yu Watanabe
2021-11-09 21:39:09 +09:00
parent 02160bc909
commit 227e9ce255
12 changed files with 14 additions and 88 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ int config_parse_ad_actor_system(
assert(rvalue);
assert(data);
r = ether_addr_from_string(rvalue, &n);
r = parse_ether_addr(rvalue, &n);
if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r,
"Not a valid MAC address %s. Ignoring assignment: %m",
+1 -1
View File
@@ -620,7 +620,7 @@ int config_parse_macsec_hw_address(
if (r < 0)
return log_oom();
r = ether_addr_from_string(rvalue, b ? &b->sci.mac : &c->sci.mac);
r = parse_ether_addr(rvalue, b ? &b->sci.mac : &c->sci.mac);
if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r,
"Failed to parse MAC address for secure channel identifier. "