Contiki-NG
Typedefs | Functions

    Transaction Management for 6top Protocol (6P)
More...

#include "contiki-lib.h"
#include "lib/assert.h"
#include "sixtop.h"
#include "sixtop-conf.h"
#include "sixp-nbr.h"
#include "sixp-trans.h"
#include "sys/log.h"

Go to the source code of this file.

Typedefs

typedef struct sixp_trans sixp_trans_t
 6P Transaction Data Structure (for internal use)
 

Functions

int sixp_trans_transit_state (sixp_trans_t *trans, sixp_trans_state_t new_state)
 Change the state of a specified transaction. More...
 
sixp_pkt_cmd_t sixp_trans_get_cmd (sixp_trans_t *trans)
 Return the command associated with a specified transaction. More...
 
sixp_trans_state_t sixp_trans_get_state (sixp_trans_t *trans)
 Return the state of a specified transaction. More...
 
int16_t sixp_trans_get_seqno (sixp_trans_t *trans)
 Return the sequence number associated with a specified transaction. More...
 
sixp_trans_mode_t sixp_trans_get_mode (sixp_trans_t *trans)
 Return the mode, 2-step or 3-step, of a specified transaction. More...
 
void sixp_trans_invoke_callback (sixp_trans_t *trans, sixp_output_status_t status)
 Invoke the output callback of a specified transaction. More...
 
void sixp_trans_set_callback (sixp_trans_t *trans, sixp_sent_callback_t func, void *arg, uint16_t arg_len)
 Set an output callback to a specified transaction. More...
 
sixp_trans_tsixp_trans_alloc (const sixp_pkt_t *pkt, const linkaddr_t *peer_addr)
 Allocate a transaction. More...
 
sixp_trans_tsixp_trans_find (const linkaddr_t *peer_addr)
 Find a transaction. More...
 
int sixp_trans_init (void)
 Initialize Memory and List for 6P transactions This function removes and frees existing transactions.
 

Detailed Description

    Transaction Management for 6top Protocol (6P)
Author
Yasuyuki Tanaka yasuy.nosp@m.uki..nosp@m.tanak.nosp@m.a@in.nosp@m.f.eth.nosp@m.z.ch

Definition in file sixp-trans.c.