Home
last modified time | relevance | path

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

/linux/include/net/
H A Dcipso_ipv4.h275 u8 opt_iter; in cipso_v4_validate() local
288 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate()
289 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
290 err_offset = opt_iter; in cipso_v4_validate()
293 tag_len = opt[opt_iter + 1]; in cipso_v4_validate()
294 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
295 err_offset = opt_iter + 1; in cipso_v4_validate()
298 opt_iter += tag_len; in cipso_v4_validate()
/linux/net/ipv4/
H A Dcipso_ipv4.c1550 unsigned char opt_iter; in cipso_v4_validate() local
1571 opt_iter = CIPSO_V4_HDR_LEN; in cipso_v4_validate()
1572 tag = opt + opt_iter; in cipso_v4_validate()
1573 while (opt_iter < opt_len) { in cipso_v4_validate()
1577 err_offset = opt_iter; in cipso_v4_validate()
1581 if (opt_iter + 1 == opt_len) { in cipso_v4_validate()
1582 err_offset = opt_iter; in cipso_v4_validate()
1586 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate()
1587 err_offset = opt_iter + 1; in cipso_v4_validate()
1594 err_offset = opt_iter + 1; in cipso_v4_validate()
[all …]