Re: [RFC PATCH net-next 01/12] selftests: forwarding: Add initial testing framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/15/18 11:18 AM, Ido Schimmel wrote:
> +### Tests ###
> +
> +ping_test()
> +{
> +	local vrf_name=$1
> +	local dip=$2
> +
> +	RET=0
> +
> +	ip vrf exec $vrf_name ping $dip -c 10 -i 0.1 -w 2 &> /dev/null
> +	check_err $?
> +	print_result "ping"
> +}

IPv6 addresses on debian need ping6:

root@mlx-2700-05:~/selftests# ip vrf exec vrf-h1 ping 2001:db8:2::2 -c
10 -i 0.1 -w 2
ping: unknown host 2001:db8:2::2

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux