c - Bind to a veth interface -


trying bind code veth interface . need create raw_socket this.

creating veth interface using

ip link add veth10 type veth peer veth10p 

can me code connecting 1 end of veth connection (i.e. veth10 in example).

you need interface index first - under linux can use struct ifreq , ioctl. have written own arp request not need can observe code understand working interfaces (name -> index)

https://github.com/petrbel/pvu2/blob/master/arp-request/arp.c#l59

hope helped little


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -