staticd: Code review comments fixes

1) Conform staticd to proper gnu gpl file format.
2) Fix a spelling mistake found.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-06-21 08:46:05 -04:00
parent 614aa5c166
commit 8d5cbee91d
13 changed files with 106 additions and 108 deletions

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -1,17 +1,17 @@
/* /*
* STATICd - vrf code * STATICd - route code
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software
@ -325,7 +325,7 @@ static int static_route_leak(
"%% Malformed source address\n"); "%% Malformed source address\n");
else else
zlog_warn( zlog_warn(
"%s: Malformed Source address: %s", "%s: Malformed source address: %s",
__PRETTY_FUNCTION__, src_str); __PRETTY_FUNCTION__, src_str);
return CMD_WARNING_CONFIG_FAILED; return CMD_WARNING_CONFIG_FAILED;
} }

View File

@ -2,16 +2,15 @@
* STATICd - vty header * STATICd - vty header
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* 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.
* *
* FRR is free software; you can redistribute it and/or modify it * This program is distributed in the hope that it will be useful, but WITHOUT
* under the terms of the GNU General Public License as published by the * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Free Software Foundation; either version 2, or (at your option) any * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* later version. * more details.
*
* FRR 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 * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,15 +3,15 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * with this program; see the file COPYING; if not, write to the Free Software

View File

@ -3,19 +3,18 @@
* Copyright (C) 2018 Cumulus Networks, Inc. * Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp * Donald Sharp
* *
* FRR is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License as published by the Free
* Free Software Foundation; either version 2, or (at your option) any * Software Foundation; either version 2 of the License, or (at your option)
* later version. * any later version.
* *
* FRR is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but WITHOUT
* WITHOUT ANY WARRANTY; without even the implied warranty of * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* General Public License for more details. * more details.
* *
* You should have received a copy of the GNU General Public License along * 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 * 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
*/ */
#ifndef __STATIC_ZEBRA_H__ #ifndef __STATIC_ZEBRA_H__
#define __STATIC_ZEBRA_H__ #define __STATIC_ZEBRA_H__