+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2015-2016, LabN Consulting, L.L.C.
- *
- * 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 "lib/zebra.h"
bgp_encap_type_pbb_to_tlv(&tto->bgpinfo.pbb, attr);
break;
- default:
- assert(0);
+ case BGP_ENCAP_TYPE_RESERVED:
+ assert(!"Cannot process BGP_ENCAP_TYPE_RESERVED");
}
return tto->type;
}
stlv = attr->encap_subtlvs;
uo = XCALLOC(MTYPE_RFAPI_UN_OPTION, sizeof(struct rfapi_un_option));
- assert(uo);
uo->type = RFAPI_UN_OPTION_TYPE_TUNNELTYPE;
uo->v.tunnel.type = attr->encap_tunneltype;
tto = &uo->v.tunnel;
print_encap_type_pbb(stream, column_offset, &tto->bgpinfo.pbb);
break;
- default:
- assert(0);
+ case BGP_ENCAP_TYPE_RESERVED:
+ assert(!"Cannot process BGP_ENCAP_TYPE_RESERVED");
}
}