Home
last modified time | relevance | path

Searched refs:IPOPT_OFFSET (Results 1 – 3 of 3) sorted by relevance

/xnu-8792.41.9/bsd/netinet/
H A Dip.h202 #define IPOPT_OFFSET 2 /* offset within option */ macro
H A Dip_input.c383 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()
[all …]
H A Dip_output.c2775 bcopy((caddr_t)&cp[IPOPT_OFFSET + 1], mtod(m, caddr_t), in ip_pcbopts()
2781 ovbcopy((caddr_t)(&cp[IPOPT_OFFSET + 1] + in ip_pcbopts()
2783 (caddr_t)&cp[IPOPT_OFFSET + 1], in ip_pcbopts()