framer-802154: Support for setting and accessing the frame type

attribute
This commit is contained in:
kkrentz 2013-05-24 06:54:55 -07:00
parent 19c9ef0a95
commit 9dc9e4bd9f
3 changed files with 7 additions and 1 deletions

View file

@ -43,7 +43,9 @@
*/
#include "net/llsec/nullsec.h"
#include "net/mac/frame802154.h"
#include "net/netstack.h"
#include "net/packetbuf.h"
/*---------------------------------------------------------------------------*/
static void
@ -55,6 +57,7 @@ bootstrap(llsec_on_bootstrapped_t on_bootstrapped)
static void
send(mac_callback_t sent, void *ptr)
{
packetbuf_set_attr(PACKETBUF_ATTR_FRAME_TYPE, FRAME802154_DATAFRAME);
NETSTACK_MAC.send(sent, ptr);
}
/*---------------------------------------------------------------------------*/