-#define PROTO_HASH_SLOTS 5
-
-static struct proto_input_entry *proto_hash[PROTO_HASH_SLOTS];
-static int proto_total_waiting = 0;
-static struct proto_input_entry *proto_input_add_list = NULL;
-static lck_mtx_t *proto_family_mutex = 0;
-static TAILQ_HEAD(, proto_family_str) proto_family_head =
- TAILQ_HEAD_INITIALIZER(proto_family_head);
-
-extern lck_mtx_t *domain_proto_mtx;
-extern struct dlil_threading_info *dlil_lo_thread_ptr;
-
-static int
-proto_hash_value(
- protocol_family_t protocol)
-{
- switch(protocol) {
- case PF_INET:
- return 0;
- case PF_INET6:
- return 1;
- case PF_APPLETALK:
- return 2;
- case PF_VLAN:
- return 3;
- }
- return 4;
-}
+static struct proto_input_entry *proto_hash[PROTO_HASH_SLOTS];
+static int proto_total_waiting = 0;
+static struct proto_input_entry *proto_input_add_list = NULL;
+decl_lck_mtx_data(static, proto_family_mutex_data);
+static lck_mtx_t *proto_family_mutex = &proto_family_mutex_data;
+static TAILQ_HEAD(, proto_family_str) proto_family_head =
+ TAILQ_HEAD_INITIALIZER(proto_family_head);