Blame view

net/hsr/hsr_netlink.h 923 Bytes
70ebe4a47   Arvid Brodin   net/hsr: Better v...
1
  /* Copyright 2011-2014 Autronica Fire and Security AS
f421436a5   Arvid Brodin   net/hsr: Add supp...
2
3
4
5
6
7
8
   *
   * This program is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License as published by the Free
   * Software Foundation; either version 2 of the License, or (at your option)
   * any later version.
   *
   * Author(s):
70ebe4a47   Arvid Brodin   net/hsr: Better v...
9
   *	2011-2014 Arvid Brodin, arvid.brodin@alten.se
f421436a5   Arvid Brodin   net/hsr: Add supp...
10
11
12
13
14
15
16
17
18
19
   */
  
  #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;
c5a759117   Arvid Brodin   net/hsr: Use list...
20
  struct hsr_port;
f421436a5   Arvid Brodin   net/hsr: Add supp...
21
22
23
  
  int __init hsr_netlink_init(void);
  void __exit hsr_netlink_exit(void);
70ebe4a47   Arvid Brodin   net/hsr: Better v...
24
  void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
c5a759117   Arvid Brodin   net/hsr: Use list...
25
  		      struct hsr_port *port);
70ebe4a47   Arvid Brodin   net/hsr: Better v...
26
  void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
f421436a5   Arvid Brodin   net/hsr: Add supp...
27
28
29
30
  void hsr_nl_framedrop(int dropcount, int dev_idx);
  void hsr_nl_linkdown(int dev_idx);
  
  #endif /* __HSR_NETLINK_H */