mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
parent
96776d7d0b
commit
a7d417c90d
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local sys = require "luci.sys"
|
||||
local ifaces = sys.net:devices()
|
||||
|
||||
|
@ -30,7 +30,8 @@ add_arp()
|
||||
{
|
||||
[ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] && return
|
||||
echo "Adding ARP:IP Addr:$1 MAC Addr:$2 Interface:$3"
|
||||
ip neigh add $1 lladdr $2 nud permanent dev $3
|
||||
ip neigh add $1 lladdr $2 nud permanent dev $3 || \
|
||||
ip neigh change $1 lladdr $2 nud permanent dev $3
|
||||
}
|
||||
|
||||
arpconf_foreach()
|
||||
@ -52,4 +53,3 @@ stop()
|
||||
{
|
||||
clean_arp
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user