Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright 2011-2014 Autronica Fire and Security AS
0003  *
0004  * Author(s):
0005  *  2011-2014 Arvid Brodin, arvid.brodin@alten.se
0006  *
0007  * include file for HSR and PRP.
0008  */
0009 
0010 #ifndef __HSR_NETLINK_H
0011 #define __HSR_NETLINK_H
0012 
0013 #include <linux/if_ether.h>
0014 #include <linux/module.h>
0015 #include <uapi/linux/hsr_netlink.h>
0016 
0017 struct hsr_priv;
0018 struct hsr_port;
0019 
0020 int __init hsr_netlink_init(void);
0021 void __exit hsr_netlink_exit(void);
0022 
0023 void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
0024               struct hsr_port *port);
0025 void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
0026 void hsr_nl_framedrop(int dropcount, int dev_idx);
0027 void hsr_nl_linkdown(int dev_idx);
0028 
0029 #endif /* __HSR_NETLINK_H */