diff options
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index 64265991460..442eacbc9e3 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h | |||
@@ -22,17 +22,21 @@ | |||
22 | #ifndef _NET_BATMAN_ADV_HARD_INTERFACE_H_ | 22 | #ifndef _NET_BATMAN_ADV_HARD_INTERFACE_H_ |
23 | #define _NET_BATMAN_ADV_HARD_INTERFACE_H_ | 23 | #define _NET_BATMAN_ADV_HARD_INTERFACE_H_ |
24 | 24 | ||
25 | #define IF_NOT_IN_USE 0 | 25 | enum hard_if_state { |
26 | #define IF_TO_BE_REMOVED 1 | 26 | IF_NOT_IN_USE, |
27 | #define IF_INACTIVE 2 | 27 | IF_TO_BE_REMOVED, |
28 | #define IF_ACTIVE 3 | 28 | IF_INACTIVE, |
29 | #define IF_TO_BE_ACTIVATED 4 | 29 | IF_ACTIVE, |
30 | #define IF_I_WANT_YOU 5 | 30 | IF_TO_BE_ACTIVATED, |
31 | IF_I_WANT_YOU | ||
32 | }; | ||
31 | 33 | ||
32 | extern struct notifier_block hard_if_notifier; | 34 | extern struct notifier_block hard_if_notifier; |
33 | 35 | ||
34 | struct hard_iface *hardif_get_by_netdev(struct net_device *net_dev); | 36 | struct hard_iface* |
35 | int hardif_enable_interface(struct hard_iface *hard_iface, char *iface_name); | 37 | hardif_get_by_netdev(const struct net_device *net_dev); |
38 | int hardif_enable_interface(struct hard_iface *hard_iface, | ||
39 | const char *iface_name); | ||
36 | void hardif_disable_interface(struct hard_iface *hard_iface); | 40 | void hardif_disable_interface(struct hard_iface *hard_iface); |
37 | void hardif_remove_interfaces(void); | 41 | void hardif_remove_interfaces(void); |
38 | int hardif_min_mtu(struct net_device *soft_iface); | 42 | int hardif_min_mtu(struct net_device *soft_iface); |