0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Use correct flags for the LOCAL_PREF attribute.

When an invalid attribute is found, copy the entire attribute to the data
section of the NOTIFICATION message.
This commit is contained in:
Martin Mares 2000-05-11 12:20:07 +00:00
parent 6e06e6eef0
commit 2138d3b4d8

View File

@ -118,7 +118,7 @@ static struct attr_desc bgp_attr_table[] = {
bgp_check_next_hop, NULL }, bgp_check_next_hop, NULL },
{ "med", 4, BAF_OPTIONAL, EAF_TYPE_INT, 0, /* BA_MULTI_EXIT_DISC */ { "med", 4, BAF_OPTIONAL, EAF_TYPE_INT, 0, /* BA_MULTI_EXIT_DISC */
NULL, NULL }, NULL, NULL },
{ "local_pref", 4, BAF_OPTIONAL, EAF_TYPE_INT, 0, /* BA_LOCAL_PREF */ { "local_pref", 4, BAF_TRANSITIVE, EAF_TYPE_INT, 0, /* BA_LOCAL_PREF */
NULL, NULL }, NULL, NULL },
{ "atomic_aggr", 0, BAF_TRANSITIVE, EAF_TYPE_OPAQUE, 1, /* BA_ATOMIC_AGGR */ { "atomic_aggr", 0, BAF_TRANSITIVE, EAF_TYPE_OPAQUE, 1, /* BA_ATOMIC_AGGR */
NULL, NULL }, NULL, NULL },
@ -886,7 +886,7 @@ malformed:
return NULL; return NULL;
err: err:
bgp_error(conn, 3, errcode, z-2, l+2); bgp_error(conn, 3, errcode, attr_start, z+l-attr_start);
return NULL; return NULL;
} }