From: Russ Combs Date: Wed, 9 Sep 2015 11:13:49 +0000 (-0400) Subject: fix build on openbsd X-Git-Tag: 3.0.0-233~840^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e44f08aa3387b3c42bfe082b09e8e45fac35ef;p=thirdparty%2Fsnort3.git fix build on openbsd --- diff --git a/src/protocols/arp.h b/src/protocols/arp.h index 8da8989ae..533eb759b 100644 --- a/src/protocols/arp.h +++ b/src/protocols/arp.h @@ -47,10 +47,21 @@ struct EtherARP constexpr uint16_t ETHERARP_HDR_LEN = 28; /* sizeof EtherARP != 28 */ } // namespace arp +#ifndef ARPOP_REQUEST constexpr uint16_t ARPOP_REQUEST = 1; /* ARP request */ +#endif + +#ifndef ARPOP_REPLY constexpr uint16_t ARPOP_REPLY = 2; /* ARP reply */ +#endif + +#ifndef ARPOP_RREQUEST constexpr uint16_t ARPOP_RREQUEST = 3; /* RARP request */ +#endif + +#ifndef ARPOP_RREPLY constexpr uint16_t ARPOP_RREPLY = 4; /* RARP reply */ +#endif #endif