summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-07-01 14:32:36 -0400
committerGitHub <noreply@github.com>2023-07-01 14:32:36 -0400
commite9d6feed8fbf68a648be1bb0ef27417dc47fc417 (patch)
tree132a123155a507e0e90d36f42615298920f8e758 /bgpd
parenta93374d2e33fe4221244904f003114c2f60bdee5 (diff)
parenta08d696f8e3f05bd7ba624248ff24869ac75ab75 (diff)
Merge pull request #13883 from opensourcerouting/fix/comment_for_ecommunity_ecom2str
bgpd: Fix comment for ecommunity_ecom2str()
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_ecommunity.c42
1 files changed, 20 insertions, 22 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index e473468dbf..577c4c82ca 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -1052,28 +1052,26 @@ static int ecommunity_lb_str(char *buf, size_t bufsz, const uint8_t *pnt,
}
/* Convert extended community attribute to string.
-
- Due to historical reason of industry standard implementation, there
- are three types of format.
-
- route-map set extcommunity format
- "rt 100:1 100:2soo 100:3"
-
- extcommunity-list
- "rt 100:1 rt 100:2 soo 100:3
- show [ip] bgp"
- and extcommunity-list regular expression matching
- "RT:100:1 RT:100:2 SoO:100:3"
-
- For each format please use below definition for format:
-
- ECOMMUNITY_FORMAT_ROUTE_MAP
- ECOMMUNITY_FORMAT_COMMUNITY_LIST
- ECOMMUNITY_FORMAT_DISPLAY
-
- Filter is added to display only ECOMMUNITY_ROUTE_TARGET in some cases.
- 0 value displays all
-*/
+ * Due to historical reason of industry standard implementation, there
+ * are three types of format:
+ *
+ * route-map set extcommunity format:
+ * "rt 100:1 100:2soo 100:3"
+ *
+ * extcommunity-list:
+ * "rt 100:1 rt 100:2 soo 100:3"
+ *
+ * show bgp:
+ * "RT:100:1 RT:100:2 SoO:100:3"
+ *
+ * For each format please use below definition for format:
+ * ECOMMUNITY_FORMAT_ROUTE_MAP
+ * ECOMMUNITY_FORMAT_COMMUNITY_LIST
+ * ECOMMUNITY_FORMAT_DISPLAY
+ *
+ * Filter is added to display only ECOMMUNITY_ROUTE_TARGET in some cases.
+ * 0 value displays all.
+ */
char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
{
uint32_t i;