NFC: Add RAW socket type support for SOCKPROTO_RAW
This allows for a more generic NFC sniffing by using SOCKPROTO_RAW SOCK_RAW to read RAW NFC frames. This is for sniffing anything but LLCP (HCI, NCI, etc...). Signed-off-by: Hiren Tandel <hirent@marvell.com> Signed-off-by: Rahul Tank <rahult@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:

committad av
Samuel Ortiz

förälder
c79d9f9ef8
incheckning
57be1f3f3e
@@ -40,6 +40,12 @@ struct nfc_rawsock {
|
||||
struct work_struct tx_work;
|
||||
bool tx_work_scheduled;
|
||||
};
|
||||
|
||||
struct nfc_sock_list {
|
||||
struct hlist_head head;
|
||||
rwlock_t lock;
|
||||
};
|
||||
|
||||
#define nfc_rawsock(sk) ((struct nfc_rawsock *) sk)
|
||||
#define to_rawsock_sk(_tx_work) \
|
||||
((struct sock *) container_of(_tx_work, struct nfc_rawsock, tx_work))
|
||||
|
Referens i nytt ärende
Block a user