summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkp <kp@FreeBSD.org>2017-09-30 10:16:15 +0000
committerkp <kp@FreeBSD.org>2017-09-30 10:16:15 +0000
commit5292ebf48bfd2a6560defe7984d8130099ad2c78 (patch)
tree7c001505de0a62aa76a39123c1f9a681a010bfeb
parentcdfc7dbe7c904b06c48d3cd59fb0987cd565ffeb (diff)
downloadFreeBSD-src-5292ebf48bfd2a6560defe7984d8130099ad2c78.zip
FreeBSD-src-5292ebf48bfd2a6560defe7984d8130099ad2c78.tar.gz
MFC r323864
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>
-rw-r--r--sys/net/if_bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 0aebcf3..7a8347b 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -537,6 +537,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);
/*
OpenPOWER on IntegriCloud