Lines Matching refs:IPOPT_OFFSET
388 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
2863 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2867 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2868 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2960 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2968 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2969 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2972 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2973 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
3002 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
3144 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
3145 (*((uint16_t *)(void *)&cp[IPOPT_OFFSET]) != 0)) { in ip_checkrouteralert()
3211 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3269 ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()