Searched refs:IPOPT_OFFSET (Results 1 – 3 of 3) sorted by relevance
202 #define IPOPT_OFFSET 2 /* offset within option */ macro
383 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */2831 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()2835 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()2836 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()2927 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()2935 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()2936 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()2939 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()2940 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()2969 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()[all …]
2779 bcopy((caddr_t)&cp[IPOPT_OFFSET + 1], mtod(m, caddr_t), in ip_pcbopts()2785 ovbcopy((caddr_t)(&cp[IPOPT_OFFSET + 1] + in ip_pcbopts()2787 (caddr_t)&cp[IPOPT_OFFSET + 1], in ip_pcbopts()