We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30162b commit 3c6c8edCopy full SHA for 3c6c8ed
subsys/net/l2/ethernet/gptp/gptp_messages.h
@@ -46,7 +46,7 @@ extern "C" {
46
#define GPTP_VALID_LEN(pkt, len) \
47
(len > (NET_ETH_MINIMAL_FRAME_SIZE - GPTP_L2_HDR_LEN(pkt)))
48
#define GPTP_L2_HDR_LEN(pkt) \
49
- ((int)GPTP_HDR(pkt) - (int)NET_ETH_HDR(pkt))
+ ((long)GPTP_HDR(pkt) - (long)NET_ETH_HDR(pkt))
50
51
#define GPTP_SYNC_LEN \
52
(sizeof(struct gptp_hdr) + sizeof(struct gptp_sync))
0 commit comments