22 lines
326 B
C
22 lines
326 B
C
#ifndef _TAP_H_
|
|
#define _TAP_H_
|
|
|
|
#ifdef __cpluscplus
|
|
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);
|
|
|
|
int tap_set_rps(const char *eth, int thread_index, const char *rps_mask);
|
|
|
|
#ifdef __cpluscplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|