2019-04-06 00:31:34 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-07-05 04:34:38 +07:00
|
|
|
/* Copyright 2011-2014 Autronica Fire and Security AS
|
2013-10-31 03:10:47 +07:00
|
|
|
*
|
|
|
|
* Author(s):
|
2014-07-05 04:34:38 +07:00
|
|
|
* 2011-2014 Arvid Brodin, arvid.brodin@alten.se
|
2020-07-22 21:40:16 +07:00
|
|
|
*
|
|
|
|
* include file for HSR and PRP.
|
2013-10-31 03:10:47 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HSR_NETLINK_H
|
|
|
|
#define __HSR_NETLINK_H
|
|
|
|
|
|
|
|
#include <linux/if_ether.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <uapi/linux/hsr_netlink.h>
|
|
|
|
|
|
|
|
struct hsr_priv;
|
2014-07-05 04:38:05 +07:00
|
|
|
struct hsr_port;
|
2013-10-31 03:10:47 +07:00
|
|
|
|
|
|
|
int __init hsr_netlink_init(void);
|
|
|
|
void __exit hsr_netlink_exit(void);
|
|
|
|
|
2014-07-05 04:34:38 +07:00
|
|
|
void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
|
2014-07-05 04:38:05 +07:00
|
|
|
struct hsr_port *port);
|
2014-07-05 04:34:38 +07:00
|
|
|
void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
|
2013-10-31 03:10:47 +07:00
|
|
|
void hsr_nl_framedrop(int dropcount, int dev_idx);
|
|
|
|
void hsr_nl_linkdown(int dev_idx);
|
|
|
|
|
|
|
|
#endif /* __HSR_NETLINK_H */
|