diff options
Diffstat (limited to 'ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h')
-rw-r--r-- | ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h b/ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h index 631b53c6..79e2d188 100644 --- a/ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h +++ b/ics-openvpn-stripped/main/openvpn/src/openvpn/tun.h @@ -391,6 +391,19 @@ tuntap_stop (int status) return false; } +static inline bool +tuntap_abort(int status) +{ + /* + * Typically generated when driver is halted. + */ + if (status < 0) + { + return openvpn_errno() == ERROR_OPERATION_ABORTED; + } + return false; +} + static inline int tun_write_win32 (struct tuntap *tt, struct buffer *buf) { @@ -432,6 +445,12 @@ tuntap_stop (int status) return false; } +static inline bool +tuntap_abort(int status) +{ + return false; +} + static inline void tun_standby_init (struct tuntap *tt) { |