net/sixlowpan/sixlowpan_framelist.c: Appease nxstyle
This commit is contained in:
parent
5c5fc00fc4
commit
d5a5b6979d
@ -207,8 +207,8 @@ static uint16_t sixlowpan_protosize(FAR const struct ipv6_hdr_s *ipv6hdr,
|
|||||||
|
|
||||||
#ifdef CONFIG_WIRELESS_IEEE802154
|
#ifdef CONFIG_WIRELESS_IEEE802154
|
||||||
static int sixlowpan_ieee802154_metadata(FAR struct radio_driver_s *radio,
|
static int sixlowpan_ieee802154_metadata(FAR struct radio_driver_s *radio,
|
||||||
FAR const struct netdev_varaddr_s *destmac,
|
FAR const struct netdev_varaddr_s *destmac,
|
||||||
FAR union sixlowpan_metadata_u *meta)
|
FAR union sixlowpan_metadata_u *meta)
|
||||||
{
|
{
|
||||||
struct ieee802_txmetadata_s pktmeta;
|
struct ieee802_txmetadata_s pktmeta;
|
||||||
int ret;
|
int ret;
|
||||||
@ -306,8 +306,8 @@ static int sixlowpan_ieee802154_metadata(FAR struct radio_driver_s *radio,
|
|||||||
|
|
||||||
#ifdef CONFIG_WIRELESS_PKTRADIO
|
#ifdef CONFIG_WIRELESS_PKTRADIO
|
||||||
static int sixlowpan_pktradio_metadata(FAR struct radio_driver_s *radio,
|
static int sixlowpan_pktradio_metadata(FAR struct radio_driver_s *radio,
|
||||||
FAR const struct netdev_varaddr_s *destmac,
|
FAR const struct netdev_varaddr_s *destmac,
|
||||||
FAR union sixlowpan_metadata_u *meta)
|
FAR union sixlowpan_metadata_u *meta)
|
||||||
{
|
{
|
||||||
FAR struct pktradio_metadata_s *pktmeta = &meta->pktradio;
|
FAR struct pktradio_metadata_s *pktmeta = &meta->pktradio;
|
||||||
|
|
||||||
@ -568,8 +568,8 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
|
|||||||
* 1. Datagram size describes the total (un-fragmented) payload.
|
* 1. Datagram size describes the total (un-fragmented) payload.
|
||||||
* 2. Datagram tag identifies the set of fragments and is used to
|
* 2. Datagram tag identifies the set of fragments and is used to
|
||||||
* match fragments of the same payload.
|
* match fragments of the same payload.
|
||||||
* 3. Datagram offset identifies the fragment’s offset within the un-
|
* 3. Datagram offset identifies the fragment’s offset within the
|
||||||
* fragmented payload.
|
* unfragmented payload.
|
||||||
*
|
*
|
||||||
* The fragment header length is 4 bytes for the first header and 5
|
* The fragment header length is 4 bytes for the first header and 5
|
||||||
* bytes for all subsequent headers.
|
* bytes for all subsequent headers.
|
||||||
|
@ -412,7 +412,7 @@ static int sixlowpan_frame_process(FAR struct radio_driver_s *radio,
|
|||||||
{
|
{
|
||||||
/* The packet is a fragment but its size does not match. */
|
/* The packet is a fragment but its size does not match. */
|
||||||
|
|
||||||
nwarn("WARNING: Dropping 6LoWPAN packet. Bad fragsize: %u vs &u\n",
|
nwarn("WARNING: Dropping 6LoWPAN packet. Bad fragsize: %u vs %u\n",
|
||||||
fragsize, reass->rb_pktlen);
|
fragsize, reass->rb_pktlen);
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
goto errout_with_reass;
|
goto errout_with_reass;
|
||||||
@ -855,7 +855,7 @@ int sixlowpan_input(FAR struct radio_driver_s *radio,
|
|||||||
|
|
||||||
if (hdrlen > radio->r_dev.d_len)
|
if (hdrlen > radio->r_dev.d_len)
|
||||||
{
|
{
|
||||||
nwarn("WARNING: Packet too small: Have %u need >%u\n",
|
nwarn("WARNING: Packet too small: Have %u need >%zu\n",
|
||||||
radio->r_dev.d_len, hdrlen);
|
radio->r_dev.d_len, hdrlen);
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user