aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ct6/ct6.api
blob: 67af42fd9fead347ff9a4afb667f48b9605cb3c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Define a simple enable-disable binary API to control the feature */

define ct6_enable_disable {
    /* Client identifier, set from api_main.my_client_index */
    u32 client_index;

    /* Arbitrary context, so client can match reply to request */
    u32 context;

    /* Enable / disable the feature */
    u8 enable_disable;

    /* Inside or outside interface */
    u8 is_inside;

    /* Interface handle */
    u32 sw_if_index;
};

define ct6_enable_disable_reply {
    /* From the request */
    u32 context;

    /* Return value, zero means all OK */
    i32 retval;
};