diff options
Diffstat (limited to 'ot_accesslist.h')
| -rw-r--r-- | ot_accesslist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h index 9dfdd95..0a8bf4c 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h | |||
| @@ -40,7 +40,7 @@ extern const char *g_accesslist_pipe_delete; | |||
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | /* Test if an address is subset of an ot_net, return value is considered a bool */ | 42 | /* Test if an address is subset of an ot_net, return value is considered a bool */ |
| 43 | int address_in_net(const ot_ip6 address, const ot_net *net); | 43 | int accesslist_address_in_net(const ot_ip6 address, const ot_net *net); |
| 44 | 44 | ||
| 45 | /* Store a value into a vector of struct { ot_net net, uint8_t[x] value } member; | 45 | /* Store a value into a vector of struct { ot_net net, uint8_t[x] value } member; |
| 46 | returns NULL | 46 | returns NULL |
| @@ -51,13 +51,13 @@ int address_in_net(const ot_ip6 address, const ot_net *net); | |||
| 51 | returns pointer to new member in vector for success | 51 | returns pointer to new member in vector for success |
| 52 | member_size can be sizeof(ot_net) to reduce the lookup to a boolean mapping | 52 | member_size can be sizeof(ot_net) to reduce the lookup to a boolean mapping |
| 53 | */ | 53 | */ |
| 54 | void *set_value_for_net(const ot_net *net, ot_vector *vector, const void *value, const size_t member_size); | 54 | void *accesslist_set_value_for_net(const ot_net *net, ot_vector *vector, const void *value, const size_t member_size); |
| 55 | 55 | ||
| 56 | /* Takes a vector filled with struct { ot_net net, uint8_t[x] value } member; | 56 | /* Takes a vector filled with struct { ot_net net, uint8_t[x] value } member; |
| 57 | Returns pointer to _member_ associated with the net, or NULL if not found | 57 | Returns pointer to _member_ associated with the net, or NULL if not found |
| 58 | member_size can be sizeof(ot_net) to reduce the lookup to a boolean mapping | 58 | member_size can be sizeof(ot_net) to reduce the lookup to a boolean mapping |
| 59 | */ | 59 | */ |
| 60 | void *get_value_for_net(const ot_ip6 address, const ot_vector *vector, const size_t member_size); | 60 | void *accesslist_get_value_for_net(const ot_ip6 address, const ot_vector *vector, const size_t member_size); |
| 61 | 61 | ||
| 62 | #ifdef WANT_IP_FROM_PROXY | 62 | #ifdef WANT_IP_FROM_PROXY |
| 63 | int proxylist_add_network(const ot_net *proxy, const ot_net *net); | 63 | int proxylist_add_network(const ot_net *proxy, const ot_net *net); |
