blob: 7286cfa801c6bd4923b1588f28073ffc03619d1c [file] [log] [blame]
Christopher Ferris05667cd2021-02-16 16:01:34 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPILINUX_CIFS_NETLINK_H
20#define _UAPILINUX_CIFS_NETLINK_H
21#define CIFS_GENL_NAME "cifs"
22#define CIFS_GENL_VERSION 0x1
23#define CIFS_GENL_MCGRP_SWN_NAME "cifs_mcgrp_swn"
24enum cifs_genl_multicast_groups {
25 CIFS_GENL_MCGRP_SWN,
26};
27enum cifs_genl_attributes {
28 CIFS_GENL_ATTR_UNSPEC,
29 CIFS_GENL_ATTR_SWN_REGISTRATION_ID,
30 CIFS_GENL_ATTR_SWN_NET_NAME,
31 CIFS_GENL_ATTR_SWN_SHARE_NAME,
32 CIFS_GENL_ATTR_SWN_IP,
33 CIFS_GENL_ATTR_SWN_NET_NAME_NOTIFY,
34 CIFS_GENL_ATTR_SWN_SHARE_NAME_NOTIFY,
35 CIFS_GENL_ATTR_SWN_IP_NOTIFY,
36 CIFS_GENL_ATTR_SWN_KRB_AUTH,
37 CIFS_GENL_ATTR_SWN_USER_NAME,
38 CIFS_GENL_ATTR_SWN_PASSWORD,
39 CIFS_GENL_ATTR_SWN_DOMAIN_NAME,
40 CIFS_GENL_ATTR_SWN_NOTIFICATION_TYPE,
41 CIFS_GENL_ATTR_SWN_RESOURCE_STATE,
42 CIFS_GENL_ATTR_SWN_RESOURCE_NAME,
43 __CIFS_GENL_ATTR_MAX,
44};
45#define CIFS_GENL_ATTR_MAX (__CIFS_GENL_ATTR_MAX - 1)
46enum cifs_genl_commands {
47 CIFS_GENL_CMD_UNSPEC,
48 CIFS_GENL_CMD_SWN_REGISTER,
49 CIFS_GENL_CMD_SWN_UNREGISTER,
50 CIFS_GENL_CMD_SWN_NOTIFY,
51 __CIFS_GENL_CMD_MAX
52};
53#define CIFS_GENL_CMD_MAX (__CIFS_GENL_CMD_MAX - 1)
54enum cifs_swn_notification_type {
55 CIFS_SWN_NOTIFICATION_RESOURCE_CHANGE = 0x01,
56 CIFS_SWN_NOTIFICATION_CLIENT_MOVE = 0x02,
57 CIFS_SWN_NOTIFICATION_SHARE_MOVE = 0x03,
58 CIFS_SWN_NOTIFICATION_IP_CHANGE = 0x04,
59};
60enum cifs_swn_resource_state {
61 CIFS_SWN_RESOURCE_STATE_UNKNOWN = 0x00,
62 CIFS_SWN_RESOURCE_STATE_AVAILABLE = 0x01,
63 CIFS_SWN_RESOURCE_STATE_UNAVAILABLE = 0xFF
64};
65#endif