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?