aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/net_common.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-22 13:54:48 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit95499e2e132b1c619704b6fbc452e661633b3233 (patch)
tree963a1e67d8a4cd2c24547272a812ba762cfb0e77 /firmware/microblaze/lib/net_common.h
parent6004410a7b73a52d95b8f5f0cf0fa969bef4e910 (diff)
downloaduhd-95499e2e132b1c619704b6fbc452e661633b3233.tar.gz
uhd-95499e2e132b1c619704b6fbc452e661633b3233.tar.bz2
uhd-95499e2e132b1c619704b6fbc452e661633b3233.zip
packet_router: dont register mac, also reorganized some tidbits
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);