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
2837 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_dooptions()2838 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2841 optlen = cp[IPOPT_OLEN]; in ip_dooptions()2842 if (optlen < IPOPT_OLEN + sizeof(*cp) || in ip_dooptions()2844 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()2864 code = (uint8_t)(&cp[IPOPT_OLEN] - (u_char *)ip); in ip_dooptions()3130 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_checkrouteralert()3134 optlen = cp[IPOPT_OLEN]; in ip_checkrouteralert()3136 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_checkrouteralert()3201 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()
2264 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_optcopy()2269 optlen = cp[IPOPT_OLEN]; in ip_optcopy()2271 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_optcopy()2823 if (cnt < IPOPT_OLEN + sizeof(*cp)) { in ip_pcbopts()2826 optlen = cp[IPOPT_OLEN]; in ip_pcbopts()2827 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { in ip_pcbopts()2854 cp[IPOPT_OLEN] = (uint8_t)optlen; in ip_pcbopts()