Contiki 2.5
Files | Functions | Variables
Network Layer interface

Files

file  dtn_network.c
 
file  dtn_network.h
 

Functions

uint8_t * dtn_network_get_buffer ()
 Returns the pointer to a buffer that can be used to contruct packets. More...
 
uint8_t dtn_network_get_buffer_length ()
 Returns the maximum buffer length. More...
 
void dtn_network_send (rimeaddr_t *destination, uint8_t length, void *reference)
 Send out the content that was put in the buffer. More...
 

Variables

struct network_driver dtn_network_driver
 Contiki's network driver interface.
 
struct network_driver dtn_network_driver
 Contiki's network driver interface.
 

Detailed Description

Function Documentation

uint8_t * dtn_network_get_buffer ( )

Returns the pointer to a buffer that can be used to contruct packets.

Returns
Pointer to the buffer

Definition at line 110 of file dtn_network.c.

References NULL, packetbuf_clear(), and packetbuf_dataptr().

uint8_t dtn_network_get_buffer_length ( )

Returns the maximum buffer length.

Returns
Maximum buffer length

Definition at line 123 of file dtn_network.c.

References PACKETBUF_SIZE.

void dtn_network_send ( rimeaddr_t *  destination,
uint8_t  length,
void *  reference 
)

Send out the content that was put in the buffer.

Parameters
destinationPointer to the destination address
lengthLength of the outgoing frame
referenceReference that will be passed on into the callback

Definition at line 127 of file dtn_network.c.

References packetbuf_set_datalen().