Searched refs:IPOPT_OLEN (Results 1 - 8 of 8) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_output.c597 i + IPOPT_OLEN < optlen)
611 if (q[i + IPOPT_OLEN] < 2 + sizeof(struct in_addr) ||
612 optlen - i < q[i + IPOPT_OLEN]) {
616 q[i + IPOPT_OPTVAL], q[i + IPOPT_OLEN]));
619 i += q[i + IPOPT_OLEN] - sizeof(struct in_addr);
622 if (q[i + IPOPT_OLEN] < 2 ||
623 optlen - i < q[i + IPOPT_OLEN]) {
627 q[i + IPOPT_OPTVAL], q[i + IPOPT_OLEN]));
630 i += q[i + IPOPT_OLEN];
H A Dah_core.c1341 i + IPOPT_OLEN < hlen)
1364 l = p[i + IPOPT_OLEN];
1370 l = p[i + IPOPT_OLEN];
1382 p[i + IPOPT_OLEN]));
/darwin-on-arm/xnu/bsd/netinet/
H A Dip.h190 #define IPOPT_OLEN 1 /* option length */ macro
H A Dip_compat.h494 #ifndef IPOPT_OLEN
495 # define IPOPT_OLEN 1
H A Dip_icmp.c752 if (cnt < IPOPT_OLEN + sizeof(*cp))
754 len = cp[IPOPT_OLEN];
755 if (len < IPOPT_OLEN + sizeof(*cp) ||
H A Dip_input.c1850 if (cnt < IPOPT_OLEN + sizeof(*cp)) {
1851 code = &cp[IPOPT_OLEN] - (u_char *)ip;
1854 optlen = cp[IPOPT_OLEN];
1855 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) {
1856 code = &cp[IPOPT_OLEN] - (u_char *)ip;
1877 code = &cp[IPOPT_OLEN] - (u_char *)ip;
2141 olen = option[IPOPT_OLEN];
H A Dip_output.c2266 if (cnt < IPOPT_OLEN + sizeof(*cp))
2269 optlen = cp[IPOPT_OLEN];
2271 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt)
2794 if (cnt < IPOPT_OLEN + sizeof(*cp))
2796 optlen = cp[IPOPT_OLEN];
2797 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt)
2820 cp[IPOPT_OLEN] = optlen;
H A Dip_fw2.c884 optlen = cp[IPOPT_OLEN];

Completed in 94 milliseconds