netifd: strip mask from IP address in DHCP client params
authorAndrey Erokhin <a.erokhin@inango-systems.com>
Tue, 7 Mar 2023 11:52:58 +0000 (16:52 +0500)
committerRISCi_ATOM <bob@bobcall.me>
Mon, 15 May 2023 15:07:33 +0000 (11:07 -0400)
commite0860724dd035a345106ad00cdb5c0c2c83eac90
tree56d290249ad753e11036d6b35deb45f166cb227a
parentb096ad4a78af394b89317719704e09dac3283ffd
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)
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh