gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:mtod from t2ex/bsd_source/t2ex/network/net/src_bsd/netinet/ip_icmp.c (0.00 seconds)
t2ex
bsd_source/t2ex/network/net/src_bsd/netinet/ip_icmp.c - 44.0KB - 1,314 lines
372:                 MH_ALIGN(m, m->m_len);
373:         icp = mtod(m, struct icmp *);
374:         if ((u_int)type > ICMP_MAXTYPE)
406: m->m_pkthdr.rcvif = n->m_pkthdr.rcvif; 407: nip = mtod(m, struct ip *); 408: /* ip_v set in ip_output */
491: } 492: ip = mtod(m, struct ip *); 493: m->m_len -= hlen; 494: m->m_data += hlen; 495: icp = mtod(m, struct icmp *); 496: /* Don't need to assert alignment, here. */
866: opts->m_len = sizeof(struct in_addr); 867: *mtod(opts, struct in_addr *) = zeroin_addr; 868: }
893: opt == IPOPT_SECURITY) { 894: memmove(mtod(opts, char *) + opts->m_len, 895: cp, len);
901: for (; cnt < 4; cnt++) { 902: *(mtod(opts, char *) + opts->m_len) = 903: IPOPT_EOL;
953: m->m_len -= hlen; 954: icp = mtod(m, struct icmp *); 955: icp->icmp_cksum = 0;