FD.io VPP  v21.06-3-gbb25fbf28
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 {
63  ip6_address_t router_address;
70  u8 slla[6];
74 
75 
76 typedef void (*ip6_ra_report_notify_t) (const ip6_ra_report_t * rap);
77 
80 extern void ip6_ra_update_secondary_radv_info (ip6_address_t * address,
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  */
icmp6_send_router_solicitation_params_t::mrd
u32 mrd
Definition: ip6_ra.h:43
ip6_ra_report_t::time_in_msec_between_retransmitted_neighbor_solicitations
u32 time_in_msec_between_retransmitted_neighbor_solicitations
Definition: ip6_ra.h:69
ip6_ra_report_t::current_hop_limit
u8 current_hop_limit
Definition: ip6_ra.h:65
ra_report_prefix_info_t::flags
u8 flags
Definition: ip6_ra.h:56
preferred_time
u32 preferred_time
Definition: dhcp.api:313
ip6_ra_prefix
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:1781
icmp6_send_router_solicitation
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:1307
u16
unsigned short u16
Definition: types.h:57
valid_time
u32 valid_time
Definition: dhcp.api:312
vm
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition: nat44_ei.c:3047
ip6_ra_report_t::router_lifetime_in_sec
u16 router_lifetime_in_sec
Definition: ip6_ra.h:67
ip6_ra_report_t::flags
u8 flags
Definition: ip6_ra.h:66
ra_report_prefix_info_t::prefix
fib_prefix_t prefix
Definition: ip6_ra.h:55
ip6_ra_report_t::router_address
ip6_address_t router_address
Definition: ip6_ra.h:63
ra_report_prefix_info_t
Definition: ip6_ra.h:53
icmp6_send_router_solicitation_params_t::irt
u32 irt
Definition: ip6_ra.h:40
fib_types.h
icmp6_send_router_solicitation_params_t
Definition: ip6_ra.h:38
lifetime
u64 lifetime
Definition: ikev2_types.api:80
ip6_ra_report_t::prefixes
ra_report_prefix_info_t * prefixes
Definition: ip6_ra.h:72
address
manual_print typedef address
Definition: ip_types.api:96
ip6_ra_report_notify_t
void(* ip6_ra_report_notify_t)(const ip6_ra_report_t *rap)
Definition: ip6_ra.h:76
ip6_ra_update_secondary_radv_info
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:1430
ra_report_prefix_info_t::preferred_time
u32 preferred_time
Definition: ip6_ra.h:58
ip6_ra_report_t
Definition: ip6_ra.h:61
u32
unsigned int u32
Definition: types.h:88
ip6_ra_report_unregister
void ip6_ra_report_unregister(ip6_ra_report_notify_t fn)
Definition: ip6_ra.c:180
ra_report_prefix_info_t::valid_time
u32 valid_time
Definition: ip6_ra.h:57
ip6_ra_config
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:1687
vlib_main_t
Definition: main.h:102
u8
unsigned char u8
Definition: types.h:56
icmp6_send_router_solicitation_params_t::mrt
u32 mrt
Definition: ip6_ra.h:41
icmp6_send_router_solicitation_params_t::mrc
u32 mrc
Definition: ip6_ra.h:42
ip6_ra_report_t::sw_if_index
u32 sw_if_index
Definition: ip6_ra.h:64
ip6_ra_report_t::neighbor_reachable_time_in_msec
u32 neighbor_reachable_time_in_msec
Definition: ip6_ra.h:68
ip6_ra_report_register
void ip6_ra_report_register(ip6_ra_report_notify_t fn)
Definition: ip6_ra.c:167
ip6_ra_report_t::mtu
u32 mtu
Definition: ip6_ra.h:71
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34
fib_prefix_t_
Aggregate type for a prefix.
Definition: fib_types.h:202