aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/bnep/bnep.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/bnep/bnep.h')
-rw-r--r--net/bluetooth/bnep/bnep.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/bluetooth/bnep/bnep.h b/net/bluetooth/bnep/bnep.h
index 0b6cd0e2528d..a2992280c3d1 100644
--- a/net/bluetooth/bnep/bnep.h
+++ b/net/bluetooth/bnep/bnep.h
@@ -1,7 +1,7 @@
1/* 1/*
2 BNEP protocol definition for Linux Bluetooth stack (BlueZ). 2 BNEP protocol definition for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> 3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License, version 2, as 6 it under the terms of the GNU General Public License, version 2, as
7 published by the Free Software Foundation. 7 published by the Free Software Foundation.
@@ -60,7 +60,7 @@
60// Extension types 60// Extension types
61#define BNEP_EXT_CONTROL 0x00 61#define BNEP_EXT_CONTROL 0x00
62 62
63// Response messages 63// Response messages
64#define BNEP_SUCCESS 0x00 64#define BNEP_SUCCESS 0x00
65 65
66#define BNEP_CONN_INVALID_DST 0x01 66#define BNEP_CONN_INVALID_DST 0x01
@@ -81,7 +81,7 @@
81#define BNEP_CONNECT_TO 15 81#define BNEP_CONNECT_TO 15
82#define BNEP_FILTER_TO 15 82#define BNEP_FILTER_TO 15
83 83
84// Headers 84// Headers
85#define BNEP_TYPE_MASK 0x7f 85#define BNEP_TYPE_MASK 0x7f
86#define BNEP_EXT_HEADER 0x80 86#define BNEP_EXT_HEADER 0x80
87 87
@@ -132,7 +132,7 @@ struct bnep_conndel_req {
132struct bnep_conninfo { 132struct bnep_conninfo {
133 __u32 flags; 133 __u32 flags;
134 __u16 role; 134 __u16 role;
135 __u16 state; 135 __u16 state;
136 __u8 dst[ETH_ALEN]; 136 __u8 dst[ETH_ALEN];
137 char device[16]; 137 char device[16];
138}; 138};
@@ -155,10 +155,10 @@ int bnep_get_conninfo(struct bnep_conninfo *ci);
155// BNEP sessions 155// BNEP sessions
156struct bnep_session { 156struct bnep_session {
157 struct list_head list; 157 struct list_head list;
158 158
159 unsigned int role; 159 unsigned int role;
160 unsigned long state; 160 unsigned long state;
161 unsigned long flags; 161 unsigned long flags;
162 atomic_t killed; 162 atomic_t killed;
163 163
164 struct ethhdr eh; 164 struct ethhdr eh;
@@ -166,7 +166,7 @@ struct bnep_session {
166 166
167 struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS]; 167 struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS];
168 u64 mc_filter; 168 u64 mc_filter;
169 169
170 struct socket *sock; 170 struct socket *sock;
171 struct net_device *dev; 171 struct net_device *dev;
172 struct net_device_stats stats; 172 struct net_device_stats stats;
@@ -178,7 +178,7 @@ int bnep_sock_cleanup(void);
178 178
179static inline int bnep_mc_hash(__u8 *addr) 179static inline int bnep_mc_hash(__u8 *addr)
180{ 180{
181 return (crc32_be(~0, addr, ETH_ALEN) >> 26); 181 return (crc32_be(~0, addr, ETH_ALEN) >> 26);
182} 182}
183 183
184#endif 184#endif