Skip to content

Commit

Permalink
[proto_hep] fix bad chunk identifier macro
Browse files Browse the repository at this point in the history
(cherry picked from commit 7e8518058b24d39e37b952b1912b58d14e97921b)
  • Loading branch information
ionutrazvanionita committed Dec 19, 2016
1 parent 64fd7f6 commit 1913ad0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/proto_hep/hep.h
Expand Up @@ -54,9 +54,10 @@ enum hep_generic_chunks { HEP_PROTO_FAMILY=0x0001, HEP_PROTO_ID=0x0002,
(1<<HEP_TIMESTAMP)|(1<<HEP_TIMESTAMP_US)|(1<<HEP_PROTO_TYPE)| \
(1<<HEP_AGENT_ID)|(1<<HEP_PAYLOAD)|(1<<HEP_COMPRESSED_PAYLOAD))

#define CHUNK_IS_GENERIC(_cid) (_cid>=HEP_MIN_INDEX || _cid<=HEP_MAX_INDEX)
#define CHUNK_IS_GENERIC(_cid) (_cid>=HEP_MIN_INDEX && _cid<=HEP_MAX_INDEX)

#define CHUNK_IS_IN_HEPSTRUCT(_cid) ((1<<_cid)&HEP_STRUCT_CHUNKS)
#define CHUNK_IS_IN_HEPSTRUCT(_cid) (CHUNK_IS_GENERIC(_cid) && \
((1<<_cid)&HEP_STRUCT_CHUNKS))

/* HEPv3 types */

Expand Down

0 comments on commit 1913ad0

Please sign in to comment.