Lines Matching refs:olen
3162 unsigned olen; in save_rte() local
3164 olen = option[IPOPT_OLEN]; in save_rte()
3167 printf("save_rte: olen %d\n", olen); in save_rte()
3170 if (olen > sizeof(ip_srcrt) - (1 + sizeof(dst))) { in save_rte()
3173 bcopy(option, ip_srcrt.srcopt, olen); in save_rte()
3174 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3264 int olen; in ip_stripoptions() local
3270 olen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in ip_stripoptions()
3272 i = m->m_len - (sizeof(struct ip) + olen); in ip_stripoptions()
3273 bcopy(opts + olen, opts, (unsigned)i); in ip_stripoptions()
3274 m->m_len -= olen; in ip_stripoptions()
3276 m->m_pkthdr.len -= olen; in ip_stripoptions()
3308 if (m->m_pkthdr.csum_rx_start >= (sizeof(struct ip) + olen)) { in ip_stripoptions()
3310 m->m_pkthdr.csum_rx_start -= olen; in ip_stripoptions()