Lines Matching refs:IPOPT_OFFSET

163 			if (optlen < IPOPT_OFFSET + sizeof(*cp)) {  in ip_dooptions()
167 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
168 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
267 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
279 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
280 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
283 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
284 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
312 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
325 if ((off = cp[IPOPT_OFFSET]) < 5) { in ip_dooptions()
330 cp[IPOPT_OFFSET + 1] += (1 << 4); in ip_dooptions()
331 if ((cp[IPOPT_OFFSET + 1] & 0xf0) == 0) { in ip_dooptions()
332 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
339 switch (cp[IPOPT_OFFSET + 1] & 0x0f) { in ip_dooptions()
346 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
356 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
363 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
370 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
375 code = &cp[IPOPT_OFFSET + 1] - (u_char *)ip; in ip_dooptions()
380 cp[IPOPT_OFFSET] += sizeof(uint32_t); in ip_dooptions()
415 opts->ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
458 opts->ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()
679 bcopy((caddr_t)&cp[IPOPT_OFFSET+1], mtod(m, caddr_t), in ip_pcbopts()
685 bcopy((&cp[IPOPT_OFFSET+1] + sizeof(struct in_addr)), in ip_pcbopts()
686 &cp[IPOPT_OFFSET+1], in ip_pcbopts()
747 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
748 (*((uint16_t *)&cp[IPOPT_OFFSET]) != 0)) in ip_checkrouteralert()