diff options
author | kp <kp@FreeBSD.org> | 2017-09-21 14:14:01 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-10-27 16:52:43 -0200 |
commit | a399695e904b1c30b181596e850fe9ae9fd7771c (patch) | |
tree | 04a5d739c873851823863c5a6a1f7243b61b0455 | |
parent | 33ed7888002c9958a034a0ad4cfa7a9f33aa7db6 (diff) | |
download | FreeBSD-src-a399695e904b1c30b181596e850fe9ae9fd7771c.zip FreeBSD-src-a399695e904b1c30b181596e850fe9ae9fd7771c.tar.gz |
bridge: Set module version
This ensures that the loader will not load the module if it's also built in to
the kernel.
PR: 220860
Submitted by: Eugene Grosbein <eugen@freebsd.org>
Reported by: Marie Helene Kvello-Aune <marieheleneka@gmail.com>
(cherry picked from commit deed61f436ecad351fabada7d9d0a80d9cd37b25)
-rw-r--r-- | sys/net/if_bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 363b868..5cf809d 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -584,6 +584,7 @@ static moduledata_t bridge_mod = { }; DECLARE_MODULE(if_bridge, bridge_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); +MODULE_VERSION(if_bridge, 1); MODULE_DEPEND(if_bridge, bridgestp, 1, 1, 1); /* |