Lines Matching refs:olen
2831 unsigned olen; in save_rte() local
2833 olen = option[IPOPT_OLEN]; in save_rte()
2836 printf("save_rte: olen %d\n", olen); in save_rte()
2839 if (olen > sizeof(ip_srcrt) - (1 + sizeof(dst))) { in save_rte()
2842 bcopy(option, ip_srcrt.srcopt, olen); in save_rte()
2843 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
2941 int olen; in ip_stripoptions() local
2947 olen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in ip_stripoptions()
2949 i = m->m_len - (sizeof(struct ip) + olen); in ip_stripoptions()
2950 bcopy(opts + olen, opts, (unsigned)i); in ip_stripoptions()
2951 m->m_len -= olen; in ip_stripoptions()
2953 m->m_pkthdr.len -= olen; in ip_stripoptions()
2985 if (m->m_pkthdr.csum_rx_start >= (sizeof(struct ip) + olen)) { in ip_stripoptions()
2987 m->m_pkthdr.csum_rx_start -= olen; in ip_stripoptions()