mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-23 09:10:04 +00:00
ebpf: experiments.
This commit is contained in:
28
ebpf/include/linux/cifs/cifs_mount.h
Normal file
28
ebpf/include/linux/cifs/cifs_mount.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
|
||||
/*
|
||||
* include/uapi/linux/cifs/cifs_mount.h
|
||||
*
|
||||
* Author(s): Scott Lovenberg (scott.lovenberg@gmail.com)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published
|
||||
* by the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
|
||||
* the GNU Lesser General Public License for more details.
|
||||
*/
|
||||
#ifndef _CIFS_MOUNT_H
|
||||
#define _CIFS_MOUNT_H
|
||||
|
||||
/* Max string lengths for cifs mounting options. */
|
||||
#define CIFS_MAX_DOMAINNAME_LEN 256 /* max fully qualified domain name */
|
||||
#define CIFS_MAX_USERNAME_LEN 256 /* reasonable max for current servers */
|
||||
#define CIFS_MAX_PASSWORD_LEN 512 /* Windows max seems to be 256 wide chars */
|
||||
#define CIFS_MAX_SHARE_LEN 256 /* reasonable max share name length */
|
||||
#define CIFS_NI_MAXHOST 1024 /* max host name length (256 * 4 bytes) */
|
||||
|
||||
|
||||
#endif /* _CIFS_MOUNT_H */
|
63
ebpf/include/linux/cifs/cifs_netlink.h
Normal file
63
ebpf/include/linux/cifs/cifs_netlink.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
|
||||
/*
|
||||
* Netlink routines for CIFS
|
||||
*
|
||||
* Copyright (c) 2020 Samuel Cabrero <scabrero@suse.de>
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LINUX_CIFS_NETLINK_H
|
||||
#define LINUX_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 /* LINUX_CIFS_NETLINK_H */
|
Reference in New Issue
Block a user