X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip6_neighbor.h;h=753de56072e9dde63986cbdee602b1a3ab13e8ff;hb=7f358b3;hp=ed80381b35cbdcaefb0f1076427258a3e6b0cd1f;hpb=c125eccc10db9c0b9c5d161d3ad20b4fc8c69b26;p=vpp.git diff --git a/src/vnet/ip/ip6_neighbor.h b/src/vnet/ip/ip6_neighbor.h index ed80381b35c..753de56072e 100644 --- a/src/vnet/ip/ip6_neighbor.h +++ b/src/vnet/ip/ip6_neighbor.h @@ -40,10 +40,12 @@ typedef struct ip6_neighbor_key_t key; u8 link_layer_address[8]; ip6_neighbor_flags_t flags; - u64 cpu_time_last_updated; + f64 time_last_updated; fib_node_index_t fib_entry_index; } ip6_neighbor_t; +extern ip6_neighbor_t *ip6_neighbors_pool (void); + extern ip6_neighbor_t *ip6_neighbors_entries (u32 sw_if_index); extern int ip6_neighbor_ra_config (vlib_main_t * vm, u32 sw_if_index, @@ -98,6 +100,44 @@ typedef struct void wc_nd_set_publisher_node (uword node_index, uword event_type); +typedef struct +{ + u32 irt; + u32 mrt; + u32 mrc; + u32 mrd; +} icmp6_send_router_solicitation_params_t; + +void icmp6_send_router_solicitation (vlib_main_t * vm, u32 sw_if_index, + u8 stop, + icmp6_send_router_solicitation_params_t * + params); + +typedef struct +{ + ip6_address_t dst_address; + u8 dst_address_length; + u8 flags; + u32 valid_time; + u32 preferred_time; +} ra_report_prefix_info_t; + +typedef struct +{ + u32 sw_if_index; + u8 router_address[16]; + u8 current_hop_limit; + u8 flags; + u16 router_lifetime_in_sec; + u32 neighbor_reachable_time_in_msec; + u32 time_in_msec_between_retransmitted_neighbor_solicitations; + u8 slla[6]; + u32 mtu; + ra_report_prefix_info_t *prefixes; +} ra_report_t; + +void ra_set_publisher_node (uword node_index, uword event_type); + #endif /* included_ip6_neighbor_h */ /*