network: fix implicit type conversion warning by GCC-10
Fixes part of #14691.
This commit is contained in:
parent
97cd52c1b5
commit
a44956c94a
|
@ -729,7 +729,7 @@ static void ipip_sit_init(NetDev *n) {
|
||||||
assert(t);
|
assert(t);
|
||||||
|
|
||||||
t->pmtudisc = true;
|
t->pmtudisc = true;
|
||||||
t->fou_encap_type = FOU_ENCAP_DIRECT;
|
t->fou_encap_type = NETDEV_FOO_OVER_UDP_ENCAP_DIRECT;
|
||||||
t->isatap = -1;
|
t->isatap = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -771,7 +771,7 @@ static void gre_erspan_init(NetDev *n) {
|
||||||
|
|
||||||
t->pmtudisc = true;
|
t->pmtudisc = true;
|
||||||
t->gre_erspan_sequence = -1;
|
t->gre_erspan_sequence = -1;
|
||||||
t->fou_encap_type = FOU_ENCAP_DIRECT;
|
t->fou_encap_type = NETDEV_FOO_OVER_UDP_ENCAP_DIRECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ip6gre_init(NetDev *n) {
|
static void ip6gre_init(NetDev *n) {
|
||||||
|
|
Loading…
Reference in New Issue