// SPDX-License-Identifier: GPL-2.0-or-later /* * IPVS: Weighted Fail Over module * * Authors: Kenny Mathis <[email protected]> * * Changes: * Kenny Mathis : added initial functionality based on weight */ #define KMSG_COMPONENT … #define pr_fmt(fmt) … #include <linux/module.h> #include <linux/kernel.h> #include <net/ip_vs.h> /* Weighted Fail Over Module */ static struct ip_vs_dest * ip_vs_fo_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, struct ip_vs_iphdr *iph) { … } static struct ip_vs_scheduler ip_vs_fo_scheduler = …; static int __init ip_vs_fo_init(void) { … } static void __exit ip_vs_fo_cleanup(void) { … } module_init(…) …; module_exit(ip_vs_fo_cleanup); MODULE_LICENSE(…) …; MODULE_DESCRIPTION(…) …;