Closed jimying closed 6 months ago
@jimying Many thanks for this patch, which I have now merged. There was one slight problem with it, since it would not build if SNMP support was disabled, but commit f035191 resolves that.
@pqarmitage
I copied the logic from get_rttables_group() in lib/rttables.h
#if HAVE_DECL_FRA_SUPPRESS_IFGROUP && defined _WITH_SNMP_VRRP_
extern const char *get_rttables_group(uint32_t);
#endif
is it also need modify get_rttables_group()?
@jimying No, it is not needed to modify get_rttables_group(). get_rttables_group() is only used for responding to SNMP requests, whereas find_rttables_group() is used for ip rules and for vmac and ipvlan config parsing.
lack macro HAVE_DECL_FRA_SUPPRESS_IFGROUP, which is similar with get_rttables_group().
This fix build error when macro HAVE_DECL_FRA_SUPPRESS_IFGROUP=0 (on centos 7 kernel 3.10.0)