aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorAndrey Erokhin <a.erokhin@inango-systems.com>2023-03-07 16:52:58 +0500
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-02 22:07:27 +0200
commit066ac40c29a371e676c53398028792afaa61444b (patch)
tree6d5e7cbf29b424e7a55717cd9e5dd4d3546a52d0 /package/network
parent354ad1084a074392e72d61e68e9bdbf16b4b774b (diff)
downloadupstream-066ac40c29a371e676c53398028792afaa61444b.tar.gz
upstream-066ac40c29a371e676c53398028792afaa61444b.tar.bz2
upstream-066ac40c29a371e676c53398028792afaa61444b.zip
netifd: strip mask from IP address in DHCP client params
ipaddr option can be in CIDR notation, but udhcp wants just an IP address Signed-off-by: Andrey Erokhin <a.erokhin@inango-systems.com> (cherry picked from commit 506bb436c678779e8ee54e83a7fb3e4e880037ec)
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/proto/dhcp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
index ea6d872eb4..636b4654ff 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -67,7 +67,7 @@ proto_dhcp_setup() {
-p /var/run/udhcpc-$iface.pid \
-s /lib/netifd/dhcp.script \
-f -t 0 -i "$iface" \
- ${ipaddr:+-r $ipaddr} \
+ ${ipaddr:+-r ${ipaddr/\/*/}} \
${hostname:+-x "hostname:$hostname"} \
${vendorid:+-V "$vendorid"} \
$clientid $defaultreqopts $broadcast $norelease $dhcpopts