networkd: Assign VXLAN destination port to when GPE is set

When VXLAN destination port is unset and GPE is set
then assign 4790 to destination port. Kernel does the same as
well as iproute.

IANA VXLAN-GPE port is 4790
This commit is contained in:
Susant Sahani
2019-05-09 06:40:33 +02:00
committed by Yu Watanabe
parent 4eb086a387
commit 1c8b0eccc7
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -289,6 +289,9 @@ static int netdev_vxlan_verify(NetDev *netdev, const char *filename) {
"%s: VXLAN TTL must be <= 255. Ignoring.",
filename);
if (!v->dest_port && v->generic_protocol_extension)
v->dest_port = 4790;
return 0;
}