Contiki 3.x
Data Fields
llsec_driver Struct Reference

The structure of a link layer security driver. More...

#include <core/net/llsec/llsec.h>

Data Fields

void(* bootstrap )(llsec_on_bootstrapped_t on_bootstrapped)
 Bootstraps link layer security and thereafter starts upper layers. More...
 
void(* send )(mac_callback_t sent_callback, void *ptr)
 Secures outgoing frames before passing them to NETSTACK_MAC. More...
 
int(* on_frame_created )(void)
 Once the NETSTACK_FRAMER wrote the headers, the LLSEC driver can generate a MIC over the entire frame. More...
 
void(* input )(void)
 Decrypts incoming frames; filters out injected or replayed frames.
 
uint8_t(* get_overhead )(void)
 Returns the security-related overhead per frame in bytes.
 

Detailed Description

The structure of a link layer security driver.

Definition at line 68 of file llsec.h.

Field Documentation

void(* llsec_driver::bootstrap)(llsec_on_bootstrapped_t on_bootstrapped)

Bootstraps link layer security and thereafter starts upper layers.

Definition at line 72 of file llsec.h.

int(* llsec_driver::on_frame_created)(void)

Once the NETSTACK_FRAMER wrote the headers, the LLSEC driver can generate a MIC over the entire frame.

Returns
Returns != 0 <-> success

Definition at line 82 of file llsec.h.

void(* llsec_driver::send)(mac_callback_t sent_callback, void *ptr)

Secures outgoing frames before passing them to NETSTACK_MAC.

Definition at line 75 of file llsec.h.