Home
last modified time | relevance | path

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

/external/qemu/slirp/
Dip_icmp.c74 register struct ip *ip=mtod(m, struct ip *); in icmp_input()
97 icp = mtod(m, struct icmp *); in icmp_input()
220 ip = mtod(msrc, struct ip *); in icmp_error()
251 ip = mtod(m, struct ip *); in icmp_error()
258 icp = mtod(m, struct icmp *); in icmp_error()
322 register struct ip *ip = mtod(m, struct ip *); in icmp_reflect()
333 icp = mtod(m, struct icmp *); in icmp_reflect()
Dip_output.c73 ip = mtod(m, struct ip *); in ip_output()
142 mhip = mtod(m, struct ip *); in ip_output()
Dudp.c104 ip = mtod(m, struct ip *); in udp_input()
278 ui = mtod(m, struct udpiphdr *); in udp_output2()
467 omsg = mtod(m, CTL_MSG_OLD*); in udp_emu()
475 nmsg = mtod(m, CTL_MSG *); in udp_emu()
620 cu_head = mtod(m, struct cu_header *); in udp_emu()
Dip_input.c92 ip = mtod(m, struct ip *); in ip_input()
294 fp = mtod(t, struct ipq *); in ip_reass()
503 register struct ip *ip = mtod(m, struct ip *);
707 struct ip *ip = mtod(m, struct ip *);
Dmbuf.h46 #define mtod(m,t) ((t)(m)->m_data) macro
Dcksum.c65 w = mtod(m, u_int16_t *); in cksum()
Dtcp_output.c361 sbcopy(&so->so_snd, off, (int) len, mtod(m, caddr_t) + hdrlen);
398 ti = mtod(m, struct tcpiphdr *);
Dtcp_input.c278 ti = mtod(m, struct tcpiphdr *); in tcp_input()
290 ip=mtod(m, struct ip *); in tcp_input()
324 optp = mtod(m, caddr_t) + sizeof (struct tcpiphdr); in tcp_input()
1584 char *cp = mtod(m, caddr_t) + cnt;
Dtcp_subr.c128 *mtod(m, struct tcpiphdr *) = *ti; in tcp_respond()
129 ti = mtod(m, struct tcpiphdr *); in tcp_respond()
883 rxdata=mtod(m, char *); in tcp_emu()
Dbootp.c321 struct bootp_t *bp = mtod(m, struct bootp_t *); in bootp_input()
/external/qemu/slirp-android/
Dip_icmp.c75 register struct ip *ip=mtod(m, struct ip *); in icmp_input()
98 icp = mtod(m, struct icmp *); in icmp_input()
222 ip = mtod(msrc, struct ip *); in icmp_error()
253 ip = mtod(m, struct ip *); in icmp_error()
260 icp = mtod(m, struct icmp *); in icmp_error()
324 register struct ip *ip = mtod(m, struct ip *); in icmp_reflect()
335 icp = mtod(m, struct icmp *); in icmp_reflect()
Dip_output.c73 ip = mtod(m, struct ip *); in ip_output()
142 mhip = mtod(m, struct ip *); in ip_output()
Dudp.c106 ip = mtod(m, struct ip *); in udp_input()
285 ui = mtod(m, struct udpiphdr *); in udp_output2_()
421 cu_head = mtod(m, struct cu_header *); in udp_emu()
Dip_input.c92 ip = mtod(m, struct ip *); in ip_input()
294 fp = mtod(t, struct ipq *); in ip_reass()
503 register struct ip *ip = mtod(m, struct ip *);
707 struct ip *ip = mtod(m, struct ip *);
Dmbuf.h46 #define mtod(m,t) ((t)(m)->m_data) macro
Dcksum.c65 w = mtod(m, u_int16_t *); in cksum()
Dtcp_output.c361 sbcopy(&so->so_snd, off, (int) len, mtod(m, caddr_t) + hdrlen);
398 ti = mtod(m, struct tcpiphdr *);
Dtcp_input.c278 ti = mtod(m, struct tcpiphdr *); in tcp_input()
290 ip=mtod(m, struct ip *); in tcp_input()
324 optp = mtod(m, caddr_t) + sizeof (struct tcpiphdr); in tcp_input()
1589 char *cp = mtod(m, caddr_t) + cnt;
Dbootp.c325 struct bootp_t *bp = mtod(m, struct bootp_t *); in bootp_input()
Dtcp_subr.c130 *mtod(m, struct tcpiphdr *) = *ti; in tcp_respond()
131 ti = mtod(m, struct tcpiphdr *); in tcp_respond()
/external/libpcap/bpf/net/
Dbpf_filter.c67 # define mtod(m,t) ((t)(m)->b_rptr) macro
142 cp = mtod(m, u_char *) + k;
151 np = mtod(m0, u_char *);
178 cp = mtod(m, u_char *) + k;
187 return (cp[0] << 8) | mtod(m0, u_char *)[0];
217 p = mtod(m, u_char *);
289 A = mtod(n, u_char *)[k];
348 A = mtod(n, u_char *)[k];
365 X = (mtod(n, char *)[k] & 0xf) << 2;
/external/ipsec-tools/src/libipsec/
Dkey_debug.c769 printf("%02x", mtod(m, u_char *)[i]);