diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-02-26 12:02:10 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-02-26 16:49:12 +0100 |
commit | 264c806da958e1b16619ed2a66a42f2b3ac69558 (patch) | |
tree | 3014b329e36668fc33df7feb0cee7f38f62be058 /lib | |
parent | Merge pull request #9947 from mjstapp/mpls_incoming (diff) | |
download | frr-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.h | 5 |
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 */ |