Home
last modified time | relevance | path

Searched refs:mtod (Results 1 – 25 of 193) sorted by relevance

12345678

/mirbsd/src/sys/nfs/
Dkrpc_subr.c156 sdata = mtod(m, struct sdata *);
176 rdata = mtod(m, struct rdata *);
226 tv = mtod(m, struct timeval *);
239 on = mtod(m, int32_t *);
252 sin = mtod(m, struct sockaddr_in *);
259 ip = mtod(mopt, int *);
266 sin = mtod(m, struct sockaddr_in *);
280 ip = mtod(mopt, int *);
290 sin = mtod(nam, struct sockaddr_in *);
298 call = mtod(mhead, struct rpc_call *);
[all …]
Dnfs_subs.c558 bpos = mtod(mb, caddr_t);
605 bpos = mtod(mb, caddr_t);
663 bpos = mtod(mb, caddr_t);
696 bpos = mtod(mb, caddr_t);
739 len = mtod(mp, caddr_t)+mp->m_len-mbufcp;
754 mbufcp = mtod(mp, caddr_t);
846 (uiocp, mtod(mp, caddr_t)+mp->m_len, xfer);
850 bcopy(uiocp, mtod(mp, caddr_t)+mp->m_len, xfer);
852 copyin(uiocp, mtod(mp, caddr_t)+mp->m_len, xfer);
869 cp = mtod(mp, caddr_t)+mp->m_len;
[all …]
/mirbsd/src/sys/netinet6/
Dip6_output.c216 ip6 = mtod(m, struct ip6_hdr *);
322 ip6 = mtod(m, struct ip6_hdr *);
339 ip6 = mtod(m, struct ip6_hdr *);
372 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt;
381 *mtod((m), u_char *) = *(p);\
383 p = mtod((m), u_char *);\
410 rh = (struct ip6_rthdr *)(mtod(exthdrs.ip6e_rthdr,
767 struct ip6_hbh *hbh = mtod(exthdrs.ip6e_hbh, struct ip6_hbh *);
798 ip6 = mtod(m, struct ip6_hdr *);
915 nextproto = *mtod(exthdrs.ip6e_rthdr, u_char *);
[all …]
/mirbsd/src/sys/dev/ic/
Dawi_wep.c342 wh = mtod(n, struct ieee80211_frame *);
353 memcpy(mtod(n, caddr_t), mtod(m, caddr_t), len);
359 wh = mtod(n, struct ieee80211_frame *);
366 ivp = mtod(n, u_int8_t *) + noff;
373 ivp = mtod(m, u_int8_t *) + moff;
414 awa->awa_encrypt(ctx, mtod(n, caddr_t) + noff,
415 mtod(m, caddr_t) + moff, len);
416 crc = awi_crc_update(crc, mtod(m, caddr_t) + moff, len);
418 awa->awa_decrypt(ctx, mtod(n, caddr_t) + noff,
419 mtod(m, caddr_t) + moff, len);
[all …]
/mirbsd/src/sys/netisdn/
Di4b_capi_msgs.c71 msg = capimsg_setu16(mtod(m, u_int8_t*), m->m_len); in capi_listen_req()
89 u_int8_t *msg = mtod(m_in, u_int8_t*); in capi_listen_conf()
113 u_int8_t *msg = mtod(m_in, u_int8_t*); in capi_info_ind()
128 msg = capimsg_setu16(mtod(m, u_int8_t*), m->m_len); in capi_info_ind()
153 msg = capimsg_setu16(mtod(m, u_int8_t*), m->m_len); in capi_alert_req()
166 u_int8_t *msg = mtod(m_in, u_int8_t*); in capi_alert_conf()
217 msg = capimsg_setu16(mtod(m, u_int8_t*), m->m_len); in capi_connect_req()
270 u_int8_t *msg = mtod(m_in, u_int8_t*); in capi_connect_conf()
318 u_int8_t *msg = mtod(m_in, u_int8_t*); in capi_connect_active_ind()
345 msg = capimsg_setu16(mtod(m, u_int8_t*), m->m_len); in capi_connect_active_ind()
[all …]
/mirbsd/src/sys/netinet/
Dip_output.c142 ip = mtod(m, struct ip *); in ip_output()
582 ip = mtod(m, struct ip *); in ip_output()
678 ip = mtod(m, struct ip *); in ip_output()
772 ip = mtod(m, struct ip *); in ip_fragment()
809 mhip = mtod(m, struct ip *); in ip_fragment()
899 struct ipoption *p = mtod(opt, struct ipoption *);
901 struct ip *ip = mtod(m, struct ip *);
921 bcopy((caddr_t)ip, mtod(m, caddr_t), sizeof(struct ip));
926 ovbcopy((caddr_t)ip, mtod(m, caddr_t), sizeof(struct ip));
928 ip = mtod(m, struct ip *);
[all …]
Dipsec_output.c181 ip = mtod(m, struct ip *); in ipsp_process_packet()
191 ip6 = mtod(m, struct ip6_hdr *); in ipsp_process_packet()
219 ip = mtod(m, struct ip *); in ipsp_process_packet()
240 ip6 = mtod(m, struct ip6_hdr *); in ipsp_process_packet()
268 ip = mtod(m, struct ip *); in ipsp_process_packet()
293 ip = mtod(m, struct ip *); in ipsp_process_packet()
301 ip6 = mtod(m, struct ip6_hdr *); in ipsp_process_packet()
354 uh = mtod(mi, struct udphdr *); in ipsp_process_done()
368 ip = mtod(m, struct ip *); in ipsp_process_done()
387 ip6 = mtod(m, struct ip6_hdr *); in ipsp_process_done()
Draw_ip.c122 struct ip *ip = mtod(m, struct ip *); in rip_input()
204 ip = mtod(m, struct ip *); in rip_output()
221 ip = mtod(m, struct ip *); in rip_output()
276 else if (*mtod(*m, int *))
285 *mtod(*m, int *) = inp->inp_flags & INP_HDRINCL;
380 struct sockaddr_in *addr = mtod(nam, struct sockaddr_in *);
399 struct sockaddr_in *addr = mtod(nam, struct sockaddr_in *);
449 dst = mtod(nam, struct sockaddr_in *)->sin_addr.s_addr;
Dtcp_usrreq.c270 sin = mtod(nam, struct sockaddr_in *);
274 struct in6_addr *in6_addr = &mtod(nam,
444 *mtod(m, caddr_t) = tp->t_iobc;
551 else if (*mtod(m, int *))
563 i = *mtod(m, int *);
587 if (*mtod(m, int *))
605 if (*mtod(m, int *)) {
628 *mtod(m, int *) = tp->t_flags & TF_NODELAY;
631 *mtod(m, int *) = tp->t_maxseg;
635 *mtod(m, int *) = tp->sack_enable;
[all …]
Dip_icmp.c134 struct ip *oip = mtod(n, struct ip *), *nip; in icmp_do_error()
209 icp = mtod(m, struct icmp *); in icmp_do_error()
244 nip = mtod(m, struct ip *); in icmp_do_error()
299 struct ip *ip = mtod(m, struct ip *); in icmp_input()
337 ip = mtod(m, struct ip *); in icmp_input()
340 icp = mtod(m, struct icmp *); in icmp_input()
441 ip = mtod(m, struct ip *); in icmp_input()
614 struct ip *ip = mtod(m, struct ip *); in icmp_reflect()
688 mtod(opts, struct in_addr *)->s_addr = 0; in icmp_reflect()
717 mtod(opts, caddr_t) + opts->m_len, in icmp_reflect()
[all …]
Dip_gre.c123 gip = mtod(m, struct greip *);
309 ip = mtod(m, struct ip *); in gre_mobile_input()
310 mip = mtod(m, struct mobip_h *); in gre_mobile_input()
328 ip = mtod(m, struct ip *); in gre_mobile_input()
329 mip = mtod(m, struct mobip_h *); in gre_mobile_input()
391 struct ip *ip = mtod(m, struct ip *);
Dtcp_output.c765 mtod(m, caddr_t) + hdrlen);
817 bcopy(mtod(tp->t_template, caddr_t), mtod(m, caddr_t),
819 th = (struct tcphdr *)(mtod(m, caddr_t) + tp->t_template->m_len -
948 src.sin.sin_addr = mtod(m, struct ip *)->ip_src;
951 dst.sin.sin_addr = mtod(m, struct ip *)->ip_dst;
958 src.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_src;
961 dst.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_dst;
982 ipovly = mtod(m, struct ipovly *);
1002 ip6 = mtod(m, struct ip6_hdr *);
1033 MD5Final(mtod(m, caddr_t) + hdrlen - optlen + sigoff, &ctx);
[all …]
/mirbsd/src/sys/kern/
Duipc_usrreq.c125 bcopy(mtod(unp->unp_conn->unp_addr, caddr_t), in uipc_usrreq()
126 mtod(nam, caddr_t), (unsigned)nam->m_len); in uipc_usrreq()
129 *(mtod(nam, struct sockaddr *)) = sun_noname; in uipc_usrreq()
193 from = mtod(unp->unp_addr, struct sockaddr *); in uipc_usrreq()
274 bcopy(mtod(unp->unp_addr, caddr_t), in uipc_usrreq()
275 mtod(nam, caddr_t), (unsigned)nam->m_len); in uipc_usrreq()
283 bcopy(mtod(unp->unp_conn->unp_addr, caddr_t), in uipc_usrreq()
284 mtod(nam, caddr_t), (unsigned)nam->m_len); in uipc_usrreq()
293 mtod(nam, caddr_t), (unsigned)nam->m_len); in uipc_usrreq()
397 struct sockaddr_un *soun = mtod(nam, struct sockaddr_un *); in unp_bind()
[all …]
Duipc_mbuf.c193 memset(mtod(m, caddr_t), 0, MLEN);
340 memcpy(mtod(n, caddr_t), mtod(m, caddr_t) + off,
344 memcpy(mtod(n, caddr_t), mtod(m, caddr_t)+off,
397 bcopy(mtod(m, caddr_t) + off, cp, count);
438 bcopy(cp, off + mtod(m, caddr_t), (unsigned)mlen);
478 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
603 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
675 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
852 bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain);
923 copy(cp, mtod(m, caddr_t), (size_t)len);
[all …]
Duipc_socket.c494 error = uiomove(mtod(m, caddr_t), (int)len,
589 error = uiomove(mtod(m, caddr_t),
714 mtod(m, struct cmsghdr *)->cmsg_type ==
800 uiomove(mtod(m, caddr_t) + moff, (int)len,
997 mtod(m, struct linger *)->l_linger < 0 ||
998 mtod(m, struct linger *)->l_linger > SHRT_MAX) {
1002 so->so_linger = mtod(m, struct linger *)->l_linger;
1017 if (*mtod(m, int *))
1036 cnt = *mtod(m, int *);
1079 tv = mtod(m, struct timeval *);
[all …]
Duipc_mbuf2.c173 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
182 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); in m_pulldown()
207 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown()
210 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
252 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
/mirbsd/src/sys/net/
Dif_tokensubr.c214 ah = mtod(m, struct arphdr *);
302 trh = mtod(mcopy, struct token_header *);
313 l = mtod(m, struct llc *);
345 trh = mtod(mcopy, struct token_header *);
356 struct llc *l = mtod(m, struct llc *);
406 l = mtod(m, struct llc *);
423 trh = mtod(m, struct token_header *);
488 trh = mtod(m, struct token_header *);
509 l = mtod(m, struct llc *);
571 *mtod(m, struct token_header *) = *trh;
[all …]
Dppp-deflate.c249 rptr = mtod(mp, u_char *);
270 wptr = mtod(m, u_char *);
295 state->strm.avail_in = mtod(mp, u_char *) + mp->m_len - rptr;
309 state->strm.next_in = mtod(mp, u_char *);
325 state->strm.next_out = mtod(m, u_char *);
496 rptr = mtod(mi, u_char *);
503 rptr = mtod(mi, u_char *);
538 wptr = mtod(mo, u_char *);
575 state->strm.next_in = mtod(mi, u_char *);
603 state->strm.next_out = mtod(mo, u_char *);
[all …]
Dif_ppp.c748 ip = mtod(m0, struct ip *);
791 cp = mtod(m0, u_char *);
812 *mtod(m0, u_char *) = 1; /* indicates outbound */
827 *mtod(m0, u_char *) = address;
901 switch (PPP_PROTOCOL(mtod(m, u_char *))) {
998 cp = mtod(m, u_char *);
1019 ip = mtod(mp, struct ip *);
1031 cp = mtod(m, u_char *);
1067 cp = mtod(m, u_char *);
1089 if (mtod(m, u_char *) == cp) {
[all …]
Dbsd-comp.c496 m->m_len = wptr - mtod(m, u_char *); \
503 wptr = mtod(m, u_char *); \
526 rptr = mtod(mp, u_char *);
546 wptr = mtod(m, u_char *);
574 rptr = mtod(mp, u_char *);
650 m->m_len = wptr - mtod(m, u_char *);
709 rptr = mtod(dmsg, u_char *);
724 rptr = mtod(dmsg, u_char *);
841 rptr = mtod(cmp, u_char *);
852 rptr = mtod(cmp, u_char *);
[all …]
Dif_arcsubr.c202 ah = mtod(m, struct arc_header *);
235 ah = mtod(m, struct arc_header *);
250 ah = mtod(m, struct arc_header *);
262 ah = mtod(m, struct arc_header *);
321 ah = mtod(m, struct arc_header *);
339 ah = mtod(m, struct arc_header *);
377 ah1 = mtod(m1, struct arc_header *);
482 ah = mtod(m, struct arc_header *);
Dbpf_filter.c97 cp = mtod(m, u_char *) + k;
106 np = mtod(m0, u_char *);
134 cp = mtod(m, u_char *) + k;
143 return (cp[0] << 8) | mtod(m0, u_char *)[0];
237 A = mtod(m, u_char *)[k];
303 A = mtod(m, char *)[k];
323 X = (mtod(m, char *)[k] & 0xf) << 2;
Dif_ieee80211subr.c287 wh = mtod(m, struct ieee80211_frame *); in ieee80211_input()
442 wh = mtod(m, struct ieee80211_frame *); in ieee80211_input()
459 eh = mtod(m, struct ether_header *); in ieee80211_input()
597 wh = mtod(m, struct ieee80211_frame *); in ieee80211_mgmt_output()
644 memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header)); in ieee80211_encap()
657 llc = mtod(m, struct llc *); in ieee80211_encap()
667 wh = mtod(m, struct ieee80211_frame *); in ieee80211_encap()
713 memcpy(&wh, mtod(m, caddr_t), sizeof(wh)); in ieee80211_decap()
714 llc = (struct llc *)(mtod(m, caddr_t) + sizeof(wh)); in ieee80211_decap()
723 eh = mtod(m, struct ether_header *); in ieee80211_decap()
[all …]
/mirbsd/src/sys/netipx/
Dipx_usrreq.c83 struct ipx *ipx = mtod(m, struct ipx *); in ipx_input()
204 * mtod(m1, char *) = 0; in ipx_output()
216 ipx = mtod(m, struct ipx *); in ipx_output()
221 ipx = mtod(m, struct ipx *); in ipx_output()
299 *mtod(m, short *) = ipxp->ipxp_flags & mask;
305 struct ipx *ipx = mtod(m, struct ipx *);
317 *mtod(m, long *) = ipx_pexseq++;
342 ok = mtod(*value, int *);
353 = mtod(*value, struct ipx *);
Dspx_usrreq.c93 struct spx *si = mtod(m, struct spx *); in spx_input()
115 si = mtod(m, struct spx *); in spx_input()
182 sipx = mtod(am, struct sockaddr_ipx *); in spx_input()
311 struct spx *si = mtod(m0, struct spx *);
424 if (SSEQ_LT((mtod(m, struct spx *))->si_seq, si->si_ack))
553 struct spxhdr *sp = mtod(m, struct spxhdr *);
562 mtod(mm, u_short *);
592 cb->s_rhdr = *mtod(m, struct spxhdr *);
683 si = mtod(m, struct spx *);
784 *(mtod(m1, u_char *)) = 0;
[all …]

12345678