From 8178b2e156d2263015d7d981590a0899f2cb4c05 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Fri, 29 May 2009 09:15:20 -0400 Subject: [bgpd] 64-bit bugfix in community_del_val by Jeremy Jackson * bgpd/bgp_community.c: (community_del_val) Fix bug in memcpy that was using the wrong size on architectures where a pointer is not 32 bits. --- bgpd/bgp_community.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bgpd') diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c index a05ea6c6..64c6810f 100644 --- a/bgpd/bgp_community.c +++ b/bgpd/bgp_community.c @@ -78,7 +78,7 @@ community_del_val (struct community *com, u_int32_t *val) c = com->size -i -1; if (c > 0) - memcpy (com->val + i, com->val + (i + 1), c * sizeof (val)); + memcpy (com->val + i, com->val + (i + 1), c * sizeof (*val)); com->size--; -- cgit v1.2.1 From e6b6a56419ed5a2e8cf2cb11eab340d7b0d28055 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Mon, 1 Jun 2009 20:20:36 +0400 Subject: [trivia] Fixed typos in communities text (#334) --- bgpd/bgp_ecommunity.c | 2 +- bgpd/bgp_routemap.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bgpd') diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 27c3cd69..6b221e24 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -97,7 +97,7 @@ ecommunity_add_val (struct ecommunity *ecom, struct ecommunity_val *eval) /* This function takes pointer to Extended Communites strucutre then create a new Extended Communities structure by uniq and sort each - Exteneded Communities value. */ + Extended Communities value. */ static struct ecommunity * ecommunity_uniq_sort (struct ecommunity *ecom) { diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 2d4a8630..bb9014fe 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -3321,7 +3321,7 @@ DEFUN (set_ecommunity_rt, "set extcommunity rt .ASN:nn_or_IP-address:nn", SET_STR "BGP extended community attribute\n" - "Route Target extened communityt\n" + "Route Target extended community\n" "VPN extended community\n") { int ret; @@ -3340,7 +3340,7 @@ DEFUN (no_set_ecommunity_rt, NO_STR SET_STR "BGP extended community attribute\n" - "Route Target extened communityt\n") + "Route Target extended community\n") { return bgp_route_set_delete (vty, vty->index, "extcommunity rt", NULL); } @@ -3351,7 +3351,7 @@ ALIAS (no_set_ecommunity_rt, NO_STR SET_STR "BGP extended community attribute\n" - "Route Target extened communityt\n" + "Route Target extended community\n" "VPN extended community\n") DEFUN (set_ecommunity_soo, -- cgit v1.2.1