|
| 1 | +/* |
| 2 | + * Copyright (c) 2018, Arm Limited and affiliates. |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + * you may not use this file except in compliance with the License. |
| 7 | + * You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + */ |
| 17 | + |
| 18 | +#include "nsconfig.h" |
| 19 | +#include "string.h" |
| 20 | +#include "ns_types.h" |
| 21 | +#include "ns_trace.h" |
| 22 | +#include "common_functions.h" |
| 23 | +#include "nsdynmemLIB.h" |
| 24 | +#include "Service_Libs/mac_neighbor_table/mac_neighbor_table.h" |
| 25 | + |
| 26 | +#include "mac_neighbor_table_stub.h" |
| 27 | + |
| 28 | +mac_neighbor_table_stub_def mac_neighbor_table_stub; |
| 29 | + |
| 30 | +mac_neighbor_table__t *mac_neighbor_table_create(uint8_t table_size, neighbor_entry_remove_notify *remove_cb, neighbor_entry_nud_notify *nud_cb, void *user_indentifier, uint32_t nud_threshold) |
| 31 | +{ |
| 32 | + return mac_neighbor_table_stub.test_class; |
| 33 | +} |
| 34 | + |
| 35 | +void neighbor_table_neighbor_table_class_delete(mac_neighbor_table_t *table_class) |
| 36 | +{ |
| 37 | + |
| 38 | +} |
| 39 | + |
| 40 | + |
| 41 | +void neighbor_table_class_neighbor_list_clean(mac_neighbor_table_t *table_class) |
| 42 | +{ |
| 43 | + |
| 44 | +} |
| 45 | + |
| 46 | + |
| 47 | +void neighbor_table_class_neighbor_timeout_update(mac_neighbor_table_t *table_class, uint32_t time_update) |
| 48 | +{ |
| 49 | + |
| 50 | +} |
| 51 | + |
| 52 | + |
| 53 | +mac_neighbor_table_entry_t *neighbor_table_class_entry_allocate(mac_neighbor_table_t *table_class, const uint8_t *mac64) |
| 54 | +{ |
| 55 | + return mac_neighbor_table_stub.test_neigh; |
| 56 | +} |
| 57 | + |
| 58 | +void neighbor_table_class_neighbor_remove(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry) |
| 59 | +{ |
| 60 | + |
| 61 | +} |
| 62 | + |
| 63 | + |
| 64 | +void neighbor_table_class_neighbor_refresh(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry, uint32_t life_time) |
| 65 | +{ |
| 66 | + |
| 67 | +} |
| 68 | + |
| 69 | +void neighbor_table_class_neighbor_connected(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry) |
| 70 | +{ |
| 71 | + |
| 72 | +} |
| 73 | + |
| 74 | +void mac_neighbor_table_trusted_neighbor(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry, bool trusted_device) |
| 75 | +{ |
| 76 | + |
| 77 | +} |
| 78 | + |
| 79 | + |
| 80 | +mac_neighbor_table_entry_t *neighbor_table_class_address_discover(mac_neighbor_table_t *table_class, const uint8_t *address, uint8_t address_type) |
| 81 | +{ |
| 82 | + return mac_neighbor_table_stub.test_neigh; |
| 83 | +} |
| 84 | + |
| 85 | +mac_neighbor_table_entry_t *neighbor_table_class_attribute_discover(mac_neighbor_table_t *table_class, uint8_t index) |
| 86 | +{ |
| 87 | + return mac_neighbor_table_stub.test_neigh; |
| 88 | +} |
0 commit comments