1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/include/sixlowpan/error.h
2013-12-16 15:09:18 +01:00

100 lines
2.4 KiB
C

/*
* Copyright (C) 2013 INRIA.
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup net_sixlowpan
* @{
*
* @file sixlowpan/error.h
* @brief 6LoWPAN error codes
*
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
*/
#ifndef SIXLOWPAN_ERROR_H
#define SIXLOWPAN_ERROR_H
/**
* Functions return this if call was success. Only defined if not
* already defined by other header.
*/
#define SIXLOWERROR_SUCCESS (0)
/**
* Error code that signals that array is full.
*/
#define SIXLOWERROR_ARRAYFULL (132)
/**
* Error code that signals a NULL pointer error.
*/
#define SIXLOWERROR_NULLPTR (133)
/**
* Error code that signals an illegal value.
*/
#define SIXLOWERROR_VALUE (134)
/**
* Error code that signals an illegal address.
*/
#define SIXLOWERROR_ADDRESS (135)
/**
* Error code that signals an unknown 6LoWPAN dispatch
* @see <a href="http://tools.ietf.org/html/rfc4944#section-5">
* RFC 4944, Section 5: LoWPAN Adaptation Layer and Frame Format
* </a>
*/
#define SIXLOWERROR_DISPATCH (136)
/**
* Error code that signals that the first 6LoWPAN fragment was
* not received
* @see <a href="http://tools.ietf.org/html/rfc4944#section-5.3">
* RFC 4944, Section 5.3: Fragmentation Type and Header
* </a>
*/
#define SIXLOWERROR_FSTFRAG (137)
/**
* Error code that signals that an invalid 6LoWPAN fragment was
* received.
* @see <a href="http://tools.ietf.org/html/rfc4944#section-5.3">
* RFC 4944, Section 5.3: Fragmentation Type and Header
* </a>
*/
#define SIXLOWERROR_INVFRAG (138)
/**
* Error code that signals that the source context identifier was not
* found.
* @see <a href="http://tools.ietf.org/html/rfc6282#section-3.1">
* RFC 6282, Section 3.1: LOWPAN_IPHC Encoding format
* </a>
*/
#define SIXLOWERROR_SCI (139)
/**
* Error code that signals that the destination context identifier was
* not found.
* @see <a href="http://tools.ietf.org/html/rfc6282#section-3.1">
* RFC 6282, Section 3.1: LOWPAN_IPHC Encoding format
* </a>
*/
#define SIXLOWERROR_DCI (140)
/**
* Error code that signals that the destination context identifier was
* not found.
*/
#define SIXLOWERROR_CSUM (141)
/** @} */
#endif /* SIXLOWPAN_ERROR_H */