[PATCH openEuler-5.10 343/557] bareudp: use ipv6_mod_enabled to check if IPv6 enabled