#!/bin/sh # SPDX-License-Identifier: GPL-2.0 # # Execute a subprocess in a network namespace set -e readonly NETNS="ns-$(mktemp -u XXXXXX)" setup() { ip netns add "${NETNS}" ip -netns "${NETNS}" link set lo up } cleanup() { ip netns del "${NETNS}" } trap cleanup EXIT setup "$@" exit "$?"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Makefile | File | 653 B | 0644 |
|
fib-onlink-tests.sh | File | 8.83 KB | 0755 |
|
in_netns.sh | File | 298 B | 0755 |
|
msg_zerocopy.sh | File | 2.91 KB | 0755 |
|
netdevice.sh | File | 4.42 KB | 0755 |
|
rtnetlink.sh | File | 11.26 KB | 0755 |
|
test_bpf.sh | File | 225 B | 0755 |
|