Error reporting

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 occured) to an gnrc_neterr subscriber.
 
#define gnrc_neterr_report(pkt, err)   (void)pkt; (void)err
 Reports an error to all subscribers of errors to pkt. More...
 
#define gnrc_neterr_reg(pkt)   (0)
 Registers the current thread for errors on a gnrc_pktsnip_t. More...
 

Macro Definition Documentation

◆ gnrc_neterr_reg

#define gnrc_neterr_reg (   pkt)    (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 85 of file neterr.h.

◆ gnrc_neterr_report

#define gnrc_neterr_report (   pkt,
  err 
)    (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 64 of file neterr.h.