12#ifndef ZEPHYR_INCLUDE_NET_VIRTUAL_MGMT_H_
13#define ZEPHYR_INCLUDE_NET_VIRTUAL_MGMT_H_
31#define _NET_VIRTUAL_INTERFACE_LAYER NET_MGMT_LAYER_L2
32#define _NET_VIRTUAL_INTERFACE_CODE 0x209
33#define _NET_VIRTUAL_INTERFACE_BASE \
34 (NET_MGMT_IFACE_BIT | \
35 NET_MGMT_LAYER(_NET_VIRTUAL_INTERFACE_LAYER) | \
36 NET_MGMT_LAYER_CODE(_NET_VIRTUAL_INTERFACE_CODE))
37#define _NET_VIRTUAL_INTERFACE_EVENT \
38 (_NET_VIRTUAL_INTERFACE_BASE | NET_MGMT_EVENT_BIT)
40struct virtual_interface_req_params {
49enum net_request_virtual_interface_cmd {
50 NET_REQUEST_VIRTUAL_INTERFACE_CMD_SET_PEER_ADDR = 1,
51 NET_REQUEST_VIRTUAL_INTERFACE_CMD_GET_PEER_ADDR,
52 NET_REQUEST_VIRTUAL_INTERFACE_CMD_SET_MTU,
53 NET_REQUEST_VIRTUAL_INTERFACE_CMD_GET_MTU,
56#define NET_REQUEST_VIRTUAL_INTERFACE_SET_PEER_ADDRESS \
57 (_NET_VIRTUAL_INTERFACE_BASE | \
58 NET_REQUEST_VIRTUAL_INTERFACE_CMD_SET_PEER_ADDR)
62#define NET_REQUEST_VIRTUAL_INTERFACE_SET_MTU \
63 (_NET_VIRTUAL_INTERFACE_BASE | \
64 NET_REQUEST_VIRTUAL_INTERFACE_CMD_SET_MTU)
68#define NET_REQUEST_VIRTUAL_INTERFACE_GET_PEER_ADDRESS \
69 (_NET_VIRTUAL_INTERFACE_BASE | \
70 NET_REQUEST_VIRTUAL_INTERFACE_CMD_GET_PEER_ADDR)
74#define NET_REQUEST_VIRTUAL_INTERFACE_GET_MTU \
75 (_NET_VIRTUAL_INTERFACE_BASE | \
76 NET_REQUEST_VIRTUAL_INTERFACE_CMD_GET_MTU)
unsigned short int sa_family_t
Definition: net_ip.h:158
#define NET_MGMT_DEFINE_REQUEST_HANDLER(_mgmt_request)
Definition: net_mgmt.h:95
Network Management API public header.
Network Interface structure.
Definition: net_if.h:468
Virtual Network Interface.