Take a look at vpp_api_test, specifically 
.../vat/api_format.c:api_ip_add_del_route()...

Thanks... Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of yug...@telincn.com
Sent: Saturday, December 31, 2016 7:23 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] strange phenomenon of interface

Hi all,
Thanks for your time.
I would like to use func "ip4_add_del_route_t_handler" to add route, how to 
fill next msg struct,  i just want the same effect with the  cmd "vppctl ip 
route add 10.10.10.0/24 via 80.80.80.1".
It's there any substitude func?

typedef VL_API_PACKED(struct _vl_api_ip_add_del_route {
    u16 _vl_msg_id;
    u32 client_index;
    u32 context;
    u32 next_hop_sw_if_index;
    u32 table_id;
    u32 resolve_attempts;
    u32 classify_table_index;
    u32 next_hop_out_label;
    u32 next_hop_table_id;
    u8 create_vrf_if_needed;
    u8 resolve_if_needed;
    u8 is_add;
    u8 is_drop;
    u8 is_unreach;
    u8 is_prohibit;
    u8 is_ipv6;
    u8 is_local;
    u8 is_classify;
    u8 is_multipath;
    u8 is_resolve_host;
    u8 is_resolve_attached;
    u8 not_last;
    u8 next_hop_weight;
    u8 dst_address_length;
    u8 dst_address[16];
    u8 next_hop_address[16];
}) vl_api_ip_add_del_route_t;



Regards,
By Ewan.

________________________________
yug...@telincn.com<mailto:yug...@telincn.com>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to