Lines Matching refs:ip
118 local ip="$1"
120 [[ "$ip" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]
132 local ip="$2"
136 RunInterruptible arping -f -c 5 -w 5 -I "$netdev" "$ip" | \
143 local ip="$2"
145 RunInterruptible ndisc6 -1 -r 5 -w 1000 -q "$ip" "$netdev"
151 local ip="$2"
153 if IsIPv4 "$ip"; then
154 DetermineNeighbor4 "$netdev" "$ip"
156 DetermineNeighbor6 "$netdev" "$ip"
253 local ip="$3"
260 'Neighbor' ss "$ip" "$mac" >/dev/null
312 local ip="$3"
316 if ! IsIPv4 "$ip"; then
324 'IP' ssys "$protocol" "$ip" "$prefix" '' >/dev/null
342 local ip="$(normalize_ip $3)"
352 if [ "$(normalize_ip "$Address")" = "$ip" ] && \
355 elif MatchingAF "$ip" "$Address" && [[ "$Origin" == *.Static ]]; then
368 if [ "$ip" = :: -o "$ip" = 0.0.0.0 ]; then
373 echo "Not adding IP: $ip/$prefix" >&2
375 echo "Adding IP: $ip/$prefix" >&2
376 AddIP "$service" "$netdev" "$ip" "$prefix" || return $?
385 local ip="$3"
390 if ! IsIPv4 "$ip"; then
398 [ "$(normalize_ip "$ip")" = "$(normalize_ip "$current_ip")" ]; then
399 echo "Not reconfiguring gateway: $ip" >&2
403 echo "Setting gateway: $ip" >&2
404 busctl set-property "$service" "$object" "$interface" "$property" s "$ip"
413 local ip="$3"
423 if [ "$(normalize_ip "$IPAddress")" = "$(normalize_ip "$ip")" ] && \
426 elif MatchingAF "$ip" "$IPAddress"; then
439 echo "Not adding neighbor: $ip $mac" >&2
441 echo "Adding neighbor: $ip $mac" >&2
442 AddNeighbor "$service" "$netdev" "$ip" "$mac" || return $?
468 local ip="$(echo "$output" | grep 'from' | awk '{print $2}')"
472 "$ip" "$mac" "$staddr"