Searched refs:mtod (Results 1 - 23 of 23) sorted by relevance

/vbox/src/VBox/Devices/Network/slirp/
H A Dip_icmpwin.c132 struct ip *ip = mtod(m, struct ip *);
171 reqdata = mtod(m, char *) + sizeof(struct ip) + sizeof(struct icmp_echo);
222 struct ip *eip = mtod(em, struct ip *);
386 ip = mtod(m, struct ip *);
387 icmp = (struct icmp_echo *)(mtod(m, char *) + sizeof(*ip));
450 ip = mtod(m, struct ip *);
483 ip = mtod(m, struct ip *);
484 icmp = (struct icmp_echo *)(mtod(m, char *) + sizeof(*ip));
534 m->m_pkthdr.header = mtod(m, void *);
H A Dip_output.c146 ip = mtod(m, struct ip *);
178 rc = LibAliasOut(pData->proxy_alias, mtod(m, char *), m_length(m, NULL));
237 mhip = mtod(m, struct ip *);
239 m->m_pkthdr.header = mtod(m, void *);
307 rcLa = LibAliasOut(pData->proxy_alias, mtod(m, char *), m->m_len);
324 eh = mtod(m, struct ethhdr *);
H A Dip_icmp.c190 ip0 = mtod(m0, struct ip *);
344 ip = mtod(m, struct ip *);
363 register struct ip *ip = mtod(m, struct ip *);
462 icp = (struct icmp *)(mtod(m, char *) + hlen);
571 oip = mtod(msrc, struct ip *);
609 ip = mtod(m, struct ip *);
688 register struct ip *ip = mtod(m, struct ip *);
699 icp = mtod(m, struct icmp *);
H A Dip_input.c101 ip = mtod(m, struct ip *);
110 rc = LibAliasIn(pData->proxy_alias, mtod(m, char *), m_length(m, NULL));
128 ip = mtod(m, struct ip *);
221 ip = mtod(m, struct ip *);
281 ip = mtod(m, struct ip *);
517 ip = mtod(m, struct ip *); /*update ip pointer */
637 struct ip *ip = mtod(m, struct ip *);
H A Dcksum.c90 w = mtod(m, u_int16_t *);
H A Dtcp_output.c413 m->m_pkthdr.header = mtod(m, void *);
424 sbcopy(&so->so_snd, off, (int) len, mtod(m, caddr_t) + hdrlen);
484 m->m_pkthdr.header = mtod(m, void *);
508 ti = mtod(m, struct tcpiphdr *);
653 m->m_pkthdr.header = mtod(m, void *);
H A Dtftp.c582 m->m_pkthdr.header = mtod(m, void *);
583 pTftpIpHeader = mtod(m, PTFTPIPHDR);
623 m->m_pkthdr.header = mtod(m, void *);
624 pTftpIpHeader = mtod(m, PTFTPIPHDR);
663 m->m_pkthdr.header = mtod(m, void *);
664 pTftpIpHeader = mtod(m, PTFTPIPHDR);
781 pTftpIpHeader = mtod(pMbuf, PTFTPIPHDR);
H A Dbootp.c214 eh = mtod(m, struct ethhdr *);
219 rbp = mtod(m, struct bootp_t *);
257 rbp = mtod(m, struct bootp_t *);
815 rbp = mtod(m, struct bootp_t *);
828 m->m_pkthdr.header = mtod(m, void *);
846 struct bootp_t *bp = mtod(m, struct bootp_t *);
H A Dtcp_subr.c142 m->m_pkthdr.header = mtod(m, void *);
143 *mtod(m, struct tcpiphdr *) = *ti;
144 ti = mtod(m, struct tcpiphdr *);
H A Dudp.c98 ip = mtod(m, struct ip *);
118 ip = mtod(m, struct ip *);
421 ui = mtod(m, struct udpiphdr *);
H A Dslirp.c1285 pEtherHeaderResponse = mtod(pMbufResponse, struct ethhdr *);
1289 pARPHeaderResponse = mtod(pMbufResponse, struct arphdr *);
1326 pEtherHeader = mtod(m, struct ethhdr *);
1390 eh = mtod(m, struct ethhdr *);
1407 m->m_pkthdr.header = mtod(m, void *);
1449 eh = mtod(m, struct ethhdr *);
1483 mbuf = mtod(m, uint8_t *);
1913 ehdr = mtod(m, struct ethhdr *);
H A Dsbuf.c158 buf = mtod(m, char *);
H A Dsocket.c717 m->m_pkthdr.header = mtod(m, void *);
722 iov[0].iov_base = mtod(m, char *);
1238 struct ip *ip0 = mtod(m, struct ip *);
1261 ip = mtod(m, struct ip *);
1277 ip = mtod(m, struct ip *); /* ip is from mbuf we've overrided */
H A Dtcp_input.c359 ip = mtod(m, struct ip *);
388 ti = mtod(m, struct tcpiphdr *);
429 optp = mtod(m, caddr_t) + sizeof (struct tcpiphdr);
1794 m->m_pkthdr.header = mtod(m, void *);
1893 char *cp = mtod(m, caddr_t) + cnt;
H A Dmisc.c517 *ppvBuf = mtod(m, void *);
528 && pu8Buf != mtod(m, uint8_t *))
/vbox/src/VBox/Devices/Network/slirp/bsd/kern/
H A Duipc_mbuf.c643 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t),
744 m_apply(n, off, len, m_bcopyxxx, mtod(mm, caddr_t) +
751 mm->m_data = mtod(mm, caddr_t) - len;
752 m_apply(n, off, len, m_bcopyxxx, mtod(mm, caddr_t));
822 m_apply(n, off, i, m_bcopyxxx, mtod(z, caddr_t) + z->m_len);
866 bcopy(mtod(m, char *), mtod(n, char *), n->m_len);
883 bcopy(mtod(m, char *), mtod(
[all...]
H A Duipc_mbuf2.c246 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len);
259 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
292 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen);
295 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len);
376 m_copydata(m, off, len, mtod(n, caddr_t));
/vbox/src/VBox/Devices/Network/slirp/bsd/i386/
H A Din_cksum.c220 addr = mtod(m, caddr_t) + skip;
231 addr = mtod(m, caddr_t);
284 w = (u_short *)(mtod(m, u_char *) + skip);
294 w = mtod(m, u_short *);
/vbox/src/VBox/Devices/Network/slirp/bsd/amd64/
H A Din_cksum.c212 addr = mtod(m, caddr_t) + skip;
223 addr = mtod(m, caddr_t);
/vbox/src/VBox/Devices/Network/slirp/dnsproxy/
H A Ddnsproxy.c156 ip = mtod(m, struct ip *);
326 ip = mtod(m, struct ip *);
528 buf = mtod(m, char *);
/vbox/src/VBox/Devices/Network/slirp/bsd/sys/
H A Dmbuf.h109 * mtod(m, t) -- Convert mbuf pointer to data pointer of correct type.
112 #define mtod(m, t) ((t)((m)->m_data)) macro
/vbox/src/VBox/HostDrivers/VBoxNetFlt/freebsd/
H A DVBoxNetFlt-freebsd.c222 pSG->aSegs[i].pv = mtod(m0, uint8_t *);
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias.c1741 m_copydata(m, 0, len, mtod(mcl, caddr_t));

Completed in 1493 milliseconds