Home
last modified time | relevance | path

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

/f-stack/freebsd/netinet/
H A Dip_options.c163 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
168 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
279 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { in ip_dooptions()
280 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
284 code = &cp[IPOPT_OFFSET] - (u_char *)ip; in ip_dooptions()
325 if ((off = cp[IPOPT_OFFSET]) < 5) { in ip_dooptions()
330 cp[IPOPT_OFFSET + 1] += (1 << 4); in ip_dooptions()
331 if ((cp[IPOPT_OFFSET + 1] & 0xf0) == 0) { in ip_dooptions()
339 switch (cp[IPOPT_OFFSET + 1] & 0x0f) { in ip_dooptions()
380 cp[IPOPT_OFFSET] += sizeof(uint32_t); in ip_dooptions()
[all …]
H A Dip_options.h42 char srcopt[IPOPT_OFFSET + 1]; /* OPTVAL, OLEN and OFFSET */
H A Dip.h167 #define IPOPT_OFFSET 2 /* offset within option */ macro
/f-stack/tools/compat/include/netinet/
H A Dip.h167 #define IPOPT_OFFSET 2 /* offset within option */ macro