summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-02-26 12:02:10 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-02-26 16:49:12 +0100
commit264c806da958e1b16619ed2a66a42f2b3ac69558 (patch)
tree3014b329e36668fc33df7feb0cee7f38f62be058 /lib
parentMerge pull request #9947 from mjstapp/mpls_incoming (diff)
downloadfrr-264c806da958e1b16619ed2a66a42f2b3ac69558.tar.xz
frr-264c806da958e1b16619ed2a66a42f2b3ac69558.zip
lib: guard checksum.h against multiple inclusion
checksum.h was throwing errors if it ended up included twice. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/checksum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/checksum.h b/lib/checksum.h
index 56771d4f2..16e694542 100644
--- a/lib/checksum.h
+++ b/lib/checksum.h
@@ -1,3 +1,6 @@
+#ifndef _FRR_CHECKSUM_H
+#define _FRR_CHECKSUM_H
+
#include <stdint.h>
#include <netinet/in.h>
@@ -35,3 +38,5 @@ extern uint16_t fletcher_checksum(uint8_t *, const size_t len,
#ifdef __cplusplus
}
#endif
+
+#endif /* _FRR_CHECKSUM_H */