]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/lib/test_nexthop.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / tests / lib / test_nexthop.c
index 659d207b4ee78082b6c60c843a1d0838f80ac8ab..84732d6afda273cc9117a0d11437c90f47b53cfb 100644 (file)
@@ -1,23 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Nexthop module test.
  *
  * Copyright (C) 2021 by Volta Networks, Inc.
- *
- * This file is part of FRR.
- *
- * FRR 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, or (at your option) any
- * later version.
- *
- * 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
- * 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 <zebra.h>
@@ -112,15 +97,15 @@ static void test_run_first(void)
        nexthop_free(nh2);
 
        /* Blackhole */
-       nh1 = nexthop_from_blackhole(BLACKHOLE_REJECT);
-       nh2 = nexthop_from_blackhole(BLACKHOLE_REJECT);
+       nh1 = nexthop_from_blackhole(BLACKHOLE_REJECT, 0);
+       nh2 = nexthop_from_blackhole(BLACKHOLE_REJECT, 0);
 
        ret = nexthop_cmp_basic(nh1, nh2);
        assert(ret == 0);
 
        nexthop_free(nh2);
 
-       nh2 = nexthop_from_blackhole(BLACKHOLE_NULL);
+       nh2 = nexthop_from_blackhole(BLACKHOLE_NULL, 0);
 
        ret = nexthop_cmp_basic(nh1, nh2);
        assert(ret != 0);