X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=pathd%2Fpath_pcep_cli.c;h=6c660a3d085cbe053acb2ee21b20e7371de313f7;hb=696172d7bd00a0b1f9087dff0e63d5d82c8e5597;hp=a6f253d3e32451511372fe76e21936b3c6a3da8c;hpb=1c50c7243fee32d18b9f5fd0ab2380f850e3debc;p=mirror_frr.git diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c index a6f253d3e..6c660a3d0 100644 --- a/pathd/path_pcep_cli.c +++ b/pathd/path_pcep_cli.c @@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2020 Volta Networks, Inc * Brady Johnson - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; see the file COPYING; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include @@ -40,9 +27,7 @@ #include "pathd/path_pcep_lib.h" #include "pathd/path_pcep_pcc.h" -#ifndef VTYSH_EXTRACT_PL #include "pathd/path_pcep_cli_clippy.c" -#endif #define DEFAULT_PCE_PRECEDENCE 255 #define DEFAULT_PCC_MSD 4 @@ -1027,7 +1012,7 @@ static int path_pcep_cli_pcc_pcc_peer(struct vty *vty, const char *peer_name, /* Verify the PCE has the IP set */ struct in6_addr zero_v6_addr; - memset(&zero_v6_addr, 0, sizeof(struct in6_addr)); + memset(&zero_v6_addr, 0, sizeof(zero_v6_addr)); if (memcmp(&pce_opts->addr.ip, &zero_v6_addr, IPADDRSZ(&pce_opts->addr)) == 0) { vty_out(vty,