Lines Matching refs:opthdr
316 struct T_opthdr *opthdr;
333 opthdr = (struct T_opthdr *)memalign(sizeof (int),
335 if (opthdr == NULL)
337 opthdr->len = sizeof (struct T_opthdr) + sizeof (in_pktinfo_t);
338 opthdr->level = IPPROTO_IP;
339 opthdr->name = IP_PKTINFO;
345 pktinfo = (in_pktinfo_t *)(opthdr + 1);
351 if (opthdr->len + opt->len <= opt->maxlen) {
353 (const void *)opthdr, opthdr->len);
354 opt->len += opthdr->len;
356 free(opthdr);