Home
last modified time | relevance | path

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

/linux-6.1.9/include/net/
Dcipso_ipv4.h273 u8 opt_iter; in cipso_v4_validate() local
286 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate()
287 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
288 err_offset = opt_iter; in cipso_v4_validate()
291 tag_len = opt[opt_iter + 1]; in cipso_v4_validate()
292 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
293 err_offset = opt_iter + 1; in cipso_v4_validate()
296 opt_iter += tag_len; in cipso_v4_validate()
/linux-6.1.9/net/ipv4/
Dcipso_ipv4.c1553 unsigned char opt_iter; in cipso_v4_validate() local
1574 opt_iter = CIPSO_V4_HDR_LEN; in cipso_v4_validate()
1575 tag = opt + opt_iter; in cipso_v4_validate()
1576 while (opt_iter < opt_len) { in cipso_v4_validate()
1580 err_offset = opt_iter; in cipso_v4_validate()
1584 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
1585 err_offset = opt_iter; in cipso_v4_validate()
1589 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate()
1590 err_offset = opt_iter + 1; in cipso_v4_validate()
1597 err_offset = opt_iter + 1; in cipso_v4_validate()
[all …]