You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.4 KiB
66 lines
2.4 KiB
4 months ago
|
/****************************************************************************
|
||
|
****************************************************************************
|
||
|
***
|
||
|
*** This header was automatically generated from a Linux kernel header
|
||
|
*** of the same name, to make information necessary for userspace to
|
||
|
*** call into the kernel available to libc. It contains only constants,
|
||
|
*** structures, and macros generated from the original header, and thus,
|
||
|
*** contains no copyrightable information.
|
||
|
***
|
||
|
*** To edit the content of this header, modify the corresponding
|
||
|
*** source file (e.g. under external/kernel-headers/original/) then
|
||
|
*** run bionic/libc/kernel/tools/update_all.py
|
||
|
***
|
||
|
*** Any manual change here will be lost the next time this script will
|
||
|
*** be run. You've been warned!
|
||
|
***
|
||
|
****************************************************************************
|
||
|
****************************************************************************/
|
||
|
#ifndef _UAPILINUX_CIFS_NETLINK_H
|
||
|
#define _UAPILINUX_CIFS_NETLINK_H
|
||
|
#define CIFS_GENL_NAME "cifs"
|
||
|
#define CIFS_GENL_VERSION 0x1
|
||
|
#define CIFS_GENL_MCGRP_SWN_NAME "cifs_mcgrp_swn"
|
||
|
enum cifs_genl_multicast_groups {
|
||
|
CIFS_GENL_MCGRP_SWN,
|
||
|
};
|
||
|
enum cifs_genl_attributes {
|
||
|
CIFS_GENL_ATTR_UNSPEC,
|
||
|
CIFS_GENL_ATTR_SWN_REGISTRATION_ID,
|
||
|
CIFS_GENL_ATTR_SWN_NET_NAME,
|
||
|
CIFS_GENL_ATTR_SWN_SHARE_NAME,
|
||
|
CIFS_GENL_ATTR_SWN_IP,
|
||
|
CIFS_GENL_ATTR_SWN_NET_NAME_NOTIFY,
|
||
|
CIFS_GENL_ATTR_SWN_SHARE_NAME_NOTIFY,
|
||
|
CIFS_GENL_ATTR_SWN_IP_NOTIFY,
|
||
|
CIFS_GENL_ATTR_SWN_KRB_AUTH,
|
||
|
CIFS_GENL_ATTR_SWN_USER_NAME,
|
||
|
CIFS_GENL_ATTR_SWN_PASSWORD,
|
||
|
CIFS_GENL_ATTR_SWN_DOMAIN_NAME,
|
||
|
CIFS_GENL_ATTR_SWN_NOTIFICATION_TYPE,
|
||
|
CIFS_GENL_ATTR_SWN_RESOURCE_STATE,
|
||
|
CIFS_GENL_ATTR_SWN_RESOURCE_NAME,
|
||
|
__CIFS_GENL_ATTR_MAX,
|
||
|
};
|
||
|
#define CIFS_GENL_ATTR_MAX (__CIFS_GENL_ATTR_MAX - 1)
|
||
|
enum cifs_genl_commands {
|
||
|
CIFS_GENL_CMD_UNSPEC,
|
||
|
CIFS_GENL_CMD_SWN_REGISTER,
|
||
|
CIFS_GENL_CMD_SWN_UNREGISTER,
|
||
|
CIFS_GENL_CMD_SWN_NOTIFY,
|
||
|
__CIFS_GENL_CMD_MAX
|
||
|
};
|
||
|
#define CIFS_GENL_CMD_MAX (__CIFS_GENL_CMD_MAX - 1)
|
||
|
enum cifs_swn_notification_type {
|
||
|
CIFS_SWN_NOTIFICATION_RESOURCE_CHANGE = 0x01,
|
||
|
CIFS_SWN_NOTIFICATION_CLIENT_MOVE = 0x02,
|
||
|
CIFS_SWN_NOTIFICATION_SHARE_MOVE = 0x03,
|
||
|
CIFS_SWN_NOTIFICATION_IP_CHANGE = 0x04,
|
||
|
};
|
||
|
enum cifs_swn_resource_state {
|
||
|
CIFS_SWN_RESOURCE_STATE_UNKNOWN = 0x00,
|
||
|
CIFS_SWN_RESOURCE_STATE_AVAILABLE = 0x01,
|
||
|
CIFS_SWN_RESOURCE_STATE_UNAVAILABLE = 0xFF
|
||
|
};
|
||
|
#endif
|