Author: kp
Date: Thu Sep 21 14:14:01 2017
New Revision: 323864
URL: https://svnweb.freebsd.org/changeset/base/323864

Log:
  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 <eu...@freebsd.org>
  Reported by:  Marie Helene Kvello-Aune <mariehelen...@gmail.com>

Modified:
  head/sys/net/if_bridge.c

Modified: head/sys/net/if_bridge.c
==============================================================================
--- head/sys/net/if_bridge.c    Thu Sep 21 12:37:12 2017        (r323863)
+++ head/sys/net/if_bridge.c    Thu Sep 21 14:14:01 2017        (r323864)
@@ -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);
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to