All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Allows for asynchronous error reporting in the network stack. More...

Detailed Description

Allows for asynchronous error reporting in the network stack.

Files

file  neterr.h
 Error reporting definitions.
 

Macros

#define GNRC_NETERR_MSG_TYPE   (0x0206)
 Messaging / IPC type for reporting an error.
 
#define GNRC_NETERR_SUCCESS   (0)
 Error code to signalise success (no error occurred) to an gnrc_neterr subscriber.
 
#define gnrc_neterr_report(pkt, err)
 Reports an error to all subscribers of errors to pkt.
 
#define gnrc_neterr_reg(pkt)
 Registers the current thread for errors on a gnrc_pktsnip_t.
 

Macro Definition Documentation

◆ GNRC_NETERR_MSG_TYPE

#define GNRC_NETERR_MSG_TYPE   (0x0206)

Messaging / IPC type for reporting an error.

Definition at line 37 of file neterr.h.

◆ gnrc_neterr_reg

#define gnrc_neterr_reg ( pkt)
Value:
(0)

Registers the current thread for errors on a gnrc_pktsnip_t.

Parameters
[in]pktPacket snip to register for errors.
Returns
0, on success.
EALREADY, if there already someone registered to errors on pkt.

Definition at line 84 of file neterr.h.

◆ gnrc_neterr_report

#define gnrc_neterr_report ( pkt,
err )
Value:
(void)pkt; (void)err

Reports an error to all subscribers of errors to pkt.

Parameters
[in]pktPacket snip to report on.
[in]errThe error code for the packet.

Definition at line 63 of file neterr.h.

◆ GNRC_NETERR_SUCCESS

#define GNRC_NETERR_SUCCESS   (0)

Error code to signalise success (no error occurred) to an gnrc_neterr subscriber.

Definition at line 42 of file neterr.h.