Lines Matching refs:IPOPT_OFFSET
384 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
2495 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2499 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2500 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2592 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2600 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2601 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2604 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2605 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2634 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2776 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) || in ip_checkrouteralert()
2777 (*((uint16_t *)(void *)&cp[IPOPT_OFFSET]) != 0)) { in ip_checkrouteralert()
2843 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
2901 ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF; in ip_srcroute()