Home
last modified time | relevance | path

Searched refs:opt_iter (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/include/net/
Dcipso_ipv4.h285 u8 opt_iter; in cipso_v4_validate() local
298 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate()
299 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
300 err_offset = opt_iter; in cipso_v4_validate()
303 tag_len = opt[opt_iter + 1]; in cipso_v4_validate()
304 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
305 err_offset = opt_iter + 1; in cipso_v4_validate()
308 opt_iter += tag_len; in cipso_v4_validate()
/Linux-v5.4/net/ipv4/
Dcipso_ipv4.c1557 unsigned char opt_iter; in cipso_v4_validate() local
1578 opt_iter = CIPSO_V4_HDR_LEN; in cipso_v4_validate()
1579 tag = opt + opt_iter; in cipso_v4_validate()
1580 while (opt_iter < opt_len) { in cipso_v4_validate()
1584 err_offset = opt_iter; in cipso_v4_validate()
1588 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
1589 err_offset = opt_iter; in cipso_v4_validate()
1593 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate()
1594 err_offset = opt_iter + 1; in cipso_v4_validate()
1601 err_offset = opt_iter + 1; in cipso_v4_validate()
[all …]