gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:mtod from t2ex/bsd_source/t2ex/network/net/src_bsd/netinet/tcp_input.c (0.02 seconds)
t2ex
bsd_source/t2ex/network/net/src_bsd/netinet/tcp_input.c - 167.0KB - 4,503 lines
820:                 }
821:                 ip6 = mtod(m, struct ip6_hdr *);
822:                 icmp6_error(m, ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_ADDR,
1053: */ 1054: ip = mtod(m, struct ip *); 1055: #ifdef INET6
1062: iphlen = sizeof(struct ip); 1063: ip = mtod(m, struct ip *); 1064: IP6_EXTHDR_GET(th, struct tcphdr *, m, toff,
1080: af = AF_INET6; 1081: ip6 = mtod(m, struct ip6_hdr *); 1082: IP6_EXTHDR_GET(th, struct tcphdr *, m, toff,
1398: m_copydata(m, 0, iphlen, 1399: mtod(tcp_saveti, void *)); 1400: }
1406: tcp_saveti->m_len += sizeof(struct tcphdr); 1407: memcpy(mtod(tcp_saveti, char *) + iphlen, th, 1408: sizeof(struct tcphdr));
2857: 2858: ip = mtod(m, struct ip *); 2859: switch (ip->ip_v) { 2860: case 4: 2861: ip = mtod(m, struct ip *); 2862: ip6 = NULL;
2865: ip = NULL; 2866: ip6 = mtod(m, struct ip6_hdr *); 2867: break;
2920: 2921: switch (mtod(m, struct ip *)->ip_v) { 2922: case 4: 2923: ip = mtod(m, struct ip *); 2924: ip6 = NULL;
2927: ip = NULL; 2928: ip6 = mtod(m, struct ip6_hdr *); 2929: break;
3178: if (m->m_len > cnt) { 3179: char *cp = mtod(m, char *) + cnt; 3180: struct tcpcb *tp = sototcpcb(so);
3728: ip6_savecontrol(in6p, &in6p->in6p_options, 3729: mtod(m, struct ip6_hdr *), m); 3730: }
3771: am->m_len = src->sa_len; 3772: bcopy(src, mtod(am, void *), src->sa_len); 3773: if (inp) {
3783: struct sockaddr_in6 *sin6; 3784: sin6 = mtod(am, struct sockaddr_in6 *); 3785: am->m_len = sizeof(*sin6);
4285: m->m_pkthdr.rcvif = NULL; 4286: memset(mtod(m, u_char *), 0, tlen); 4287:
4289: case AF_INET: 4290: ip = mtod(m, struct ip *); 4291: ip->ip_v = 4;
4300: case AF_INET6: 4301: ip6 = mtod(m, struct ip6_hdr *); 4302: ip6->ip6_vfc = IPV6_VERSION;