Lines Matching refs:IPOPT_OFFSET
384 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
2460 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2464 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2465 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2557 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2565 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2566 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2569 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2570 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2599 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2741 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
2742 (*((uint16_t *)(void *)&cp[IPOPT_OFFSET]) != 0)) { in ip_checkrouteralert()
2808 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
2866 ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()