+// SPDX-License-Identifier: GPL-2.0-or-later
/* NHRP interface
* Copyright (c) 2014-2015 Timo Teräs
- *
- * This file is free software: you may copy, redistribute 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.
*/
#ifdef HAVE_CONFIG_H
struct nhrp_interface *nifp = ifp->info, *nbmanifp = NULL;
struct interface *nbmaifp = NULL;
union sockunion nbma;
+ struct in_addr saddr = {0};
sockunion_family(&nbma) = AF_UNSPEC;
if (nifp->source)
nbmaifp = if_lookup_by_name(nifp->source, nifp->link_vrf_id);
- switch (ifp->ll_type) {
- case ZEBRA_LLT_IPGRE: {
- struct in_addr saddr = {0};
-
+ if (ifp->ll_type != ZEBRA_LLT_IPGRE)
+ debugf(NHRP_DEBUG_IF, "%s: Ignoring non GRE interface type %u",
+ __func__, ifp->ll_type);
+ else {
if (!gre_info) {
nhrp_send_zebra_gre_request(ifp);
return;
nbmaifp =
if_lookup_by_index(nifp->link_idx,
nifp->link_vrf_id);
- } break;
- default:
- break;
}
if (nbmaifp)