• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/quagga/bgpd/

Lines Matching defs:aspath

385   if (attr->aspath)
386 MIX(aspath_key_make (attr->aspath));
418 && attr1->aspath == attr2->aspath
505 if (attr->aspath)
507 if (! attr->aspath->refcnt)
508 attr->aspath = aspath_intern (attr->aspath);
510 attr->aspath->refcnt++;
563 attr->aspath = aspath_empty ();
587 aspath_unintern (&new->aspath);
593 struct aspath *aspath,
609 if (aspath)
610 attr.aspath = aspath_intern (aspath);
612 attr.aspath = aspath_empty ();
639 aspath_unintern (&new->aspath);
647 /* aspath refcount shoud be decrement. */
648 if (attr->aspath)
649 aspath_unintern (&attr->aspath);
671 /* Free bgp attribute and aspath. */
707 if (attr->aspath && ! attr->aspath->refcnt)
708 aspath_free (attr->aspath);
985 attr->aspath = aspath_parse (peer->ibuf, length,
989 if (! attr->aspath)
997 /* Set aspath attribute flag. */
1007 * as4 we should to check aspath things when
1008 * aspath synthesizing with as4_path has already taken place.
1014 struct aspath *aspath;
1017 if ((peer->sort == BGP_PEER_CONFED && ! aspath_left_confed_check (attr->aspath)) ||
1018 (peer->sort == BGP_PEER_EBGP && aspath_confed_check (attr->aspath)))
1030 && ! aspath_firstas_check (attr->aspath, peer->as))
1044 aspath = aspath_dup (attr->aspath);
1045 aspath = aspath_add_seq (aspath, peer->change_local_as);
1046 aspath_unintern (&attr->aspath);
1047 attr->aspath = aspath_intern (aspath);
1056 bgp_attr_as4_path (struct bgp_attr_parser_args *args, struct aspath **as4_path)
1075 /* Set aspath attribute flag. */
1279 struct aspath *as4_path, as_t as4_aggregator,
1283 struct aspath *newpath;
1286 if (!attr->aspath)
1288 /* NULL aspath shouldn't be possible as bgp_attr_parse should have
1375 newpath = aspath_reconcile_as4 (attr->aspath, as4_path);
1376 aspath_unintern (&attr->aspath);
1377 attr->aspath = aspath_intern (newpath);
1806 struct aspath *as4_path = NULL;
2077 * resulting info is in attr->aggregator resp. attr->aspath
2095 * Finally do the checks on the aspath we did not do yet
2096 * because we waited for a potentially synthesized aspath.
2216 struct aspath *aspath;
2246 || attr->aspath->segments == NULL)
2249 aspath = aspath_dup (attr->aspath);
2255 aspath = aspath_delete_confed_seq (aspath);
2256 aspath = aspath_add_seq (aspath, bgp->confed_id);
2264 aspath = aspath_add_seq (aspath, peer->local_as);
2266 aspath = aspath_add_seq (aspath, peer->change_local_as);
2268 aspath = aspath_add_seq (aspath, peer->local_as);
2275 aspath = aspath_dup (attr->aspath);
2276 aspath = aspath_add_confed_seq (aspath, peer->local_as);
2279 aspath = attr->aspath;
2294 stream_putw_at (s, aspath_sizep, aspath_put (s, aspath, use32bit));
2299 if (!use32bit && aspath_has_as4 (aspath))
2524 * the beginning of an aspath, right? Then we should use
2529 aspath = aspath_delete_confed_seq (aspath);
2535 stream_putw_at (s, aspath_sizep, aspath_put (s, aspath, 1));
2538 if (aspath != attr->aspath)
2539 aspath_free (aspath);
2640 struct aspath *aspath;
2654 aspath = attr->aspath;
2661 stream_putw_at (s, aspath_lenp, aspath_put (s, aspath, 1));