Macro redefinition
This commit is contained in:
@@ -314,10 +314,10 @@
|
|||||||
#define NDPI_ICMPV6_PROTOCOL_TYPE 0x3a
|
#define NDPI_ICMPV6_PROTOCOL_TYPE 0x3a
|
||||||
|
|
||||||
/* the get_uXX will return raw network packet bytes !! */
|
/* the get_uXX will return raw network packet bytes !! */
|
||||||
#define get_u_int8_t(X,O) (*(u_int8_t *)(((u_int8_t *)X) + O))
|
#define get_u_int8_t(X,O) (*(u_int8_t *)((&(((u_int8_t *)X)[O]))))
|
||||||
#define get_u_int16_t(X,O) (*(u_int16_t *)(((u_int8_t *)X) + O))
|
#define get_u_int16_t(X,O) (*(u_int16_t *)((&(((u_int8_t *)X)[O]))))
|
||||||
#define get_u_int32_t(X,O) (*(u_int32_t *)(((u_int8_t *)X) + O))
|
#define get_u_int32_t(X,O) (*(u_int32_t *)((&(((u_int8_t *)X)[O]))))
|
||||||
#define get_u_int64_t(X,O) (*(u_int64_t *)(((u_int8_t *)X) + O))
|
#define get_u_int64_t(X,O) (*(u_int64_t *)((&(((u_int8_t *)X)[O]))))
|
||||||
|
|
||||||
/* new definitions to get little endian from network bytes */
|
/* new definitions to get little endian from network bytes */
|
||||||
#define get_ul8(X,O) get_u_int8_t(X,O)
|
#define get_ul8(X,O) get_u_int8_t(X,O)
|
||||||
|
|||||||
Reference in New Issue
Block a user