aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/passt.h b/passt.h
index f5ecb0c..e3f570b 100644
--- a/passt.h
+++ b/passt.h
@@ -11,8 +11,8 @@
struct tap_msg {
char *start;
char *l4h;
- size_t len;
- size_t l4_len;
+ uint16_t len;
+ uint16_t l4_len;
};
union epoll_ref;
@@ -45,7 +45,7 @@ union epoll_ref {
uint64_t u64;
};
-#define TAP_BUF_BYTES (ETH_MAX_MTU * 3)
+#define TAP_BUF_BYTES (ETH_MAX_MTU * 128)
#define TAP_BUF_FILL (TAP_BUF_BYTES - ETH_MAX_MTU - sizeof(uint32_t))
#define TAP_MSGS (TAP_BUF_BYTES / sizeof(struct ethhdr) + 1)