Searched refs:IPOPT_OLEN (Results 1 – 7 of 7) sorted by relevance
601 i + IPOPT_OLEN < optlen) { in ah4_finaldst()616 if (q[i + IPOPT_OLEN] < 2 + sizeof(struct in_addr) || in ah4_finaldst()617 optlen - i < q[i + IPOPT_OLEN]) { in ah4_finaldst()621 q[i + IPOPT_OPTVAL], q[i + IPOPT_OLEN])); in ah4_finaldst()624 i += q[i + IPOPT_OLEN] - sizeof(struct in_addr); in ah4_finaldst()627 if (q[i + IPOPT_OLEN] < 2 || in ah4_finaldst()628 optlen - i < q[i + IPOPT_OLEN]) { in ah4_finaldst()632 q[i + IPOPT_OPTVAL], q[i + IPOPT_OLEN])); in ah4_finaldst()635 i += q[i + IPOPT_OLEN]; in ah4_finaldst()
625 i + IPOPT_OLEN < hlen) { in ah4_calccksum()648 l = p[i + IPOPT_OLEN]; in ah4_calccksum()655 l = p[i + IPOPT_OLEN]; in ah4_calccksum()668 p[i + IPOPT_OLEN])); in ah4_calccksum()
201 #define IPOPT_OLEN 1 /* option length */ macro
2434 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_dooptions()2435 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2438 optlen = cp[IPOPT_OLEN]; in ip_dooptions()2439 if (optlen < IPOPT_OLEN + sizeof(*cp) || in ip_dooptions()2441 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2461 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2727 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_checkrouteralert()2731 optlen = cp[IPOPT_OLEN]; in ip_checkrouteralert()2733 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_checkrouteralert()2798 olen = option[IPOPT_OLEN]; in save_rte()
496 #ifndef IPOPT_OLEN497 # define IPOPT_OLEN 1
931 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in icmp_reflect()934 len = cp[IPOPT_OLEN]; in icmp_reflect()935 if (len < IPOPT_OLEN + sizeof(*cp) || in icmp_reflect()
2294 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_optcopy()2299 optlen = cp[IPOPT_OLEN]; in ip_optcopy()2301 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_optcopy()2862 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_pcbopts()2865 optlen = cp[IPOPT_OLEN]; in ip_pcbopts()2866 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_pcbopts()2893 cp[IPOPT_OLEN] = (uint8_t)optlen; in ip_pcbopts()