mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Attributes declared in config can be bytestrings
This commit is contained in:
parent
e63f46b1ac
commit
42212ea6e9
@ -869,10 +869,6 @@
|
|||||||
l->attrs[0].u.data = v1.val.i;
|
l->attrs[0].u.data = v1.val.i;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EAF_TYPE_OPAQUE:
|
|
||||||
runtime( "Setting opaque attribute is not allowed" );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EAF_TYPE_IP_ADDRESS:;
|
case EAF_TYPE_IP_ADDRESS:;
|
||||||
int len = sizeof(ip_addr);
|
int len = sizeof(ip_addr);
|
||||||
struct adata *ad = lp_alloc(fs->pool, sizeof(struct adata) + len);
|
struct adata *ad = lp_alloc(fs->pool, sizeof(struct adata) + len);
|
||||||
@ -881,6 +877,7 @@
|
|||||||
l->attrs[0].u.ptr = ad;
|
l->attrs[0].u.ptr = ad;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EAF_TYPE_OPAQUE:
|
||||||
case EAF_TYPE_AS_PATH:
|
case EAF_TYPE_AS_PATH:
|
||||||
case EAF_TYPE_INT_SET:
|
case EAF_TYPE_INT_SET:
|
||||||
case EAF_TYPE_EC_SET:
|
case EAF_TYPE_EC_SET:
|
||||||
|
@ -294,6 +294,9 @@ ca_lookup(pool *p, const char *name, int f_type)
|
|||||||
case T_LCLIST:
|
case T_LCLIST:
|
||||||
ea_type = EAF_TYPE_LC_SET;
|
ea_type = EAF_TYPE_LC_SET;
|
||||||
break;
|
break;
|
||||||
|
case T_BYTESTRING:
|
||||||
|
ea_type = EAF_TYPE_OPAQUE;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
cf_error("Custom route attribute of unsupported type");
|
cf_error("Custom route attribute of unsupported type");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user