Home
last modified time | relevance | path

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

/xnu-10002.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 */
2823 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2827 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2828 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2919 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
2927 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
2928 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2931 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) { in ip_dooptions()
2932 code = (uint8_t)(&cp[IPOPT_OFFSET] - (u_char *)ip); in ip_dooptions()
2961 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions()
[all …]
H A Dip_output.c2789 bcopy((caddr_t)&cp[IPOPT_OFFSET + 1], mtod(m, caddr_t), in ip_pcbopts()
2795 ovbcopy((caddr_t)(&cp[IPOPT_OFFSET + 1] + in ip_pcbopts()
2797 (caddr_t)&cp[IPOPT_OFFSET + 1], in ip_pcbopts()