#include <linux/module.h>
#include <linux/etherdevice.h>
#include <uapi/linux/if_arp.h>
#include <linux/rtnetlink.h>
#include <linux/if_vlan.h>
#include <net/failover.h>
static LIST_HEAD(failover_list);
static DEFINE_SPINLOCK(failover_lock);
static struct net_device *failover_get_bymac(u8 *mac, struct failover_ops **ops)
{ … }
static int failover_slave_register(struct net_device *slave_dev)
{ … }
int failover_slave_unregister(struct net_device *slave_dev)
{ … }
EXPORT_SYMBOL_GPL(…);
static int failover_slave_link_change(struct net_device *slave_dev)
{ … }
static int failover_slave_name_change(struct net_device *slave_dev)
{ … }
static int
failover_event(struct notifier_block *this, unsigned long event, void *ptr)
{ … }
static struct notifier_block failover_notifier = …;
static void
failover_existing_slave_register(struct net_device *failover_dev)
{ … }
struct failover *failover_register(struct net_device *dev,
struct failover_ops *ops)
{ … }
EXPORT_SYMBOL_GPL(…);
void failover_unregister(struct failover *failover)
{ … }
EXPORT_SYMBOL_GPL(…);
static __init int
failover_init(void)
{ … }
module_init(…) …;
static __exit
void failover_exit(void)
{ … }
module_exit(failover_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;