How to create a veth pair without ip command in c

102 views Asked by At

Is there a way to use syscalls like ioctl or netlink to create a veth pair. Generally the common way for veth pair creation is using ip command -

ip link add dev veth1 type veth peer name veth2

How to create a veth pair in c using ioctl or such syscalls in linux?

0

There are 0 answers