Home
last modified time | relevance | path

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

/dragonfly/sys/netinet/
H A Dip_gre.c212 int msiz; in gre_mobile_input() local
224 msiz = MOB_H_SIZ_L; in gre_mobile_input()
227 msiz = MOB_H_SIZ_S; in gre_mobile_input()
232 if (gre_in_cksum((u_short*)&mip->mh,msiz) != 0) { in gre_mobile_input()
237 bcopy((caddr_t)(ip) + (ip->ip_hl << 2) + msiz, (caddr_t)(ip) + in gre_mobile_input()
238 (ip->ip_hl << 2), m->m_len - msiz - (ip->ip_hl << 2)); in gre_mobile_input()
239 m->m_len -= msiz; in gre_mobile_input()
240 m->m_pkthdr.len -= msiz; in gre_mobile_input()
247 ip->ip_len = htons(ntohs(ip->ip_len) + sizeof(struct ip) - msiz); in gre_mobile_input()
/dragonfly/sys/net/gre/
H A Dif_gre.c308 int msiz; in gre_output_serialized() local
332 msiz = MOB_H_SIZ_S; in gre_output_serialized()
337 msiz = MOB_H_SIZ_L; in gre_output_serialized()
342 if ((m->m_data - msiz) < m->m_pktdat) { in gre_output_serialized()
353 m0->m_pkthdr.len = m->m_pkthdr.len + msiz; in gre_output_serialized()
354 m0->m_len = msiz + sizeof(struct ip); in gre_output_serialized()
360 m->m_data -= msiz; in gre_output_serialized()
361 m->m_len += msiz; in gre_output_serialized()
362 m->m_pkthdr.len += msiz; in gre_output_serialized()
367 memcpy((caddr_t)(ip + 1), &mob_h, (unsigned)msiz); in gre_output_serialized()
[all …]