Hello,
I tried to create a function that returns enum roa. However, I'm encountering difficulties specifying its return type.
``` function check_clearnet_roa() { case net.type { NET_IP4: return roa_check(clearnet_roa_v4, net, bgp_path.last); NET_IP6: return roa_check(clearnet_roa_v6, net, bgp_path.last);else: print "is_roa_invalid: ", "unexpected net.type ", net.type, " ", net; return ROA_UNKNOWN;
} } ```If I use "-> enum roa" as return type, birdcl co ch will return "clearnet.conf:143:34 syntax error, unexpected CF_SYM_UNDEFINED".
If I use "-> 'enum roa'" as return type, birdcl co ch will return "clearnet.conf:143:39 Invalid character in apostrophed symbol".
If I don't specify its return type, bird issues the warning "clearnet.conf:145:71: Inferring function check_clearnet_roa return type from its return value: enum roa".
How should I correctly specify its return type? Regards, James
smime.p7s
Description: S/MIME Cryptographic Signature