aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-13 12:55:28 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-13 23:10:33 +0300
commitd97636980f6ba7344c8aa6fa349b9059c60ee478 (patch)
tree98b7196d4aad90206104796f16d42d6fd1d36056 /include/net/bluetooth
parentBluetooth: Use l2cap_pi(sk) directly where possible (diff)
downloadlinux-dev-d97636980f6ba7344c8aa6fa349b9059c60ee478.tar.xz
linux-dev-d97636980f6ba7344c8aa6fa349b9059c60ee478.zip
Bluetooth: Add support for per socket msg_name callback
This allows to add a per socket msg_name callback that can be used for updating the msg_name information for recvmsg() system calls. This feature is used by another patch to support address information on L2CAP connectionless channels. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/bluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 1d6e484e08ef..896aad80bc4d 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -221,6 +221,7 @@ struct bt_sock {
struct list_head accept_q;
struct sock *parent;
unsigned long flags;
+ void (*skb_msg_name)(struct sk_buff *, void *, int *);
};
enum {