Lines Matching refs:tag
204 struct edgehole_tag *tag)
210 if (tag->eh_inp == NULL || tag->eh_inpinfo == NULL)
216 delayed->inp = tag->eh_inp;
217 delayed->inpinfo = tag->eh_inpinfo;
259 // Allocate a malloc tag
285 struct edgehole_tag *tag;
288 // Find an existing tag
289 if (mbuf_tag_find(m, edgehole_tag, 0, &length, (void**)&tag) == 0)
291 if (length != sizeof(*tag))
292 panic("ip_edgehole_mbuf_tag - existing tag is wrong size");
295 tag->eh_flags = (tag->eh_flags & (~inp->inpcb_edgehole_mask)) |
300 // Add the tag
301 if (mbuf_tag_allocate(m, edgehole_tag, 0, sizeof(*tag), MBUF_WAITOK, (void**)&tag) != 0)
304 tag->eh_flags = (inp->inpcb_edgehole_flags & inp->inpcb_edgehole_mask);
305 tag->eh_inp = inp;
306 tag->eh_inpinfo = inp->inp_pcbinfo;
315 struct edgehole_tag *tag;
318 if (mbuf_tag_find(*m, edgehole_tag, 0, &length, (void**)&tag) == 0)
320 if (length != sizeof(*tag))
321 panic("ip_edgehole_filter - existing tag is wrong size");
323 if ((tag->eh_flags & kEdgeHoleFlag_BlockInternet) != 0)
325 ip_edgehole_notify(tag);