summaryrefslogtreecommitdiff
path: root/src/wy_singleflow_broadcast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wy_singleflow_broadcast.h')
-rw-r--r--src/wy_singleflow_broadcast.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/wy_singleflow_broadcast.h b/src/wy_singleflow_broadcast.h
new file mode 100644
index 0000000..cbdb8a4
--- /dev/null
+++ b/src/wy_singleflow_broadcast.h
@@ -0,0 +1,30 @@
+#ifndef __WYSF_BROADCAST_H__
+#define __WYSF_BROADCAST_H__
+
+struct udp_message_header
+{
+ u_int16_t magic_number;
+ u_int8_t version;
+ u_int8_t struct_type;
+ u_int32_t total_len;
+};
+
+struct broadcast_message
+{
+ int32_t src_ip;
+ int32_t dst_ip;
+ int16_t src_port;
+ int16_t dst_port;
+ int32_t clj_ip;
+};
+
+struct udp_broadcast_msg
+{
+ struct udp_message_header header;
+ struct broadcast_message msg;
+};
+
+void *thread_fwdnode_breoadcast(void *arg);
+
+#endif
+