summaryrefslogtreecommitdiff
path: root/src/include/dgram.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-29 01:17:06 -0400
committerIan Moffett <ian@osmora.org>2025-09-29 01:17:06 -0400
commite92588d33b8025799a06dd248d512d774c99e887 (patch)
tree058b3cdea96df94dbdb0127dc809240b8633437c /src/include/dgram.h
parentc237e0b558fa6ae2a1417f4b4df14212b8721ba8 (diff)
dgram: link: Improve reception, add timeouts, ++HEADmaster
- Add timeouts - Clean up padding, add length define Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/include/dgram.h')
-rw-r--r--src/include/dgram.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/dgram.h b/src/include/dgram.h
index 779c7ef..81fd1dd 100644
--- a/src/include/dgram.h
+++ b/src/include/dgram.h
@@ -34,6 +34,12 @@
#include "if_ether.h"
#include "link.h"
+/* Number of padding bytes in a squeak */
+#define SQUEAK_NPAD 8
+
+/* How many ms we should poll on recv */
+#define RECV_POLL_MS 250
+
typedef int16_t tx_len_t;
typedef tx_len_t rx_len_t;