]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: avoid recalculating as_val value in str2prefix_rd 76/head 78/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 17 Jan 2017 16:51:40 +0000 (17:51 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 17 Jan 2017 16:51:40 +0000 (17:51 +0100)
commitbac21a7c4ba2dd131e8e82a13ab57a1a295a52ef
treea44333f20a831d2f5e362a9fba50a42a6ecc2b51
parentcc5eb677527ce107000da7de7cf69500cc64c946
bgpd: avoid recalculating as_val value in str2prefix_rd

This is an optimisation that consists in avoiding calling twice atol()
function when converting an ext. community to an AS4 byte or a standard AS byte value.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c