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_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 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] | pkt | Packet snip to report on. |
| [in] | err | The error code for the packet. |
Definition at line 64 of file neterr.h.