Contiki-NG
Functions
mac-sequence.h File Reference

    Header file for MAC sequence numbers management
More...

Go to the source code of this file.

Functions

int mac_sequence_is_duplicate (void)
 Tell whether the packetbuf is a duplicate packet. More...
 
void mac_sequence_register_seqno (void)
 Register the sequence number of the packetbuf. More...
 

Detailed Description

    Header file for MAC sequence numbers management
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se Benoît Thébaudeau benoi.nosp@m.t.th.nosp@m.ebaud.nosp@m.eau@.nosp@m.advan.nosp@m.see..nosp@m.com

Definition in file mac-sequence.h.

Function Documentation

◆ mac_sequence_is_duplicate()

int mac_sequence_is_duplicate ( void  )

Tell whether the packetbuf is a duplicate packet.

Returns
Non-zero if the packetbuf is a duplicate packet, zero otherwise
        This function is used to check for duplicate packet by comparing
        the sequence number of the incoming packet with the last few ones
        we saw, filtering with the link-layer address.

Definition at line 72 of file mac-sequence.c.

◆ mac_sequence_register_seqno()

void mac_sequence_register_seqno ( void  )

Register the sequence number of the packetbuf.

This function is used to add the sequence number of the incoming packet to the history.

Definition at line 101 of file mac-sequence.c.