mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 10:09:25 +00:00
Merge pull request #614 from qlyoung/fix-ospf6-oa-scope
ospf6d: default to dotted quad instead of ret NULL
This commit is contained in:
commit
8a74a9d1a5
@ -223,11 +223,10 @@ ospf6_area_create (u_int32_t area_id, struct ospf6 *o, int df)
|
||||
case OSPF6_AREA_FMT_DECIMAL:
|
||||
snprintf (oa->name, sizeof (oa->name), "%u", ntohl (area_id));
|
||||
break;
|
||||
default:
|
||||
case OSPF6_AREA_FMT_DOTTEDQUAD:
|
||||
inet_ntop (AF_INET, &area_id, oa->name, sizeof (oa->name));
|
||||
break;
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
oa->area_id = area_id;
|
||||
|
Loading…
Reference in New Issue
Block a user