summaryrefslogtreecommitdiff
path: root/src/checksum.h
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-14 15:49:58 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-14 15:49:58 -0400
commit436011fee88fb1f8e2941c518e5f7bd11d66559d (patch)
tree394cbb0e3827e1743121dab39df2f75d3b6d8955 /src/checksum.h
parentbe097ac2736a45d58b0e2cb345c950b8921e9503 (diff)
downloadudpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.tar.xz
udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.zip
Rewrite args parsing to prepare for libpcap.
Diffstat (limited to 'src/checksum.h')
-rw-r--r--src/checksum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/checksum.h b/src/checksum.h
index 74fe69f..192d538 100644
--- a/src/checksum.h
+++ b/src/checksum.h
@@ -1,3 +1,6 @@
+#ifndef CHECKSUM_H
+#define CHECKSUM_H
+
#include <stdint.h>
struct sockaddr;
@@ -14,3 +17,5 @@ uint16_t csum_partial(const void *buff, int len, uint16_t wsum);
* otherwise identical to csum_partial.
*/
uint16_t csum_sockaddr_partial(const struct sockaddr *addr, int incl_port, uint16_t wsum);
+
+#endif