Skip to content

Commit afa2b3c

Browse files
authored
Merge branch 'FRRouting:master' into master
2 parents 2576aa6 + 4bd1648 commit afa2b3c

File tree

158 files changed

+4856
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+4856
-1008
lines changed

.clang-format

+17
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,21 @@ SpacesInSquareBrackets: false
207207
Standard: Cpp03
208208
TabWidth: 8
209209
UseTab: Always
210+
WhitespaceSensitiveMacros:
211+
- "DEFPY"
212+
- "DEFPY_HIDDEN"
213+
- "DEFPY_NOSH"
214+
- "DEFPY_YANG"
215+
- "DEFPY_YANG_HIDDEN"
216+
- "DEFPY_YANG_NOSH"
217+
- "DEFSH"
218+
- "DEFSH_HIDDEN"
219+
- "DEFUN"
220+
- "DEFUN_HIDDEN"
221+
- "DEFUN_NOSH"
222+
- "DEFUN_YANG"
223+
- "DEFUN_YANG_HIDDEN"
224+
- "DEFUN_YANG_NOSH"
225+
- "DEFUNSH"
226+
- "DEFUNSH_HIDDEN"
210227
...

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
*.cg.dot
6363
*.cg.svg
6464
*.xref
65+
*_tsexpand.h
6566

6667
### gcov outputs
6768

bgpd/bgp_bmp.c

+9-7
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,11 @@ static int bmp_send_initiation(struct bmp *bmp)
391391

392392
bmp_common_hdr(s, BMP_VERSION_3, BMP_TYPE_INITIATION);
393393

394-
#define BMP_INFO_TYPE_SYSDESCR 1
395-
#define BMP_INFO_TYPE_SYSNAME 2
396-
bmp_put_info_tlv(s, BMP_INFO_TYPE_SYSDESCR,
397-
FRR_FULL_NAME " " FRR_VER_SHORT);
398-
bmp_put_info_tlv(s, BMP_INFO_TYPE_SYSNAME, cmd_hostname_get());
394+
#define BMP_INIT_INFO_TYPE_SYSDESCR 1
395+
#define BMP_INIT_INFO_TYPE_SYSNAME 2
396+
bmp_put_info_tlv(s, BMP_INIT_INFO_TYPE_SYSDESCR,
397+
FRR_FULL_NAME " " FRR_VER_SHORT);
398+
bmp_put_info_tlv(s, BMP_INIT_INFO_TYPE_SYSNAME, cmd_hostname_get());
399399

400400
len = stream_get_endp(s);
401401
stream_putl_at(s, BMP_LENGTH_POS, len); /* message length is set. */
@@ -438,6 +438,7 @@ static struct stream *bmp_peerstate(struct peer *peer, bool down)
438438
monotime_to_realtime(&uptime, &uptime_real);
439439

440440
#define BGP_BMP_MAX_PACKET_SIZE 1024
441+
#define BMP_PEERUP_INFO_TYPE_STRING 0
441442
s = stream_new(BGP_MAX_PACKET_SIZE);
442443

443444
if (peer_established(peer->connection) && !down) {
@@ -493,7 +494,8 @@ static struct stream *bmp_peerstate(struct peer *peer, bool down)
493494
}
494495

495496
if (peer->desc)
496-
bmp_put_info_tlv(s, 0, peer->desc);
497+
bmp_put_info_tlv(s, BMP_PEERUP_INFO_TYPE_STRING,
498+
peer->desc);
497499
} else {
498500
uint8_t type;
499501
size_t type_pos;
@@ -2494,7 +2496,7 @@ DEFPY(bmp_stats_send_experimental,
24942496
{
24952497
VTY_DECLVAR_CONTEXT_SUB(bmp_targets, bt);
24962498

2497-
bt->stats_send_experimental = !!no;
2499+
bt->stats_send_experimental = !no;
24982500

24992501
return CMD_SUCCESS;
25002502
}

0 commit comments

Comments
 (0)