Lines Matching +full:2 +full:c
27 if [ ! -z "$2" ]; then
28 MAC=$(ip netns exec $2 ip link show $1 | grep ether | awk '{print $2}')
30 MAC=$(ip link show $1 | grep ether | awk '{print $2}')
33 echo "0x${MAC:10:2}${MAC:8:2}${MAC:6:2}${MAC:4:2}${MAC:2:2}${MAC:0:2}"
39 rm test_lwt_bpf.o 2> /dev/null
40 ip link del $VETH0 2> /dev/null
41 ip link del $VETH1 2> /dev/null
42 ip link del $VETH2 2> /dev/null
43 ip link del $VETH3 2> /dev/null
45 ip netns delete $NS1 2> /dev/null
46 ip netns delete $NS2 2> /dev/null
52 ip link add $2 type veth peer name $3
53 ip link set dev $2 up
54 ip addr add $4/24 dev $2
71 ip route del ${IPVETH1}/32 dev $VETH0 2> /dev/null || true
72 ip route del table local local ${IP_LOCAL}/32 dev lo 2> /dev/null || true
79 OPTS="encap bpf headroom 14 $1 obj test_lwt_bpf.o section $2 $VERBOSE"
106 echo "Got: $2"
115 EXPECT=$2
143 ping -c 3 $IPVETH1 || {
159 ping -c 3 $IPVETH1 || {
175 ping -c 3 $IP_LOCAL || {
199 ping -c 3 $IPVETH1 || {
203 src: 1fea8c0 dst: 2fea8c0
204 src: 1fea8c0 dst: 2fea8c0
205 src: 1fea8c0 dst: 2fea8c0" || exit 1
212 ping -c 3 $IP_LOCAL || {
230 ping -c 3 $IPVETH1 || {
246 ping -c 3 $IP_LOCAL || {
270 ping -c 3 $IPVETH1 && {
274 dropping with: 2
275 dropping with: 2
276 dropping with: 2" || exit 1
283 ping -c 3 $IP_LOCAL && {
287 dropping with: 2
288 dropping with: 2
289 dropping with: 2" || exit 1
296 ping -c 3 $IPVETH1 || {
309 ping -c 3 $IPVETH1 && {
322 ping -c 3 $IPVETH1 || {
326 out: rewriting from 2fea8c0 to 3fea8c0
327 out: rewriting from 2fea8c0 to 3fea8c0
328 out: rewriting from 2fea8c0 to 3fea8c0" || exit 1
335 ping -c 3 $IPVETH1 && {
377 clang $CLANG_OPTS -c test_lwt_bpf.c -o test_lwt_bpf.o