[PATCH 9/9] [RFC] Add setup_tun() callback

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Feb 8 02:12:49 PST 2016


On Mon, Feb 8, 2016 at 5:26 AM, Kevin Cernekee <cernekee at gmail.com> wrote:
> Library users used to do something like:
>
>   openconnect_obtain_cookie()
>   openconnect_make_cstp_connection()
>   openconnect_setup_dtls()
>   openconnect_get_ip_info()
>   # ask the OS to create the tun interface
>   openconnect_setup_tun_fd()
>   openconnect_mainloop()
>
> But now that MTU is calculated a few seconds after the mainloop starts
> up, it is necessary to provide a callback so that the calling application
> can create a tun interface with the correct MTU.

That seems to address my previous comment; sorry.



More information about the openconnect-devel mailing list