blob: 77f5cfe3e2aebe1e32325d791683debcf274e9e3 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/* Hey Emacs use -*- mode: C -*- */
/** \brief Set flags on the interface
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@param sw_if_index - index of the interface to set flags on
@param admin_up_down - set the admin state, 1 = up, 0 = down
@param link_up_down - Oper state sent on change event, not used in config.
@param deleted - interface was deleted
*/
define sw_interface_set_flags
{
u32 client_index;
u32 context;
u32 sw_if_index;
/* 1 = up, 0 = down */
u8 admin_up_down;
u8 link_up_down;
u8 deleted;
};
/** \brief Reply to sw_interface_set_flags
@param context - sender context which was passed in the request
@param retval - return code of the set flags request
*/
define sw_interface_set_flags_reply
{
u32 context;
i32 retval;
};
/** \brief Set interface MTU
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@param sw_if_index - index of the interface to set MTU on
@param mtu - MTU
*/
define sw_interface_set_mtu
{
u32 client_index;
u32 context;
u32 sw_if_index;
u16 mtu;
};
/** \brief Reply to sw_interface_set_mtu
@param context - sender context which was passed in the request
@param retval - return code of the set flags request
*/
define sw_interface_set_mtu_reply
{
u32 context;
i32 retval;
};
|