|
@@ -95,7 +95,7 @@ hash_ipportip4_kadt(struct ip_set *set, const struct sk_buff *skb,
|
|
|
enum ipset_adt adt, struct ip_set_adt_opt *opt)
|
|
|
{
|
|
|
ipset_adtfn adtfn = set->variant->adt[adt];
|
|
|
- struct hash_ipportip4_elem e = { };
|
|
|
+ struct hash_ipportip4_elem e = { .ip = 0 };
|
|
|
struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set);
|
|
|
|
|
|
if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC,
|
|
@@ -113,7 +113,7 @@ hash_ipportip4_uadt(struct ip_set *set, struct nlattr *tb[],
|
|
|
{
|
|
|
const struct hash_ipportip *h = set->data;
|
|
|
ipset_adtfn adtfn = set->variant->adt[adt];
|
|
|
- struct hash_ipportip4_elem e = { };
|
|
|
+ struct hash_ipportip4_elem e = { .ip = 0 };
|
|
|
struct ip_set_ext ext = IP_SET_INIT_UEXT(set);
|
|
|
u32 ip, ip_to = 0, p = 0, port, port_to;
|
|
|
bool with_ports = false;
|
|
@@ -265,7 +265,7 @@ hash_ipportip6_kadt(struct ip_set *set, const struct sk_buff *skb,
|
|
|
enum ipset_adt adt, struct ip_set_adt_opt *opt)
|
|
|
{
|
|
|
ipset_adtfn adtfn = set->variant->adt[adt];
|
|
|
- struct hash_ipportip6_elem e = { };
|
|
|
+ struct hash_ipportip6_elem e = { .ip = { .all = { 0 } } };
|
|
|
struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set);
|
|
|
|
|
|
if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC,
|
|
@@ -283,7 +283,7 @@ hash_ipportip6_uadt(struct ip_set *set, struct nlattr *tb[],
|
|
|
{
|
|
|
const struct hash_ipportip *h = set->data;
|
|
|
ipset_adtfn adtfn = set->variant->adt[adt];
|
|
|
- struct hash_ipportip6_elem e = { };
|
|
|
+ struct hash_ipportip6_elem e = { .ip = { .all = { 0 } } };
|
|
|
struct ip_set_ext ext = IP_SET_INIT_UEXT(set);
|
|
|
u32 port, port_to;
|
|
|
bool with_ports = false;
|