0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Device: Fix option 'primary'

This commit is contained in:
Ondrej Zajicek (work) 2017-05-03 12:56:17 +02:00
parent 8e25f7d229
commit 95639d9577

View File

@ -94,6 +94,7 @@ kif_item:
} }
| PRIMARY opttext net_or_ipa { | PRIMARY opttext net_or_ipa {
struct kif_primary_item *kpi = cfg_alloc(sizeof (struct kif_primary_item)); struct kif_primary_item *kpi = cfg_alloc(sizeof (struct kif_primary_item));
kpi->pattern = $2;
kpi->addr = $3; kpi->addr = $3;
add_tail(&THIS_KIF->primary, &kpi->n); add_tail(&THIS_KIF->primary, &kpi->n);
} }