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()
1322 i + IPOPT_OLEN < hlen) { in ah4_calccksum()1345 l = p[i + IPOPT_OLEN]; in ah4_calccksum()1352 l = p[i + IPOPT_OLEN]; in ah4_calccksum()1365 p[i + IPOPT_OLEN])); in ah4_calccksum()
201 #define IPOPT_OLEN 1 /* option length */ macro
2795 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_dooptions()2796 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2799 optlen = cp[IPOPT_OLEN]; in ip_dooptions()2800 if (optlen < IPOPT_OLEN + sizeof(*cp) || in ip_dooptions()2802 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2822 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()3087 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_checkrouteralert()3091 optlen = cp[IPOPT_OLEN]; in ip_checkrouteralert()3093 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_checkrouteralert()3158 olen = option[IPOPT_OLEN]; in save_rte()
496 #ifndef IPOPT_OLEN497 # define IPOPT_OLEN 1
926 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in icmp_reflect()929 len = cp[IPOPT_OLEN]; in icmp_reflect()930 if (len < IPOPT_OLEN + sizeof(*cp) || in icmp_reflect()
2207 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_optcopy()2212 optlen = cp[IPOPT_OLEN]; in ip_optcopy()2214 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_optcopy()2740 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_pcbopts()2743 optlen = cp[IPOPT_OLEN]; in ip_pcbopts()2744 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_pcbopts()2771 cp[IPOPT_OLEN] = (uint8_t)optlen; in ip_pcbopts()