Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pimd: MSDP peer MD5 authentication #8980

Closed
wants to merge 4 commits into from

Conversation

rzalamena
Copy link
Member

Summary

Implement MD5 authentication for MSDP peers.

Technical Detail

Move MSDP socket creation code to a generic helper function and parameterize it to toggle between authenticated and non authenticated.

MSDP peers that are already connected will not be disconnected when authentication is configured or removed instead you must either:

  • Wait it to disconnect or
  • Manually call the operational command clear ip msdp peer A.B.C.D to apply it immediately

@rzalamena rzalamena added documentation tests Topotests, make check, etc pim labels Jul 4, 2021
Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/50a46aa04393d826585e3fab539b1284/raw/b2ee620b5fbf24e39189f4afb38867d1fb6972f5/cr_8980_1625409243.diff | git apply

diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index e1b940111..a317f9e0e 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -6580,12 +6580,9 @@ DEFUN (clear_ip_mroute_count,
 
 DEFPY(clear_ip_msdp_peer, clear_ip_msdp_peer_cmd,
       "clear ip msdp peer A.B.C.D$peer [vrf WORD$vrfname]",
-      CLEAR_STR
-      IP_STR
-      MSDP_STR
+      CLEAR_STR IP_STR MSDP_STR
       "Restart MSDP peer\n"
-      "MSDP peer address\n"
-       VRF_CMD_HELP_STR)
+      "MSDP peer address\n" VRF_CMD_HELP_STR)
 {
 	struct vrf *vrf;
 	struct pim_instance *pim;
@@ -9798,8 +9795,7 @@ DEFUN (no_ip_msdp_peer,
 
 DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
       "ip msdp peer A.B.C.D$peer password WORD$psk",
-      IP_STR
-      CFG_MSDP_STR
+      IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9822,19 +9818,16 @@ DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
 		return CMD_SUCCESS;
 	}
 
-	nb_cli_enqueue_change(vty, "./authentication-type",
-			      NB_OP_MODIFY, "MD5");
-	nb_cli_enqueue_change(vty, "./authentication-key",
-			      NB_OP_MODIFY, psk);
+	nb_cli_enqueue_change(vty, "./authentication-type", NB_OP_MODIFY,
+			      "MD5");
+	nb_cli_enqueue_change(vty, "./authentication-key", NB_OP_MODIFY, psk);
 
 	return nb_cli_apply_changes(vty, xpath);
 }
 
 DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
       "no ip msdp peer A.B.C.D$peer password [WORD]",
-      NO_STR
-      IP_STR
-      CFG_MSDP_STR
+      NO_STR IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9857,8 +9850,8 @@ DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
 		return CMD_SUCCESS;
 	}
 
-	nb_cli_enqueue_change(vty, "./authentication-type",
-			      NB_OP_MODIFY, "None");
+	nb_cli_enqueue_change(vty, "./authentication-type", NB_OP_MODIFY,
+			      "None");
 
 	return nb_cli_apply_changes(vty, xpath);
 }
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c
index ce3785c97..43416d695 100644
--- a/pimd/pim_msdp.c
+++ b/pimd/pim_msdp.c
@@ -1371,8 +1371,8 @@ bool pim_msdp_peer_config_write(struct vty *vty, struct pim_instance *pim,
 			&mp->peer, &mp->local);
 
 		if (mp->auth_type == MSDP_AUTH_MD5)
-			vty_out(vty, "%sip msdp peer %pI4 password %s\n", spaces,
-				&mp->peer, mp->auth_key);
+			vty_out(vty, "%sip msdp peer %pI4 password %s\n",
+				spaces, &mp->peer, mp->auth_key);
 
 		written = true;
 	}

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/f0ead3390b99922182c6d74e976914f1/raw/04294bcb2f9e1acd547633a8c3c3b5fe93ac41f1/cr_8980_1625409477.diff | git apply

diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index bb945df8b..a317f9e0e 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -6580,12 +6580,9 @@ DEFUN (clear_ip_mroute_count,
 
 DEFPY(clear_ip_msdp_peer, clear_ip_msdp_peer_cmd,
       "clear ip msdp peer A.B.C.D$peer [vrf WORD$vrfname]",
-      CLEAR_STR
-      IP_STR
-      MSDP_STR
+      CLEAR_STR IP_STR MSDP_STR
       "Restart MSDP peer\n"
-      "MSDP peer address\n"
-       VRF_CMD_HELP_STR)
+      "MSDP peer address\n" VRF_CMD_HELP_STR)
 {
 	struct vrf *vrf;
 	struct pim_instance *pim;
@@ -9798,8 +9795,7 @@ DEFUN (no_ip_msdp_peer,
 
 DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
       "ip msdp peer A.B.C.D$peer password WORD$psk",
-      IP_STR
-      CFG_MSDP_STR
+      IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9831,9 +9827,7 @@ DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
 
 DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
       "no ip msdp peer A.B.C.D$peer password [WORD]",
-      NO_STR
-      IP_STR
-      CFG_MSDP_STR
+      NO_STR IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 4, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Failed

NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/config.status/config.status

Debian 11 amd64 build: Failed (click for details) Debian 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/config.status/config.status

Make failed for Debian 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/ErrorLog/log_make.txt)

In file included from ./lib/log.h:32,
pimd/pim_msdp_socket.c: In function pim_msdp_sock_auth_accept:
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:187:4: note: in expansion of macro flog_err
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:204:4: note: in expansion of macro flog_err
cc1: all warnings being treated as errors

Debian 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/config.log/config.log.gz

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/config.log/config.log.gz

FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/config.log/config.log.gz

Successful on other platforms/tests
  • Ubuntu 18.04 ppc64le build
  • Ubuntu 20.04 amd64 build
  • Ubuntu 18.04 arm7 build
  • Debian 9 amd64 build
  • Ubuntu 16.04 arm8 build
  • Fedora 29 amd64 build
  • Ubuntu 16.04 i386 build
  • Debian 10 amd64 build
  • OpenBSD 6 amd64 build
  • CentOS 7 amd64 build
  • Ubuntu 18.04 arm8 build
  • Ubuntu 18.04 i386 build
  • Ubuntu 16.04 amd64 build
  • Ubuntu 18.04 amd64 build
  • CentOS 8 amd64 build
  • Ubuntu 16.04 arm7 build

Warnings Generated during build:

Checkout code: Successful with additional warnings
NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI012BUILD/config.status/config.status

Debian 11 amd64 build: Failed (click for details) Debian 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/config.status/config.status

Make failed for Debian 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/ErrorLog/log_make.txt)

In file included from ./lib/log.h:32,
pimd/pim_msdp_socket.c: In function pim_msdp_sock_auth_accept:
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:187:4: note: in expansion of macro flog_err
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:204:4: note: in expansion of macro flog_err
cc1: all warnings being treated as errors

Debian 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/DEB11AMD64/config.log/config.log.gz

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/CI009BUILD/config.log/config.log.gz

FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20045/artifact/FBSD12AMD64/config.log/config.log.gz

Report for pim_msdp.c | 2 issues
===============================================
< WARNING: line over 80 characters
< #1374: FILE: /tmp/f1-10022/pim_msdp.c:1374:
Report for pim_msdp_socket.c | 8 issues
===============================================
< WARNING: space prohibited between function name and open parenthesis '('
< #119: FILE: /tmp/f1-10022/pim_msdp_socket.c:119:
< WARNING: space prohibited between function name and open parenthesis '('
< #133: FILE: /tmp/f1-10022/pim_msdp_socket.c:133:
< WARNING: braces {} are not necessary for single statement blocks
< #217: FILE: /tmp/f1-10022/pim_msdp_socket.c:217:
< WARNING: space prohibited between function name and open parenthesis '('
< #441: FILE: /tmp/f1-10022/pim_msdp_socket.c:441:
Report for pim_nb.c | 10 issues
===============================================
< WARNING: line over 80 characters
< #175: FILE: /tmp/f1-10022/pim_nb.c:175:
< WARNING: line over 80 characters
< #179: FILE: /tmp/f1-10022/pim_nb.c:179:
< WARNING: line over 80 characters
< #181: FILE: /tmp/f1-10022/pim_nb.c:181:
< WARNING: line over 80 characters
< #182: FILE: /tmp/f1-10022/pim_nb.c:182:
< WARNING: line over 80 characters
< #186: FILE: /tmp/f1-10022/pim_nb.c:186:
Report for pim_nb_config.c | 4 issues
===============================================
< WARNING: line over 80 characters
< #1290: FILE: /tmp/f1-10022/pim_nb_config.c:1290:
< WARNING: line over 80 characters
< #1343: FILE: /tmp/f1-10022/pim_nb_config.c:1343:

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 4, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Failed

NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/config.status/config.status

Debian 11 amd64 build: Failed (click for details) Debian 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/config.status/config.status

Make failed for Debian 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/ErrorLog/log_make.txt)

In file included from ./lib/log.h:32,
pimd/pim_msdp_socket.c: In function pim_msdp_sock_auth_accept:
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:187:4: note: in expansion of macro flog_err
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:204:4: note: in expansion of macro flog_err
cc1: all warnings being treated as errors

Debian 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/config.log/config.log.gz

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/config.log/config.log.gz

FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/config.log/config.log.gz

Successful on other platforms/tests
  • Ubuntu 20.04 amd64 build
  • Ubuntu 18.04 arm7 build
  • Ubuntu 18.04 ppc64le build
  • Ubuntu 18.04 i386 build
  • Debian 9 amd64 build
  • Ubuntu 16.04 arm8 build
  • Ubuntu 16.04 i386 build
  • Fedora 29 amd64 build
  • Ubuntu 18.04 arm8 build
  • Ubuntu 16.04 arm7 build
  • CentOS 8 amd64 build
  • CentOS 7 amd64 build
  • Debian 10 amd64 build
  • OpenBSD 6 amd64 build
  • Ubuntu 16.04 amd64 build
  • Ubuntu 18.04 amd64 build

Warnings Generated during build:

Checkout code: Successful with additional warnings
NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI012BUILD/config.status/config.status

Debian 11 amd64 build: Failed (click for details) Debian 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/config.status/config.status

Make failed for Debian 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/ErrorLog/log_make.txt)

In file included from ./lib/log.h:32,
pimd/pim_msdp_socket.c: In function pim_msdp_sock_auth_accept:
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:187:4: note: in expansion of macro flog_err
./lib/zlog.h:112:20: error: format %pI4 expects argument of type in_addr_t {aka unsigned int} *, but argument 3 has type struct sockaddr_in * [-Werror=format=]
./lib/zlog.h:122:2: note: in expansion of macro _zlog_ecref
pimd/pim_msdp_socket.c:204:4: note: in expansion of macro flog_err
cc1: all warnings being treated as errors

Debian 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/DEB11AMD64/config.log/config.log.gz

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/CI009BUILD/config.log/config.log.gz

FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_msdp_socket.c: In function 'pim_msdp_sock_listen':
pimd/pim_msdp_socket.c:354:36: error: 'sin' undeclared (first use in this function)
pimd/pim_msdp_socket.c:354:36: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_msdp_socket.o] Error 1
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20046/artifact/FBSD12AMD64/config.log/config.log.gz

Report for pim_msdp_socket.c | 8 issues
===============================================
< WARNING: space prohibited between function name and open parenthesis '('
< #119: FILE: /tmp/f1-17377/pim_msdp_socket.c:119:
< WARNING: space prohibited between function name and open parenthesis '('
< #133: FILE: /tmp/f1-17377/pim_msdp_socket.c:133:
< WARNING: braces {} are not necessary for single statement blocks
< #217: FILE: /tmp/f1-17377/pim_msdp_socket.c:217:
< WARNING: space prohibited between function name and open parenthesis '('
< #441: FILE: /tmp/f1-17377/pim_msdp_socket.c:441:
Report for pim_nb.c | 10 issues
===============================================
< WARNING: line over 80 characters
< #175: FILE: /tmp/f1-17377/pim_nb.c:175:
< WARNING: line over 80 characters
< #179: FILE: /tmp/f1-17377/pim_nb.c:179:
< WARNING: line over 80 characters
< #181: FILE: /tmp/f1-17377/pim_nb.c:181:
< WARNING: line over 80 characters
< #182: FILE: /tmp/f1-17377/pim_nb.c:182:
< WARNING: line over 80 characters
< #186: FILE: /tmp/f1-17377/pim_nb.c:186:
Report for pim_nb_config.c | 4 issues
===============================================
< WARNING: line over 80 characters
< #1290: FILE: /tmp/f1-17377/pim_nb_config.c:1290:
< WARNING: line over 80 characters
< #1343: FILE: /tmp/f1-17377/pim_nb_config.c:1343:

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 4, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8980 22cf54c
Date 07/04/2021
Start 11:26:41
Finish 11:52:15
Run-Time 25:34
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-04-11:26:41.txt
Log autoscript-2021-07-04-11:27:56.log.bz2
Memory 490 486 431

For details, please contact louberger

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/04ed4a213322acd28c896600c5ef7ca4/raw/04294bcb2f9e1acd547633a8c3c3b5fe93ac41f1/cr_8980_1625413990.diff | git apply

diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index bb945df8b..a317f9e0e 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -6580,12 +6580,9 @@ DEFUN (clear_ip_mroute_count,
 
 DEFPY(clear_ip_msdp_peer, clear_ip_msdp_peer_cmd,
       "clear ip msdp peer A.B.C.D$peer [vrf WORD$vrfname]",
-      CLEAR_STR
-      IP_STR
-      MSDP_STR
+      CLEAR_STR IP_STR MSDP_STR
       "Restart MSDP peer\n"
-      "MSDP peer address\n"
-       VRF_CMD_HELP_STR)
+      "MSDP peer address\n" VRF_CMD_HELP_STR)
 {
 	struct vrf *vrf;
 	struct pim_instance *pim;
@@ -9798,8 +9795,7 @@ DEFUN (no_ip_msdp_peer,
 
 DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
       "ip msdp peer A.B.C.D$peer password WORD$psk",
-      IP_STR
-      CFG_MSDP_STR
+      IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9831,9 +9827,7 @@ DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
 
 DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
       "no ip msdp peer A.B.C.D$peer password [WORD]",
-      NO_STR
-      IP_STR
-      CFG_MSDP_STR
+      NO_STR IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 4, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8980 e2c0269
Date 07/04/2021
Start 11:56:03
Finish 12:21:29
Run-Time 25:26
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-04-11:56:03.txt
Log autoscript-2021-07-04-11:57:13.log.bz2
Memory 494 507 424

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 4, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Failed

FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1
copying selected object files to avoid basename conflicts...
gmake[1]: Target 'all-am' not remade because of errors.
gmake[1]: Leaving directory '/usr/home/ci/cibuild.20047/frr-source'
gmake: *** [Makefile:6076: all] Error 2

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/config.log/config.log.gz

NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1
ld: warning: libintl.so.1, needed by /usr/pkg/lib/libpython3.7.so, may conflict with libintl.so.8
doc/user/_build/texinfo/frr.texi:5: warning: unrecognized encoding name `UTF-8'.
doc/user/_build/texinfo/frr.texi:15082: warning: @image file `frr-figures/fig-normal-processing.txt' (for text) unreadable: No such file or directory.
doc/user/_build/texinfo/frr.texi:15092: warning: @image file `frr-figures/fig_topologies_full.txt' (for text) unreadable: No such file or directory.

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/config.status/config.status

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_nb_config.o] Error 1
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:43: WARNING: duplicate clicmd description of net XX.XXXX. ... .XXX.XX, other instance in fabricd
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:53: WARNING: duplicate clicmd description of domain-password [clear | md5] <password>, other instance in fabricd
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:58: WARNING: duplicate clicmd description of attached-bit [receive ignore | send], other instance in fabricd

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/config.log/config.log.gz

Successful on other platforms/tests
  • Ubuntu 18.04 arm7 build
  • Ubuntu 18.04 ppc64le build
  • Debian 9 amd64 build
  • Ubuntu 20.04 amd64 build
  • Ubuntu 18.04 i386 build
  • Ubuntu 16.04 arm8 build
  • Ubuntu 16.04 i386 build
  • Fedora 29 amd64 build
  • Debian 11 amd64 build
  • CentOS 8 amd64 build
  • CentOS 7 amd64 build
  • Ubuntu 18.04 arm8 build
  • Ubuntu 16.04 arm7 build
  • OpenBSD 6 amd64 build
  • Debian 10 amd64 build
  • Ubuntu 16.04 amd64 build
  • Ubuntu 18.04 amd64 build

Warnings Generated during build:

Checkout code: Successful with additional warnings
FreeBSD 12 amd64 build: Failed (click for details)

Make failed for FreeBSD 12 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function); did you mean 'LIST_MAXKEYLEN'?
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1
copying selected object files to avoid basename conflicts...
gmake[1]: Target 'all-am' not remade because of errors.
gmake[1]: Leaving directory '/usr/home/ci/cibuild.20047/frr-source'
gmake: *** [Makefile:6076: all] Error 2

FreeBSD 12 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/config.status/config.status
FreeBSD 12 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/FBSD12AMD64/config.log/config.log.gz

NetBSD 8 amd64 build: Failed (click for details) NetBSD 8 amd64 build: Unknown Log URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/config.log/config.log.gz

Make failed for NetBSD 8 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/ErrorLog/log_make.txt)

 static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9854: pimd/pim_nb_config.o] Error 1
ld: warning: libintl.so.1, needed by /usr/pkg/lib/libpython3.7.so, may conflict with libintl.so.8
doc/user/_build/texinfo/frr.texi:5: warning: unrecognized encoding name `UTF-8'.
doc/user/_build/texinfo/frr.texi:15082: warning: @image file `frr-figures/fig-normal-processing.txt' (for text) unreadable: No such file or directory.
doc/user/_build/texinfo/frr.texi:15092: warning: @image file `frr-figures/fig_topologies_full.txt' (for text) unreadable: No such file or directory.

NetBSD 8 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI012BUILD/config.status/config.status

FreeBSD 11 amd64 build: Failed (click for details)

Make failed for FreeBSD 11 amd64 build:
(see full Make log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/ErrorLog/log_make.txt)

 1033 | static void elffile_add_dynreloc(struct elffile *w, Elf_Data *reldata,
pimd/pim_nb_config.c: In function 'pim_msdp_peer_authentication_key_modify':
pimd/pim_nb_config.c:1301:9: error: 'TCP_MD5SIG_MAXKEYLEN' undeclared (first use in this function)
 1301 |       > TCP_MD5SIG_MAXKEYLEN) {
pimd/pim_nb_config.c:1301:9: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:9857: pimd/pim_nb_config.o] Error 1
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:43: WARNING: duplicate clicmd description of net XX.XXXX. ... .XXX.XX, other instance in fabricd
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:53: WARNING: duplicate clicmd description of domain-password [clear | md5] <password>, other instance in fabricd
/usr/home/ci/cibuild.20047/frr-source/doc/user/isisd.rst:58: WARNING: duplicate clicmd description of attached-bit [receive ignore | send], other instance in fabricd

FreeBSD 11 amd64 build: config.status output from configure script can be found at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/config.status/config.status
FreeBSD 11 amd64 build: Unknown Log <config.log.gz>
URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20047/artifact/CI009BUILD/config.log/config.log.gz

Report for pim_msdp_socket.c | 8 issues
===============================================
< WARNING: space prohibited between function name and open parenthesis '('
< #119: FILE: /tmp/f1-5399/pim_msdp_socket.c:119:
< WARNING: space prohibited between function name and open parenthesis '('
< #133: FILE: /tmp/f1-5399/pim_msdp_socket.c:133:
< WARNING: braces {} are not necessary for single statement blocks
< #217: FILE: /tmp/f1-5399/pim_msdp_socket.c:217:
< WARNING: space prohibited between function name and open parenthesis '('
< #441: FILE: /tmp/f1-5399/pim_msdp_socket.c:441:
Report for pim_nb.c | 10 issues
===============================================
< WARNING: line over 80 characters
< #175: FILE: /tmp/f1-5399/pim_nb.c:175:
< WARNING: line over 80 characters
< #179: FILE: /tmp/f1-5399/pim_nb.c:179:
< WARNING: line over 80 characters
< #181: FILE: /tmp/f1-5399/pim_nb.c:181:
< WARNING: line over 80 characters
< #182: FILE: /tmp/f1-5399/pim_nb.c:182:
< WARNING: line over 80 characters
< #186: FILE: /tmp/f1-5399/pim_nb.c:186:
Report for pim_nb_config.c | 4 issues
===============================================
< WARNING: line over 80 characters
< #1290: FILE: /tmp/f1-5399/pim_nb_config.c:1290:
< WARNING: line over 80 characters
< #1343: FILE: /tmp/f1-5399/pim_nb_config.c:1343:

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/befaaec12014fc8df4e33a1591b0440d/raw/04294bcb2f9e1acd547633a8c3c3b5fe93ac41f1/cr_8980_1625422884.diff | git apply

diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index bb945df8b..a317f9e0e 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -6580,12 +6580,9 @@ DEFUN (clear_ip_mroute_count,
 
 DEFPY(clear_ip_msdp_peer, clear_ip_msdp_peer_cmd,
       "clear ip msdp peer A.B.C.D$peer [vrf WORD$vrfname]",
-      CLEAR_STR
-      IP_STR
-      MSDP_STR
+      CLEAR_STR IP_STR MSDP_STR
       "Restart MSDP peer\n"
-      "MSDP peer address\n"
-       VRF_CMD_HELP_STR)
+      "MSDP peer address\n" VRF_CMD_HELP_STR)
 {
 	struct vrf *vrf;
 	struct pim_instance *pim;
@@ -9798,8 +9795,7 @@ DEFUN (no_ip_msdp_peer,
 
 DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
       "ip msdp peer A.B.C.D$peer password WORD$psk",
-      IP_STR
-      CFG_MSDP_STR
+      IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9831,9 +9827,7 @@ DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
 
 DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
       "no ip msdp peer A.B.C.D$peer password [WORD]",
-      NO_STR
-      IP_STR
-      CFG_MSDP_STR
+      NO_STR IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 4, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8980 43f6286
Date 07/04/2021
Start 14:26:03
Finish 14:51:36
Run-Time 25:33
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-04-14:26:03.txt
Log autoscript-2021-07-04-14:27:25.log.bz2
Memory 458 500 419

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 4, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20048/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests Ubuntu 18.04 arm8 part 8: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 8: No useful log found
Successful on other platforms/tests
  • Topotests debian 10 amd64 part 2
  • Addresssanitizer topotests part 6
  • Topotests Ubuntu 18.04 i386 part 1
  • Topotests Ubuntu 18.04 i386 part 6
  • Debian 10 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 2
  • IPv4 protocols on Ubuntu 18.04
  • Topotests debian 10 amd64 part 7
  • Topotests Ubuntu 18.04 amd64 part 6
  • Debian 9 deb pkg check
  • Topotests debian 10 amd64 part 8
  • Topotests debian 10 amd64 part 3
  • Ubuntu 18.04 deb pkg check
  • Ubuntu 20.04 deb pkg check
  • Ubuntu 16.04 deb pkg check
  • Topotests Ubuntu 18.04 i386 part 0
  • Addresssanitizer topotests part 2
  • Addresssanitizer topotests part 3
  • Topotests Ubuntu 18.04 i386 part 5
  • Topotests Ubuntu 18.04 amd64 part 8
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topotests debian 10 amd64 part 1
  • Topotests Ubuntu 18.04 i386 part 3
  • Topotests Ubuntu 18.04 arm8 part 2
  • Topotests Ubuntu 18.04 arm8 part 7
  • Topotests debian 10 amd64 part 0
  • Addresssanitizer topotests part 9
  • Topotests Ubuntu 18.04 i386 part 8
  • Topotests Ubuntu 18.04 arm8 part 4
  • Topotests Ubuntu 18.04 arm8 part 9
  • Topotests Ubuntu 18.04 amd64 part 7
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 18.04 i386 part 4
  • Topotests debian 10 amd64 part 9
  • Fedora 29 rpm pkg check
  • Topotests debian 10 amd64 part 4
  • Topotests Ubuntu 18.04 arm8 part 0
  • Topotests Ubuntu 18.04 arm8 part 5
  • Static analyzer (clang)
  • Addresssanitizer topotests part 5
  • Topotests Ubuntu 18.04 amd64 part 1
  • Topotests Ubuntu 18.04 arm8 part 3
  • Addresssanitizer topotests part 1
  • Topotests Ubuntu 18.04 amd64 part 5
  • CentOS 7 rpm pkg check
  • Addresssanitizer topotests part 0
  • Topotests Ubuntu 18.04 i386 part 7
  • Topotests Ubuntu 18.04 amd64 part 9
  • Topotests Ubuntu 18.04 arm8 part 6
  • Topotests Ubuntu 18.04 i386 part 9
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests debian 10 amd64 part 5
  • Topotests Ubuntu 18.04 i386 part 2
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 18.04 amd64 part 3
  • Topotests debian 10 amd64 part 6
  • Topotests Ubuntu 18.04 amd64 part 4
  • Addresssanitizer topotests part 4
  • IPv6 protocols on Ubuntu 18.04
  • Topotests Ubuntu 18.04 amd64 part 0

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests Ubuntu 18.04 arm8 part 8: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 8: No useful log found
Report for pim_msdp_socket.c | 8 issues
===============================================
< WARNING: space prohibited between function name and open parenthesis '('
< #119: FILE: /tmp/f1-14586/pim_msdp_socket.c:119:
< WARNING: space prohibited between function name and open parenthesis '('
< #133: FILE: /tmp/f1-14586/pim_msdp_socket.c:133:
< WARNING: braces {} are not necessary for single statement blocks
< #217: FILE: /tmp/f1-14586/pim_msdp_socket.c:217:
< WARNING: space prohibited between function name and open parenthesis '('
< #441: FILE: /tmp/f1-14586/pim_msdp_socket.c:441:
Report for pim_nb.c | 10 issues
===============================================
< WARNING: line over 80 characters
< #175: FILE: /tmp/f1-14586/pim_nb.c:175:
< WARNING: line over 80 characters
< #179: FILE: /tmp/f1-14586/pim_nb.c:179:
< WARNING: line over 80 characters
< #181: FILE: /tmp/f1-14586/pim_nb.c:181:
< WARNING: line over 80 characters
< #182: FILE: /tmp/f1-14586/pim_nb.c:182:
< WARNING: line over 80 characters
< #186: FILE: /tmp/f1-14586/pim_nb.c:186:
Report for pim_nb_config.c | 4 issues
===============================================
< WARNING: line over 80 characters
< #1291: FILE: /tmp/f1-14586/pim_nb_config.c:1291:
< WARNING: line over 80 characters
< #1344: FILE: /tmp/f1-14586/pim_nb_config.c:1344:

CLANG Static Analyzer Summary

  • Github Pull Request 8980, comparing to Git base SHA b09ca18
  • Base image data for Git b09ca18 does not exist - compare skipped

2 Static Analyzer issues remaining.

See details at
https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20048/artifact/shared/static_analysis/index.html

rzalamena added 4 commits July 4, 2021 21:50
Implement MSDP peer MD5 authentication.

Notes:
- Move the MSDP socket creation code to a generic function so it can be
  parametrized to be used with/without authentication.
- The MSDP peer connection will not change when the configuration is
  set, instead it will only be applied next connection or when
  `clear ip msdp peer A.B.C.D` is called.

Signed-off-by: Rafael Zalamena <[email protected]>
Tell user how to use the new authentication and clear commands.

Signed-off-by: Rafael Zalamena <[email protected]>
Modify existing MSDP topology to use authentication.

Signed-off-by: Rafael Zalamena <[email protected]>
Add definition of `TCP_MD5SIG_MAXKEYLEN` in the `sockopt.h` header so
users of it have the definition of the maximum key length for socket
authentication operations.

The following OSes reported failure in CI while building:
 - NetBSD 8
 - FreeBSD 11
 - FreeBSD 12

Signed-off-by: Rafael Zalamena <[email protected]>
Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/37f2d4fdfaa6463dfe176769f0c7e47e/raw/04294bcb2f9e1acd547633a8c3c3b5fe93ac41f1/cr_8980_1625446266.diff | git apply

diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index bb945df8b..a317f9e0e 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -6580,12 +6580,9 @@ DEFUN (clear_ip_mroute_count,
 
 DEFPY(clear_ip_msdp_peer, clear_ip_msdp_peer_cmd,
       "clear ip msdp peer A.B.C.D$peer [vrf WORD$vrfname]",
-      CLEAR_STR
-      IP_STR
-      MSDP_STR
+      CLEAR_STR IP_STR MSDP_STR
       "Restart MSDP peer\n"
-      "MSDP peer address\n"
-       VRF_CMD_HELP_STR)
+      "MSDP peer address\n" VRF_CMD_HELP_STR)
 {
 	struct vrf *vrf;
 	struct pim_instance *pim;
@@ -9798,8 +9795,7 @@ DEFUN (no_ip_msdp_peer,
 
 DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
       "ip msdp peer A.B.C.D$peer password WORD$psk",
-      IP_STR
-      CFG_MSDP_STR
+      IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"
@@ -9831,9 +9827,7 @@ DEFPY(ip_msdp_peer_md5, ip_msdp_peer_md5_cmd,
 
 DEFPY(no_ip_msdp_peer_md5, no_ip_msdp_peer_md5_cmd,
       "no ip msdp peer A.B.C.D$peer password [WORD]",
-      NO_STR
-      IP_STR
-      CFG_MSDP_STR
+      NO_STR IP_STR CFG_MSDP_STR
       "Configure MSDP peer\n"
       "MSDP Peer address\n"
       "Use MD5 authentication\n"

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 5, 2021

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/8980 9d26df3
Date 07/04/2021
Start 20:56:02
Finish 21:21:38
Run-Time 25:36
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-04-20:56:02.txt
Log autoscript-2021-07-04-20:57:16.log.bz2
Memory 500 494 422

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-20050/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Checkout code: Successful with additional warnings
Report for pim_msdp_socket.c | 8 issues
===============================================
< WARNING: space prohibited between function name and open parenthesis '('
< #119: FILE: /tmp/f1-16965/pim_msdp_socket.c:119:
< WARNING: space prohibited between function name and open parenthesis '('
< #133: FILE: /tmp/f1-16965/pim_msdp_socket.c:133:
< WARNING: braces {} are not necessary for single statement blocks
< #216: FILE: /tmp/f1-16965/pim_msdp_socket.c:216:
< WARNING: space prohibited between function name and open parenthesis '('
< #440: FILE: /tmp/f1-16965/pim_msdp_socket.c:440:
Report for pim_nb.c | 10 issues
===============================================
< WARNING: line over 80 characters
< #175: FILE: /tmp/f1-16965/pim_nb.c:175:
< WARNING: line over 80 characters
< #179: FILE: /tmp/f1-16965/pim_nb.c:179:
< WARNING: line over 80 characters
< #181: FILE: /tmp/f1-16965/pim_nb.c:181:
< WARNING: line over 80 characters
< #182: FILE: /tmp/f1-16965/pim_nb.c:182:
< WARNING: line over 80 characters
< #186: FILE: /tmp/f1-16965/pim_nb.c:186:
Report for pim_nb_config.c | 4 issues
===============================================
< WARNING: line over 80 characters
< #1291: FILE: /tmp/f1-16965/pim_nb_config.c:1291:
< WARNING: line over 80 characters
< #1344: FILE: /tmp/f1-16965/pim_nb_config.c:1344:

@donaldsharp donaldsharp self-requested a review July 6, 2021 15:34
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@rzalamena
Copy link
Member Author

PR is very outdated and the code changed a lot, I'll close this until I get some spare time to get it back on shape.

@rzalamena rzalamena closed this Nov 23, 2022
@rzalamena rzalamena deleted the msdp-auth branch July 27, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants