#ifndef _TAP_H_ #define _TAP_H_ #ifdef __cplusplus extern "C" { #endif int tap_open(const char *eth, int flags); void tap_close(int sockfd); int tap_up_link(const char *eth); int tap_get_mtu(const char *eth); #ifdef __cplusplus } #endif #endif