Lines Matching defs:protocol
53 protocol_family_t protocol;
85 proto_hash_value(protocol_family_t protocol)
87 switch (protocol) {
109 lck_group = lck_grp_alloc_init("protocol kpi", grp_attrib);
120 proto_register_input(protocol_family_t protocol, proto_input_handler input,
134 entry->protocol = protocol;
137 entry->hash = proto_hash_value(protocol);
141 while (dp && (protocol_family_t)dp->dom_family != protocol)
159 proto_unregister_input(protocol_family_t protocol)
163 for (entry = proto_hash[proto_hash_value(protocol)]; entry != NULL;
165 if (entry->protocol == protocol)
182 hash_slot = proto_hash_value(entry->protocol);
187 if (exist->protocol == entry->protocol)
194 entry->detached(entry->protocol);
248 entry->input(entry->protocol,
259 entry->input(entry->protocol,
273 proto_input(protocol_family_t protocol, mbuf_t packet_list)
278 for (entry = proto_hash[proto_hash_value(protocol)]; entry != NULL;
280 if (entry->protocol == protocol)
290 entry->input(entry->protocol, packet_list);
298 entry->input(entry->protocol, packet);
309 proto_inject(protocol_family_t protocol, mbuf_t packet_list)
313 int hash_slot = proto_hash_value(protocol);
322 if (entry->protocol == protocol)