mirror of
https://github.com/szehl/ath9k-hmac.git
synced 2025-03-16 17:15:57 +00:00
16 lines
494 B
C
Executable File
16 lines
494 B
C
Executable File
#ifndef __BACKPORT_LINUX_NETLINK_H
|
|
#define __BACKPORT_LINUX_NETLINK_H
|
|
#include_next <linux/netlink.h>
|
|
#include <linux/version.h>
|
|
|
|
/* this is for patches we apply */
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
|
|
#define netlink_notify_portid(__notify) (__notify->pid)
|
|
#define NETLINK_CB_PORTID(__skb) NETLINK_CB(__skb).pid
|
|
#else
|
|
#define netlink_notify_portid(__notify) (__notify->portid)
|
|
#define NETLINK_CB_PORTID(__skb) NETLINK_CB(__skb).portid
|
|
#endif
|
|
|
|
#endif /* __BACKPORT_LINUX_NETLINK_H */
|