Jack J. Woehr wrote:
Steve Shockley wrote:

A quick search found https://github.com/adrienverge/openfortivpn, but I haven't 
tested it.

It's clearly the right product. However. I've been trying to build it for an hour now. It requires Much Work for OpenBSD, it's somewhat wed to the Linux stack.


I'm sort of stuck at the moment on these macros where "rt" is an instance of 
struct rtentry :

#define route_dest(route) \
        (((struct sockaddr_in *) &(route)->rt_dst)->sin_addr)
#define route_mask(route) \
        (((struct sockaddr_in *) &(route)->rt_genmask)->sin_addr)
#define route_gtw(route) \
        (((struct sockaddr_in *) &(route)->rt_gateway)->sin_addr)
#define route_iface(route) \
        ((route)->rt_dev)

If anyone can help me translate this to OpenBSD ... :)

--
Jack J. Woehr     # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a way of skeptically interrogating the universe
www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan

Reply via email to