aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/net_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/microblaze/lib/net_common.h')
-rw-r--r--firmware/microblaze/lib/net_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/net_common.h b/firmware/microblaze/lib/net_common.h
index 5e364adeb..4004ca6e6 100644
--- a/firmware/microblaze/lib/net_common.h
+++ b/firmware/microblaze/lib/net_common.h
@@ -23,6 +23,13 @@
#include <net/socket_address.h>
#include <net/eth_mac_addr.h>
+/*
+ * 1's complement sum for IP and UDP headers
+ *
+ * init chksum to zero to start.
+ */
+unsigned int CHKSUM(unsigned int x, unsigned int *chksum);
+
typedef void (*udp_receiver_t)(struct socket_address src, struct socket_address dst,
unsigned char *payload, int payload_len);