Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 180888 | Differences between
and this patch

Collapse All | Expand All

(-)net.Linux/arping.sh (-3 / +6 lines)
Lines 24-33 Link Here
24
	[ -z "${w}" ] && w=${arping_wait:-5}
24
	[ -z "${w}" ] && w=${arping_wait:-5}
25
25
26
	if type arping2 >/dev/null 2>&1; then
26
	if type arping2 >/dev/null 2>&1; then
27
		[ -z "$(_get_inet_address)" ] && opts="${opts} -0"
27
		if [ -n "${spoof}" ]; then
28
		[ -n "${spoof}" ] && opts="${opts} -S ${spoof}"
28
			opts="${opts} -S ${spoof}"
29
		else
30
			[ -z "$(_get_inet_address)" ] && opts="${opts} -0"
31
		fi
29
		while [ ${w} -gt 0 -a -z "${foundmac}" ]; do
32
		while [ ${w} -gt 0 -a -z "${foundmac}" ]; do
30
			foundmac="$(arping2 ${opts} -r -c 1 -0 -i "${IFACE}" "${ip}" 2>/dev/null | \
33
			foundmac="$(arping2 ${opts} -r -c 1 -i "${IFACE}" "${ip}" 2>/dev/null | \
31
			sed -e 'y/abcdef/ABCDEF/')"
34
			sed -e 'y/abcdef/ABCDEF/')"
32
			w=$((${w} - 1))
35
			w=$((${w} - 1))
33
		done
36
		done

Return to bug 180888