blob: b2c9f48ae8ac0799ae5aefdeaf680239bedc0262 [file] [log] [blame]
Pavel Kotucek3e046ea2016-12-05 08:27:37 +01001/*
2 *
3 * ip6_neighboor.h: ip6 neighbor structures
4 *
5 * Copyright (c) 2016 Cisco and/or its affiliates.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef included_ip6_neighbor_h
20#define included_ip6_neighbor_h
21
22#include <vnet/fib/fib_types.h>
23
Dave Barachd7cb1b52016-12-09 09:52:16 -050024typedef struct
25{
Pavel Kotucek3e046ea2016-12-05 08:27:37 +010026 ip6_address_t ip6_address;
27 u32 sw_if_index;
28 u32 pad;
29} ip6_neighbor_key_t;
30
Dave Barachd7cb1b52016-12-09 09:52:16 -050031typedef struct
32{
Pavel Kotucek3e046ea2016-12-05 08:27:37 +010033 ip6_neighbor_key_t key;
34 u8 link_layer_address[8];
35 u16 flags;
36#define IP6_NEIGHBOR_FLAG_STATIC (1 << 0)
37#define IP6_NEIGHBOR_FLAG_DYNAMIC (2 << 0)
38 u64 cpu_time_last_updated;
39 fib_node_index_t fib_entry_index;
40} ip6_neighbor_t;
41
Dave Barachd7cb1b52016-12-09 09:52:16 -050042ip6_neighbor_t *ip6_neighbors_entries (u32 sw_if_index);
Pavel Kotucek3e046ea2016-12-05 08:27:37 +010043
Dave Barachd7cb1b52016-12-09 09:52:16 -050044#endif /* included_ip6_neighbor_h */
45
46/*
47 * fd.io coding-style-patch-verification: ON
48 *
49 * Local Variables:
50 * eval: (c-set-style "gnu")
51 * End:
52 */