Searched refs:IPOPT_OFFSET (Results 1 – 3 of 3) sorted by relevance
202 #define IPOPT_OFFSET 2 /* offset within option */ macro
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()[all …]
2858 bcopy((caddr_t)&cp[IPOPT_OFFSET + 1], mtod(m, caddr_t), in ip_pcbopts()2864 ovbcopy((caddr_t)(&cp[IPOPT_OFFSET + 1] + in ip_pcbopts()2866 (caddr_t)&cp[IPOPT_OFFSET + 1], in ip_pcbopts()