Lines Matching refs:IPOPT_OFFSET
383 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
2827 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2831 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2832 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2923 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2931 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2932 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2935 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2936 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2965 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
3107 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
3108 (*((uint16_t *)(void *)&cp[IPOPT_OFFSET]) != 0)) { in ip_checkrouteralert()
3174 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3225 ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()