3 * ip6_neighboor.h: ip6 neighbor structures
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:
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <vnet/fib/fib_types.h>
24 extern int ip6_ra_config (vlib_main_t * vm, u32 sw_if_index,
25 u8 suppress, u8 managed, u8 other,
26 u8 ll_option, u8 send_unicast, u8 cease,
27 u8 use_lifetime, u32 lifetime,
28 u32 initial_count, u32 initial_interval,
29 u32 max_interval, u32 min_interval, u8 is_no);
31 extern int ip6_ra_prefix (vlib_main_t * vm, u32 sw_if_index,
32 ip6_address_t * prefix_addr, u8 prefix_len,
33 u8 use_default, u32 val_lifetime,
34 u32 pref_lifetime, u8 no_advertise,
35 u8 off_link, u8 no_autoconfig,
36 u8 no_onlink, u8 is_no);
44 } icmp6_send_router_solicitation_params_t;
46 extern void icmp6_send_router_solicitation (vlib_main_t * vm,
50 icmp6_send_router_solicitation_params_t
59 } ra_report_prefix_info_t;
63 ip6_address_t router_address;
67 u16 router_lifetime_in_sec;
68 u32 neighbor_reachable_time_in_msec;
69 u32 time_in_msec_between_retransmitted_neighbor_solicitations;
72 ra_report_prefix_info_t *prefixes;
76 typedef void (*ip6_ra_report_notify_t) (const ip6_ra_report_t * rap);
78 extern void ip6_ra_report_register (ip6_ra_report_notify_t fn);
79 extern void ip6_ra_report_unregister (ip6_ra_report_notify_t fn);
80 extern void ip6_ra_update_secondary_radv_info (ip6_address_t * address,
82 u32 primary_sw_if_index,
86 #endif /* included_ip6_neighbor_h */
89 * fd.io coding-style-patch-verification: ON
92 * eval: (c-set-style "gnu")