1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Merge commit '224a152c53f304881f8616a1c9255b467062a069' into thread-next

This commit is contained in:
Ondrej Zajicek
2024-03-28 16:22:23 +01:00
3 changed files with 17 additions and 16 deletions

View File

@@ -874,6 +874,11 @@
case T_IP:
RESULT_(T_IP, ip, *((const ip_addr *) e->u.ptr->data));
break;
case T_STRING:
RESULT_(T_STRING, s, (const char *) e->u.ptr->data);
break;
default:
RESULT_VAL([[(struct f_val) {
.type = e->type,
@@ -916,6 +921,11 @@
EA_LITERAL_STORE_ADATA(da, 0, &v1.val.ip, sizeof(ip_addr)));
break;
case T_STRING:
a = ea_set_attr(&fs->rte->attrs,
EA_LITERAL_STORE_ADATA(da, 0, &v1.val.s, strlen(v1.val.s) + 1));
break;
default:
a = ea_set_attr(&fs->rte->attrs,
EA_LITERAL_GENERIC(da->id, da->type, 0, .u = v1.val.bval));