Browse Source

Merge pull request #12302 from aleksander0m/aleksander/mm-mtu

modemmanager: set interface MTU based on bearer settings
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
f6d03d06fd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions
  1. +1
    -1
      net/modemmanager/Makefile
  2. +2
    -3
      net/modemmanager/files/modemmanager.proto

+ 1
- 1
net/modemmanager/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=modemmanager PKG_NAME:=modemmanager
PKG_VERSION:=1.12.10 PKG_VERSION:=1.12.10
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager


+ 2
- 3
net/modemmanager/files/modemmanager.proto View File

@ -204,10 +204,9 @@ modemmanager_connected_method_static_ipv4() {
proto_notify_error "${interface}" PREFIX_MISSING proto_notify_error "${interface}" PREFIX_MISSING
return return
} }
mask=$(cdr2mask "${prefix}") mask=$(cdr2mask "${prefix}")
# TODO: mtu reporting in proto handler
[ -n "${mtu}" ] && /sbin/ip link set dev "${wwan}" mtu "${mtu}"
proto_init_update "${wwan}" 1 proto_init_update "${wwan}" 1
proto_set_keep 1 proto_set_keep 1
@ -270,7 +269,7 @@ modemmanager_connected_method_static_ipv6() {
return return
} }
# TODO: mtu reporting in proto handler
[ -n "${mtu}" ] && /sbin/ip link set dev "${wwan}" mtu "${mtu}"
proto_init_update "${wwan}" 1 proto_init_update "${wwan}" 1
proto_set_keep 1 proto_set_keep 1


Loading…
Cancel
Save