Allows for asynchronous error reporting in the network stack.
More...
Allows for asynchronous error reporting in the network stack.
|
file | neterr.h |
| Error reporting definitions.
|
|
◆ GNRC_NETERR_MSG_TYPE
#define GNRC_NETERR_MSG_TYPE (0x0206) |
◆ gnrc_neterr_reg
#define gnrc_neterr_reg |
( |
|
pkt | ) |
(0) |
Registers the current thread for errors on a gnrc_pktsnip_t.
- Parameters
-
[in] | pkt | Packet 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 |
|
) |
| (void)pkt; (void)err |
Reports an error to all subscribers of errors to pkt
.
- Parameters
-
[in] | pkt | Packet snip to report on. |
[in] | err | The 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.