vxlan: add options to enable and disable UDP checksums

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
master
Matthias Schiffer 7 years ago
parent 4d001af7c5
commit 95ab18e012
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
  1. 2
      package/network/config/vxlan/Makefile
  2. 6
      package/network/config/vxlan/files/vxlan.sh

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=vxlan
PKG_VERSION:=1
PKG_VERSION:=2
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk

@ -15,8 +15,8 @@ vxlan_generic_setup() {
local link="$cfg"
local port vid ttl tos mtu macaddr zone
json_get_vars port vid ttl tos mtu macaddr zone
local port vid ttl tos mtu macaddr zone rxcsum txcsum
json_get_vars port vid ttl tos mtu macaddr zone rxcsum txcsum
proto_init_update "$link" 1
@ -36,6 +36,8 @@ vxlan_generic_setup() {
[ -n "$port" ] && json_add_int port "$port"
[ -n "$vid" ] && json_add_int id "$vid"
[ -n "$macaddr" ] && json_add_string macaddr "$macaddr"
[ -n "$rxcsum" ] && json_add_boolean rxcsum "$rxcsum"
[ -n "$txcsum" ] && json_add_boolean txcsum "$txcsum"
json_close_object
proto_close_tunnel

Loading…
Cancel
Save