Lines Matching refs:IPOPT_OFFSET
383 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
2823 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2827 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2828 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2919 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2927 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2928 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2931 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2932 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2961 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
3103 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
3104 (*((uint16_t *)(void *)&cp[IPOPT_OFFSET]) != 0)) { in ip_checkrouteralert()
3170 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3221 ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()