summaryrefslogtreecommitdiff
path: root/drivers/staging/batman-adv/types.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-06-21 23:25:42 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-22 21:05:03 (GMT)
commitc41214328a7635dc35aa81d89ea579c8a2eb2769 (patch)
treef93b668db3fd0270e06eff9a84a136fa34736f3f /drivers/staging/batman-adv/types.h
parent1bd2c2159a32313ae1f872b6225601aed397524c (diff)
downloadlinux-fsl-qoriq-c41214328a7635dc35aa81d89ea579c8a2eb2769.tar.xz
Staging: batman-adv: Move device for icmp injection to debugfs
batctl uses /dev/batman-adv to send special batman-adv icmp packets to other nodes in the mesh. To get it working with multiple batX devices we must ensure that every mesh device can have their own socket which is used to inject those packets in exactly one mesh. The current implementation still doesn't allow to use complete separated meshes as we rely on structures which are not part of the private data of a batman device. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/types.h')
-rw-r--r--drivers/staging/batman-adv/types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/batman-adv/types.h b/drivers/staging/batman-adv/types.h
index 86007c7..751cd63 100644
--- a/drivers/staging/batman-adv/types.h
+++ b/drivers/staging/batman-adv/types.h
@@ -106,9 +106,10 @@ struct bat_priv {
char num_ifaces;
struct batman_if *primary_if;
struct kobject *mesh_obj;
+ struct dentry *debug_dir;
};
-struct device_client {
+struct socket_client {
struct list_head queue_list;
unsigned int queue_len;
unsigned char index;
@@ -116,7 +117,7 @@ struct device_client {
wait_queue_head_t queue_wait;
};
-struct device_packet {
+struct socket_packet {
struct list_head list;
struct icmp_packet icmp_packet;
};