2012-05-14 22:20:36 -06:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2014-06-30 23:13:17 -06:00
|
|
|
#ifndef __GDM72XX_NETLINK_K_H__
|
|
|
|
#define __GDM72XX_NETLINK_K_H__
|
|
|
|
|
2012-05-14 22:20:36 -06:00
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include <net/sock.h>
|
|
|
|
|
2014-05-09 04:08:27 -06:00
|
|
|
struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type,
|
|
|
|
void *msg, int len));
|
2012-05-14 22:20:36 -06:00
|
|
|
void netlink_exit(struct sock *sock);
|
|
|
|
int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len);
|
|
|
|
|
2014-06-30 23:13:17 -06:00
|
|
|
#endif /* __GDM72XX_NETLINK_K_H__ */
|