FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
ip6_neighbor.h
Go to the documentation of this file.
1 /*
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 
24 typedef struct
25 {
30 
32 {
36 } __attribute__ ((packed)) ip6_neighbor_flags_t;
37 
38 typedef struct
39 {
41  u8 link_layer_address[8];
46 
47 extern ip6_neighbor_t *ip6_neighbors_entries (u32 sw_if_index);
48 
49 extern int ip6_neighbor_ra_config (vlib_main_t * vm, u32 sw_if_index,
50  u8 suppress, u8 managed, u8 other,
51  u8 ll_option, u8 send_unicast, u8 cease,
52  u8 use_lifetime, u32 lifetime,
53  u32 initial_count, u32 initial_interval,
54  u32 max_interval, u32 min_interval,
55  u8 is_no);
56 
57 extern int ip6_neighbor_ra_prefix (vlib_main_t * vm, u32 sw_if_index,
58  ip6_address_t * prefix_addr, u8 prefix_len,
59  u8 use_default, u32 val_lifetime,
60  u32 pref_lifetime, u8 no_advertise,
61  u8 off_link, u8 no_autoconfig,
62  u8 no_onlink, u8 is_no);
63 
64 extern clib_error_t *ip6_set_neighbor_limit (u32 neighbor_limit);
65 
67  void *address_arg,
68  uword node_index,
69  uword type_opaque,
70  uword data);
71 
73  u32 sw_if_index,
74  ip6_address_t * a,
75  u8 * link_layer_address,
76  uword n_bytes_link_layer_address,
77  int is_static,
78  int is_no_fib_entry);
79 
81  u32 sw_if_index,
82  ip6_address_t * a,
83  u8 * link_layer_address,
84  uword
85  n_bytes_link_layer_address);
86 
87 extern int ip6_neighbor_proxy_add_del (u32 sw_if_index,
88  ip6_address_t * addr, u8 is_add);
89 
91  u32 is_add);
92 typedef struct
93 {
96  u8 mac[6];
98 
99 void wc_nd_set_publisher_node (uword node_index, uword event_type);
100 
101 typedef struct
102 {
108 
109 void icmp6_send_router_solicitation (vlib_main_t * vm, u32 sw_if_index,
110  u8 stop,
112  params);
113 
114 typedef struct
115 {
122 
123 typedef struct
124 {
126  u8 router_address[16];
132  u8 slla[6];
135 } ra_report_t;
136 
137 void ra_set_publisher_node (uword node_index, uword event_type);
138 
139 #endif /* included_ip6_neighbor_h */
140 
141 /*
142  * fd.io coding-style-patch-verification: ON
143  *
144  * Local Variables:
145  * eval: (c-set-style "gnu")
146  * End:
147  */
a
Definition: bitmap.h:516
ip6_neighbor_flags_t flags
Definition: ip6_neighbor.h:42
int ip6_neighbor_ra_prefix(vlib_main_t *vm, u32 sw_if_index, ip6_address_t *prefix_addr, u8 prefix_len, u8 use_default, u32 val_lifetime, u32 pref_lifetime, u8 no_advertise, u8 off_link, u8 no_autoconfig, u8 no_onlink, u8 is_no)
void wc_nd_set_publisher_node(uword node_index, uword event_type)
Definition: ip6_neighbor.c:273
void icmp6_send_router_solicitation(vlib_main_t *vm, u32 sw_if_index, u8 stop, icmp6_send_router_solicitation_params_t *params)
unsigned long u64
Definition: types.h:89
u32 time_in_msec_between_retransmitted_neighbor_solicitations
Definition: ip6_neighbor.h:131
int ip6_neighbor_ra_config(vlib_main_t *vm, u32 sw_if_index, u8 suppress, u8 managed, u8 other, u8 ll_option, u8 send_unicast, u8 cease, u8 use_lifetime, u32 lifetime, u32 initial_count, u32 initial_interval, u32 max_interval, u32 min_interval, u8 is_no)
u32 neighbor_reachable_time_in_msec
Definition: ip6_neighbor.h:130
enum ip6_neighbor_flags_t_ ip6_neighbor_flags_t
u16 router_lifetime_in_sec
Definition: ip6_neighbor.h:129
ra_report_prefix_info_t * prefixes
Definition: ip6_neighbor.h:134
int vnet_set_ip6_ethernet_neighbor(vlib_main_t *vm, u32 sw_if_index, ip6_address_t *a, u8 *link_layer_address, uword n_bytes_link_layer_address, int is_static, int is_no_fib_entry)
Definition: ip6_neighbor.c:726
vlib_main_t * vm
Definition: buffer.c:294
int ip6_neighbor_proxy_add_del(u32 sw_if_index, ip6_address_t *addr, u8 is_add)
u32 ip6_neighbor_sw_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
create and initialize router advertisement parameters with default values for this intfc ...
ip6_address_t ip6
Definition: ip6_neighbor.h:95
u32 fib_node_index_t
A typedef of a node index.
Definition: fib_types.h:30
fib_node_index_t fib_entry_index
Definition: ip6_neighbor.h:44
u8 current_hop_limit
Definition: ip6_neighbor.h:127
u64 cpu_time_last_updated
Definition: ip6_neighbor.h:43
void vnet_register_ip6_neighbor_resolution_event(vnet_main_t *vnm, void *address_arg, uword node_index, uword type_opaque, uword data)
int vnet_unset_ip6_ethernet_neighbor(vlib_main_t *vm, u32 sw_if_index, ip6_address_t *a, u8 *link_layer_address, uword n_bytes_link_layer_address)
Definition: ip6_neighbor.c:862
unsigned int u32
Definition: types.h:88
ip6_address_t ip6_address
Definition: ip6_neighbor.h:26
void ra_set_publisher_node(uword node_index, uword event_type)
Definition: ip6_neighbor.c:304
u64 uword
Definition: types.h:112
clib_error_t * ip6_set_neighbor_limit(u32 neighbor_limit)
unsigned short u16
Definition: types.h:57
ip6_neighbor_key_t key
Definition: ip6_neighbor.h:40
ip6_neighbor_flags_t_
Definition: ip6_neighbor.h:31
unsigned char u8
Definition: types.h:56
vhost_vring_addr_t addr
Definition: vhost-user.h:83
ip6_neighbor_t * ip6_neighbors_entries(u32 sw_if_index)
Definition: ip6_neighbor.c:946
ip6_address_t dst_address
Definition: ip6_neighbor.h:116