num_or_str
#define bgp_type(x) num_or_str(bgptype, sizeof(bgptype)/sizeof(bgptype[0]), (x))
num_or_str(bgpopt_type, sizeof(bgpopt_type)/sizeof(bgpopt_type[0]), (x))
num_or_str(bgp_capcode, sizeof(bgp_capcode)/sizeof(bgp_capcode[0]), (x))
num_or_str(bgp_roletype, \
num_or_str(bgpnotify_major, \
num_or_str(bgpattr_origin, \
num_or_str(bgpattr_type, \
num_or_str(bgpattr_nlri_safi, \
num_or_str(afnumber, \
num_or_str(refreshtype, sizeof(refreshtype)/sizeof(refreshtype[0]), (x))