Authoritative border router list component of neighbor information base.
More...
Authoritative border router list component of neighbor information base.
|
file | abr.h |
| Authoritative border router list definitions.
|
|
◆ gnrc_ipv6_nib_abr_add()
Adds the address of an authoritative border router to the NIB.
- Parameters
-
[in] | addr | The address of an authoritative border router. |
- Returns
- 0 on success.
-
-ENOMEM, if no space is left in the neighbor cache.
-
-ENOTSUP, if CONFIG_GNRC_IPV6_NIB_6LBR or CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C is not defined
◆ gnrc_ipv6_nib_abr_del()
Removes an authoritative border router from the NIB.
- Parameters
-
[in] | addr | The address of an authoritative border router. |
◆ gnrc_ipv6_nib_abr_iter()
Iterates over all authoritative border router in the NIB.
- Precondition
(state != NULL) && (abr != NULL)
- Parameters
-
[in,out] | state | Iteration state of the authoritative border router list. Must point to NULL pointer to start iteration |
[out] | abr | The next authoritative border router list entry. |
Usage example:
int main(void) {
void *state = NULL;
puts("My border routers:");
}
return 0;
}
- Note
- The list may change during iteration.
- Returns
- true, if iteration can be continued.
-
false, if
abr
is the last authoritative border router entry in the NIB.
◆ gnrc_ipv6_nib_abr_print()
Prints an authoritative border router list entry.
- Precondition
abr != NULL
- Parameters
-
[in] | abr | An authoritative border router list entry |