+ Define the generic netlink family commands and message attributes to communicate with the userspace daemon + The register and unregister commands are sent when connecting or disconnecting a tree. The witness registration keeps a pointer to the tcon and has the same lifetime. + Each registration has an id allocated by an IDR. This id is sent to the userspace daemon in the register command, and will be included in the notification messages from the userspace daemon to retrieve from the IDR the matching registration. + The authentication information is bundled in the register message. If kerberos is used the message just carries a flag.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -19,11 +19,26 @@ enum cifs_genl_multicast_groups { · 18 unmodified lines | ||
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | enum cifs_genl_attributes { |
| 22 | + CIFS_GENL_ATTR_UNSPEC, | |
| 23 | + CIFS_GENL_ATTR_SWN_REGISTRATION_ID, | |
| 24 | + CIFS_GENL_ATTR_SWN_NET_NAME, | |
| 25 | + CIFS_GENL_ATTR_SWN_SHARE_NAME, | |
| 26 | + CIFS_GENL_ATTR_SWN_IP, | |
| 27 | + CIFS_GENL_ATTR_SWN_NET_NAME_NOTIFY, | |
| 28 | + CIFS_GENL_ATTR_SWN_SHARE_NAME_NOTIFY, | |
| 29 | + CIFS_GENL_ATTR_SWN_IP_NOTIFY, | |
| 30 | + CIFS_GENL_ATTR_SWN_KRB_AUTH, | |
| 31 | + CIFS_GENL_ATTR_SWN_USER_NAME, | |
| 32 | + CIFS_GENL_ATTR_SWN_PASSWORD, | |
| 33 | + CIFS_GENL_ATTR_SWN_DOMAIN_NAME, | |
| 22 | 34 | __CIFS_GENL_ATTR_MAX, |
| 23 | 35 | }; |
| 24 | 36 | #define CIFS_GENL_ATTR_MAX (__CIFS_GENL_ATTR_MAX - 1) |
| 25 | 37 | |
| 26 | 38 | enum cifs_genl_commands { |
| 39 | + CIFS_GENL_CMD_UNSPEC, | |
| 40 | + CIFS_GENL_CMD_SWN_REGISTER, | |
| 41 | + CIFS_GENL_CMD_SWN_UNREGISTER, | |
| 27 | 42 | __CIFS_GENL_CMD_MAX |
| 28 | 43 | }; |
| 29 | 44 | #define CIFS_GENL_CMD_MAX (__CIFS_GENL_CMD_MAX - 1) |