diff --git a/net/sixlowpan/sixlowpan_input.c b/net/sixlowpan/sixlowpan_input.c index 402587c1093..8bf1cbf9dfd 100644 --- a/net/sixlowpan/sixlowpan_input.c +++ b/net/sixlowpan/sixlowpan_input.c @@ -318,7 +318,7 @@ static int sixlowpan_frame_process(FAR struct radio_driver_s *radio, uint16_t paysize; /* Size of the data payload */ uint16_t fragtag = 0; /* Tag of the fragment */ uint8_t fragoffset = 0; /* Offset of the fragment in the IP packet */ - uint8_t protosize = 0; /* Length of the protocol header (treated like payload) */ + uint16_t protosize = 0; /* Length of the protocol header (treated like payload) */ bool isfrag = false; /* true: Frame is a fragment */ bool isfrag1 = false; /* true: Frame is the first fragment of the series */ int reqsize; /* Required buffer size */