Skip to content

Commit

Permalink
add darwin support
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Aug 2, 2023
1 parent 8e66674 commit 6eb08d6
Show file tree
Hide file tree
Showing 4 changed files with 633 additions and 10 deletions.
17 changes: 17 additions & 0 deletions common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifndef PYTUN_COMMON_H
#define PYTUN_COMMON_H

#include <object.h>

#ifndef IFNAMSIZ
#define IFNAMSIZ (20)
#endif // IFNAMSIZ

struct pytun_tuntap {
PyObject_HEAD
int fd;
char name[IFNAMSIZ];
};
typedef struct pytun_tuntap pytun_tuntap_t;

#endif //PYTUN_COMMON_H
Loading

0 comments on commit 6eb08d6

Please sign in to comment.