aboutgitcodebugslistschat
path: root/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'udp.h')
-rw-r--r--udp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/udp.h b/udp.h
index 0179fa2..b9ac2e0 100644
--- a/udp.h
+++ b/udp.h
@@ -1,4 +1,19 @@
+#ifndef UDP_H
+#define UDP_H
+
void udp_sock_handler(struct ctx *c, int s, uint32_t events);
int udp_tap_handler(struct ctx *c, int af, void *addr,
struct tap_msg *msg, int count);
int udp_sock_init(struct ctx *c);
+
+/**
+ * struct udp_ctx - Execution context for UDP
+ * @fd_min: Lowest file descriptor number for UDP ever used
+ * @fd_max: Highest file descriptor number for UDP ever used
+ */
+struct udp_ctx {
+ int fd_min;
+ int fd_max;
+};
+
+#endif /* UDP_H */