]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: make bgp_packet_mpattr_start more prescriptive when using enum's
authorDonald Sharp <sharpd@nvidia.com>
Fri, 16 Dec 2022 13:17:18 +0000 (08:17 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 16 Dec 2022 13:17:18 +0000 (08:17 -0500)
commit722e8011e1e8e17e9f9c4c2dcf061ad4b1392982
treeeccfe7880a5854a997e3533ad2b6430174db903a
parent4487f0bd2cfa63823a3cde7509d704471bca817a
bgpd: make bgp_packet_mpattr_start more prescriptive when using enum's

This function was just using default: case statements for
the encoding of nlri's to a peer.  Lay out all the different
cases and make things fail hard when a dev escape is found.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_attr.c