diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-14 15:49:58 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-14 15:49:58 -0400 |
commit | 436011fee88fb1f8e2941c518e5f7bd11d66559d (patch) | |
tree | 394cbb0e3827e1743121dab39df2f75d3b6d8955 /src/checksum.h | |
parent | be097ac2736a45d58b0e2cb345c950b8921e9503 (diff) | |
download | udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.tar.xz udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.zip |
Rewrite args parsing to prepare for libpcap.
Diffstat (limited to 'src/checksum.h')
-rw-r--r-- | src/checksum.h | 5 |
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 |