• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/net/

Lines Matching defs:entry

130 	struct proto_input_entry *entry;
133 entry = _MALLOC(sizeof(*entry), M_IFADDR, M_WAITOK);
135 if (entry == NULL)
138 bzero(entry, sizeof(*entry));
139 entry->protocol = protocol;
140 entry->input = input;
141 entry->detached = detached;
142 entry->hash = proto_hash_value(protocol);
143 entry->chain = chains;
152 entry->domain = dp;
158 entry->next = proto_input_add_list;
159 proto_input_add_list = entry;
174 struct proto_input_entry *entry = NULL;
176 for (entry = proto_hash[proto_hash_value(protocol)]; entry; entry = entry->next)
177 if (entry->protocol == protocol)
180 if (entry)
181 entry->detach = 1;
187 struct proto_input_entry *entry)
190 for (next_entry = entry->next; entry; entry = next_entry) {
194 hash_slot = proto_hash_value(entry->protocol);
195 next_entry = entry->next;
198 if (exist->protocol == entry->protocol)
201 /* If the entry already exists, call detached and dispose */
203 if (entry->detached)
204 entry->detached(entry->protocol);
205 FREE(entry, M_IFADDR);
208 entry->next = proto_hash[hash_slot];
209 proto_hash[hash_slot] = entry;
217 struct proto_input_entry *entry;
226 entry = proto_input_add_list;
230 proto_delayed_attach(entry);
237 for (entry = proto_hash[i]; entry && proto_total_waiting;
238 entry = entry->next) {
239 if (entry->inject_first) {
243 packet_list = entry->inject_first;
245 entry->inject_first = NULL;
246 entry->inject_last = NULL;
251 if (entry->domain && (entry->domain->dom_flags & DOM_REENTRANT) == 0) {
252 lck_mtx_lock(entry->domain->dom_mtx);
256 if (entry->chain) {
257 entry->input(entry->protocol, packet_list);
265 entry->input(entry->protocol, packet);
270 lck_mtx_unlock(entry->domain->dom_mtx);
283 struct proto_input_entry *entry;
286 for (entry = proto_hash[proto_hash_value(protocol)]; entry;
287 entry = entry->next) {
288 if (entry->protocol == protocol)
292 if (entry->domain && (entry->domain->dom_flags & DOM_REENTRANT) == 0) {
293 lck_mtx_lock(entry->domain->dom_mtx);
297 if (entry->chain) {
298 entry->input(entry->protocol, packet_list);
306 entry->input(entry->protocol, packet);
311 lck_mtx_unlock(entry->domain->dom_mtx);
321 struct proto_input_entry *entry;
330 for (entry = proto_hash[hash_slot]; entry; entry = entry->next) {
331 if (entry->protocol == protocol)
335 if (entry) {
337 if (entry->inject_first == NULL) {
340 entry->inject_first = packet_list;
343 mbuf_setnextpkt(entry->inject_last, packet_list);
345 entry->inject_last = last_packet;