FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
ip6_ra.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 __IP6_RA_H__
20 #define __IP6_RA_H__
21 
22 #include <vnet/fib/fib_types.h>
23 
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);
30 
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);
37 
38 typedef struct
39 {
45 
48  u8 stop,
49  const
51  * params);
52 
53 typedef struct
54 {
60 
61 typedef struct
62 {
70  u8 slla[6];
74 
75 
76 typedef void (*ip6_ra_report_notify_t) (const ip6_ra_report_t * rap);
77 
81  u8 prefix_len,
82  u32 primary_sw_if_index,
85 
86 #endif /* included_ip6_neighbor_h */
87 
88 /*
89  * fd.io coding-style-patch-verification: ON
90  *
91  * Local Variables:
92  * eval: (c-set-style "gnu")
93  * End:
94  */
int ip6_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)
Definition: ip6_ra.c:1765
u8 current_hop_limit
Definition: ip6_ra.h:65
void ip6_ra_report_register(ip6_ra_report_notify_t fn)
Definition: ip6_ra.c:167
u16 router_lifetime_in_sec
Definition: ip6_ra.h:67
void icmp6_send_router_solicitation(vlib_main_t *vm, u32 sw_if_index, u8 stop, const icmp6_send_router_solicitation_params_t *params)
Definition: ip6_ra.c:1303
u32 time_in_msec_between_retransmitted_neighbor_solicitations
Definition: ip6_ra.h:69
unsigned char u8
Definition: types.h:56
vl_api_interface_index_t sw_if_index
Definition: gre.api:59
Aggregate type for a prefix.
Definition: fib_types.h:203
unsigned int u32
Definition: types.h:88
ip6_address_t router_address
Definition: ip6_ra.h:63
fib_prefix_t prefix
Definition: ip6_ra.h:55
unsigned short u16
Definition: types.h:57
vlib_main_t * vm
Definition: in2out_ed.c:1810
void ip6_ra_report_unregister(ip6_ra_report_notify_t fn)
Definition: ip6_ra.c:180
u32 valid_time
Definition: dhcp.api:312
u32 neighbor_reachable_time_in_msec
Definition: ip6_ra.h:68
void ip6_ra_update_secondary_radv_info(ip6_address_t *address, u8 prefix_len, u32 primary_sw_if_index, u32 valid_time, u32 preferred_time)
Definition: ip6_ra.c:1426
ra_report_prefix_info_t * prefixes
Definition: ip6_ra.h:72
manual_print typedef address
Definition: ip_types.api:84
void(* ip6_ra_report_notify_t)(const ip6_ra_report_t *rap)
Definition: ip6_ra.h:76
int ip6_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)
Definition: ip6_ra.c:1671
u32 preferred_time
Definition: dhcp.api:313
u32 sw_if_index
Definition: ip6_ra.h:64