hci_sock.c (f77d26a9fc525286bcef3d4f98b52e17482cf49c) | hci_sock.c (32929e1f4ad9adf71f655028e4dd5d87adb97f52) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 38 unchanged lines hidden (view full) --- 47 48/* Socket info */ 49#define hci_pi(sk) ((struct hci_pinfo *) sk) 50 51struct hci_pinfo { 52 struct bt_sock bt; 53 struct hci_dev *hdev; 54 struct hci_filter filter; | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 38 unchanged lines hidden (view full) --- 47 48/* Socket info */ 49#define hci_pi(sk) ((struct hci_pinfo *) sk) 50 51struct hci_pinfo { 52 struct bt_sock bt; 53 struct hci_dev *hdev; 54 struct hci_filter filter; |
55 __u32 cmsg_mask; | 55 __u8 cmsg_mask; |
56 unsigned short channel; 57 unsigned long flags; 58 __u32 cookie; 59 char comm[TASK_COMM_LEN]; 60}; 61 62void hci_sock_set_flag(struct sock *sk, int nr) 63{ --- 1330 unchanged lines hidden (view full) --- 1394done: 1395 release_sock(sk); 1396 return err; 1397} 1398 1399static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, 1400 struct sk_buff *skb) 1401{ | 56 unsigned short channel; 57 unsigned long flags; 58 __u32 cookie; 59 char comm[TASK_COMM_LEN]; 60}; 61 62void hci_sock_set_flag(struct sock *sk, int nr) 63{ --- 1330 unchanged lines hidden (view full) --- 1394done: 1395 release_sock(sk); 1396 return err; 1397} 1398 1399static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, 1400 struct sk_buff *skb) 1401{ |
1402 __u32 mask = hci_pi(sk)->cmsg_mask; | 1402 __u8 mask = hci_pi(sk)->cmsg_mask; |
1403 1404 if (mask & HCI_CMSG_DIR) { 1405 int incoming = bt_cb(skb)->incoming; 1406 put_cmsg(msg, SOL_HCI, HCI_CMSG_DIR, sizeof(incoming), 1407 &incoming); 1408 } 1409 1410 if (mask & HCI_CMSG_TSTAMP) { --- 690 unchanged lines hidden --- | 1403 1404 if (mask & HCI_CMSG_DIR) { 1405 int incoming = bt_cb(skb)->incoming; 1406 put_cmsg(msg, SOL_HCI, HCI_CMSG_DIR, sizeof(incoming), 1407 &incoming); 1408 } 1409 1410 if (mask & HCI_CMSG_TSTAMP) { --- 690 unchanged lines hidden --- |