Lines Matching refs:olen
3156 unsigned olen; in save_rte() local
3158 olen = option[IPOPT_OLEN]; in save_rte()
3161 printf("save_rte: olen %d\n", olen); in save_rte()
3164 if (olen > sizeof(ip_srcrt) - (1 + sizeof(dst))) { in save_rte()
3167 bcopy(option, ip_srcrt.srcopt, olen); in save_rte()
3168 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3258 int olen; in ip_stripoptions() local
3264 olen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in ip_stripoptions()
3266 i = m->m_len - (sizeof(struct ip) + olen); in ip_stripoptions()
3267 bcopy(opts + olen, opts, (unsigned)i); in ip_stripoptions()
3268 m->m_len -= olen; in ip_stripoptions()
3270 m->m_pkthdr.len -= olen; in ip_stripoptions()
3302 if (m->m_pkthdr.csum_rx_start >= (sizeof(struct ip) + olen)) { in ip_stripoptions()
3304 m->m_pkthdr.csum_rx_start -= olen; in ip_stripoptions()