Lines Matching defs:olen
1610 * [optval] [olen] [(olen - 2) data bytes]
1617 uint8_t optval, olen, offset;
1622 olen = 1;
1627 olen = cp[IPOPT_OLEN];
1628 if (olen < IPOPT_OLEN + 1 || olen > cnt)
1641 if (olen < IPOPT_OFFSET + 1 + sizeof(struct in_addr))
1650 olen -= sizeof(struct in_addr);
1652 if (m->m_len + olen > MAX_IPOPTLEN + sizeof(struct in_addr))
1655 memcpy(dp, cp, olen);
1657 dp[IPOPT_OLEN] = olen;
1661 if (m->m_len + olen > MAX_IPOPTLEN + sizeof(struct in_addr))
1664 memcpy(dp, cp, olen);
1668 dp += olen;
1669 m->m_len += olen;
1674 cp += olen;
1675 cnt -= olen;