]> git.puffer.fish Git - matthieu/frr.git/commit
lib, bgpd: Create iana_afi.h for storing iana_afi/safi enums
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 19:02:07 +0000 (15:02 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 19:02:07 +0000 (15:02 -0400)
commit17136bf23e2ceb1d8a93ef79e8ba87f23c3dd260
tree1327a454aebdafb7e9ace6ae26aec93dbaf3dc50
parent748a041f09a8f89d07979c0ba73738f3292a28aa
lib, bgpd: Create iana_afi.h for storing iana_afi/safi enums

The iana_afi_t and iana_safi_t were being created in zebra.h
and zebra.h is a bit of a dumping ground.  When the iana_afi2str and
iana_safi2str functions were created, it was correctly pointed out
that we should just use the internal afi_t and safi_t 2str functions
but to do that we would need to include prefix.h in zebra.h.  Which
really is not the right thing to do.  This tells us that we need
to break out this code into it's own header.

Move to iana_afi.h the enums and specific functions and remove
from zebra.  Convert to using the afi2str and safi2str functions.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgpd.h
lib/iana_afi.h [new file with mode: 0644]
lib/subdir.am
lib/zebra.h