Error reporting

Allows for asynchronous error reporting in the network stack.

GNRC_NETERR_MSG_TYPE

Messaging / IPC type for reporting an error.

1
(0x0206)
GNRC_NETERR_SUCCESS

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

1
(0)
gnrc_neterr_report( pkt, err)

Reports an error to all subscribers of errors to pkt.

1
(void)pkt; (void)err

Parameters

pkt:Packet snip to report on.
err:The error code for the packet.

gnrc_neterr_reg( pkt)

Registers the current thread for errors on a include/net/gnrc/pkt.h::gnrc_pktsnip_t.

1
(0)

Parameters

pkt:Packet snip to register for errors.

Return values

  • 0, on success.
  • EALREADY, if there already someone registered to errors on pkt.