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
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