Changeset View
Changeset View
Standalone View
Standalone View
net/wireguard-kmod/files/patch-if_wg.c
--- if_wg.c.orig 2021-11-05 14:40:17 UTC | --- if_wg.c.orig 2021-11-05 14:40:17 UTC | ||||
+++ if_wg.c | +++ if_wg.c | ||||
@@ -377,7 +377,11 @@ static struct wg_packet *wg_queue_dequeue_parallel(str | @@ -377,7 +377,11 @@ static void wg_queue_purge(struct wg_queue *); | ||||
static int wg_queue_both(struct wg_queue *, struct wg_queue *, struct wg_packet *); | static int wg_queue_both(struct wg_queue *, struct wg_queue *, struct wg_packet *); | ||||
static struct wg_packet *wg_queue_dequeue_serial(struct wg_queue *); | static struct wg_packet *wg_queue_dequeue_serial(struct wg_queue *); | ||||
static struct wg_packet *wg_queue_dequeue_parallel(struct wg_queue *); | static struct wg_packet *wg_queue_dequeue_parallel(struct wg_queue *); | ||||
Context not available. | |||||
} | } | ||||
static void | static void | ||||
@@ -3077,6 +3107,7 @@ static moduledata_t wg_moduledata = { | |||||
NULL | |||||
}; | |||||
-DECLARE_MODULE(wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY); | |||||
+#define KERNEL_RELBRANCHEND (roundup(__FreeBSD_version, 500) - 1) | |||||
+DECLARE_MODULE_WITH_MAXVER(wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY, KERNEL_RELBRANCHEND); | |||||
MODULE_VERSION(wg, WIREGUARD_VERSION); | |||||
MODULE_DEPEND(wg, crypto, 1, 1, 1); | |||||
Context not available. |