Contiki 2.5
|
Files | |
file | statusreport_basic.c |
Functions | |
int | statusreport_encode (status_report_t *report, uint8_t *buffer, uint8_t length) |
Encode a bundle status report from the struct to a flat buffer. More... | |
uint8_t | statusreport_basic_send (struct mmem *bundlemem, uint8_t status, uint8_t reason) |
sends a status report for a bundle to the "report-to"-node More... | |
uint8_t statusreport_basic_send | ( | struct mmem * | bundlemem, |
uint8_t | status, | ||
uint8_t | reason | ||
) |
sends a status report for a bundle to the "report-to"-node
bundle | pointer to bundle |
status | status code for the bundle |
reason | reason code for the status |
Definition at line 178 of file statusreport_basic.c.
References bundle_add_block(), bundle_create_bundle(), bundle_decrement(), bundle_get_attr(), bundle_set_attr(), BUNDLE_STORAGE, dtn_send_bundle_event, flags, MMEM_PTR, NULL, process_post(), and statusreport_encode().
int statusreport_encode | ( | status_report_t * | report, |
uint8_t * | buffer, | ||
uint8_t | length | ||
) |
Encode a bundle status report from the struct to a flat buffer.
TODO: We assume here, that all status reports have a timestamp. This is true in the latest version of RFC5050 but is not necessarily true in the future
Definition at line 37 of file statusreport_basic.c.
References ADMIN_FLAGS_IS_FOR_FRAGMENT, eid_create_full_length(), sdnv_encode(), and TYPE_CODE_BUNDLE_STATUS_REPORT.
Referenced by statusreport_basic_send().