For outbound packets, the packetbuf consists of two parts: header and data. This function is used to set the length of the data in the packetbuf. | For outbound packets, the packetbuf consists of two parts: header and data. This function is used to set the length of the data in the packetbuf. |