1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Use IANA assigned VXLAN port

Fixes #358

Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Dave Tucker 2015-07-03 03:43:02 +01:00
parent 0dbbe8b696
commit 6bba1cd7b1
2 changed files with 2 additions and 0 deletions

View file

@ -54,6 +54,7 @@ func createVxlan(vni uint32) (string, error) {
LinkAttrs: netlink.LinkAttrs{Name: name}, LinkAttrs: netlink.LinkAttrs{Name: name},
VxlanId: int(vni), VxlanId: int(vni),
Learning: true, Learning: true,
Port: vxlanPort,
Proxy: true, Proxy: true,
L3miss: true, L3miss: true,
L2miss: true, L2miss: true,

View file

@ -21,6 +21,7 @@ const (
vethLen = 7 vethLen = 7
vxlanIDStart = 256 vxlanIDStart = 256
vxlanIDEnd = 1000 vxlanIDEnd = 1000
vxlanPort = 4789
) )
type driver struct { type driver struct {