This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/common/include/tap.h

22 lines
326 B
C
Raw Normal View History

#ifndef _TAP_H_
#define _TAP_H_
2023-04-28 17:45:13 +08:00
#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);
2023-04-28 17:45:13 +08:00
#ifdef __cpluscplus
}
#endif
#endif