[Openvpn-devel] Better use ip -batch on adding/removing server pushed routes on Linux

2012-02-20 Thread Yang Zhe
Hi, It's quite slow to add thousands of routes via execve thousands times. It's better writing the parameters to a pipe to `ip -batch -` on linux. -- Sincerely,     Yang Zhe

[Openvpn-devel] Does OpenVPN get IP_PKTINFO in the correct manner?

2011-09-03 Thread Yang Zhe
iterated in the cmsghdr list then find the required information by for (cmsg = CMSG_FIRSTHDR(&mesg); cmsg; cmsg = CMSG_NXTHDR(&mesg, cmsg)) if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_PKTINFO && ... ) { } In the openvpn's code, it only examine the FIRSTHDR, and assuming CMSG_NXTHDR = NULL, which is odd. Anybody get "--multihome" worked? -- Sincerely,     Yang Zhe