HomeSort by: relevance | last modified time | path
    Searched defs:iphlen (Results 1 - 16 of 16) sorted by relevancy

  /src/sys/arch/xen/xen/
xennet_checksum.c 83 int iphlen; local in function:xennet_checksum_fill
118 iphlen = iph->ip_hl << 2;
133 iphlen = sizeof(*ip6h);
156 m->m_pkthdr.csum_data |= iphlen << 16;
166 m->m_pkthdr.csum_data |= iphlen << 16;
  /src/sys/netinet6/
in6_offload.c 54 int iphlen; local in function:tcp6_segment
83 iphlen = sizeof(*iph);
87 hlen = off + iphlen + sizeof(*th);
93 th = (void *)(mtod(m, char *) + off + iphlen);
96 hlen = off + iphlen + thlen;
147 th = (void *)(mtod(n, char *) + off + iphlen);
150 th->th_sum = in6_cksum(n, 0, off + iphlen, thlen + mss);
sctp6_usrreq.c 123 int length, mlen, offset, iphlen; local in function:sctp6_input
138 iphlen = off;
139 offset = iphlen + sizeof(*sh) + sizeof(*ch);
148 printf("V6 input gets a packet iphlen:%d pktlen:%d\n", iphlen, m->m_pkthdr.len);
174 calc_check = sctp_calculate_sum(m, &mlen, iphlen);
178 printf("Bad CSUM on SCTP packet calc_check:%x check:%x m:%p mlen:%d iphlen:%d\n",
180 mlen, iphlen);
183 stcb = sctp_findassociation_addr(m, iphlen, offset - sizeof(*ch),
187 sctp_send_packet_dropped(stcb, net, m, iphlen, 1)
    [all...]
  /src/sys/net/
ether_sw_offload.c 170 int flags, enabled, len, ehlen, iphlen, l4offset; local in function:ether_sw_offload_rx
227 iphlen = sizeof(*ip6);
229 len -= iphlen;
255 iphlen = ip->ip_hl << 2;
256 KASSERT(iphlen >= sizeof(*ip));
258 len -= iphlen;
261 if (in4_cksum(m, 0, ehlen, iphlen) != 0) {
290 l4offset = ehlen + iphlen;
if_mpls.c 536 int iphlen; local in function:mpls_unlabel_inet
553 iphlen = iph->ip_hl << 2;
556 if (m->m_len < iphlen) {
557 if ((m = m_pullup(m, iphlen)) == NULL) {
565 if (in_cksum(m, iphlen) != 0) {
583 iph->ip_sum = in_cksum(m, iphlen);
  /src/sys/netinet/
igmp.c 193 int ip_len, iphlen; local in function:igmp_input
196 iphlen = off;
203 minlen = iphlen + IGMP_MINLEN;
222 m->m_data += iphlen;
223 m->m_len -= iphlen;
226 if (in_cksum(m, ip_len - iphlen)) {
231 m->m_data -= iphlen;
232 m->m_len += iphlen;
478 rip_input(m, iphlen, proto);
in_offload.c 52 int iphlen, thlen; local in function:tcp4_segment
79 iphlen = ip->ip_hl * 4;
81 KASSERT(iphlen >= sizeof(*ip));
85 hlen = off + iphlen + sizeof(*th);
91 th = (void *)(mtod(m, char *) + off + iphlen);
94 hlen = off + iphlen + thlen;
110 ip->ip_len = htons(iphlen + thlen + mss);
148 ip->ip_sum = in4_cksum(n, 0, off, iphlen);
150 th = (void *)(mtod(n, char *) + off + iphlen);
153 th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss)
    [all...]
udp_usrreq.c 221 int iphlen, int len)
227 return udp4_input_checksum(m, uh, iphlen, len);
231 return udp6_input_checksum(m, uh, iphlen, len);
248 int iphlen, int len)
297 if (in4_cksum(m, IPPROTO_UDP, iphlen, len) != 0)
316 int iphlen = off; local in function:udp_input
328 M_REGION_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
339 m = m_copyup(m, iphlen + sizeof(struct udphdr), 0);
345 uh = (struct udphdr *)(mtod(m, char *) + iphlen);
363 if (ip_len != iphlen + len)
    [all...]
tcp_input.c 1207 int thlen, iphlen; local in function:tcp_input
1276 iphlen = sizeof(struct ip);
1289 iphlen = sizeof(struct ip6_hdr);
1508 if (iphlen + sizeof(struct tcphdr) > MHLEN)
1511 if (m->m_len > iphlen && (m->m_flags & M_EXT) == 0) {
1512 tcp_saveti = m_copym(m, 0, iphlen, M_DONTWAIT);
1520 tcp_saveti->m_len = iphlen;
1521 m_copydata(m, 0, iphlen,
1530 memcpy(mtod(tcp_saveti, char *) + iphlen, th,
dccp_usrreq.c 186 int iphlen; local in function:dccp_input
212 iphlen = off;
225 DCCP_DEBUG((LOG_INFO, "Got DCCP ipv6 packet, iphlen = %u!\n", iphlen));
227 M_REGION_GET(dh, struct dccphdr *, m, iphlen, sizeof(*dh));
241 if (iphlen > sizeof (struct ip)) {
246 iphlen = sizeof(struct ip);
253 M_REGION_GET(dh, struct dccphdr *, m, iphlen, sizeof(*dh));
401 * ip->ip_len += iphlen;
580 dp->len_rcv = m->m_len - data_off - iphlen; /* Correct length ? *
    [all...]
ip_mroute.c 2954 int iphlen; local in function:pim_input
2956 iphlen = off;
2957 datalen = ntohs(ip->ip_len) - iphlen;
2982 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN);
2997 m->m_data += iphlen;
2998 m->m_len -= iphlen;
3028 m->m_data -= iphlen;
3029 m->m_len += iphlen;
3127 m->m_data += (iphlen + PIM_MINLEN);
3128 m->m_len -= (iphlen + PIM_MINLEN)
    [all...]
sctp_input.c 97 sctp_handle_init(struct mbuf *m, int iphlen, int offset,
113 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
119 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
126 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
132 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
138 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
144 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err);
155 sctp_send_initiate_ack(inp, stcb, m, iphlen, offset, sh, cp);
294 sctp_process_init_ack(struct mbuf *m, int iphlen, int offset,
312 sctp_send_operr_to(m, iphlen, op_err, cp->init.initiate_tag)
4050 int iphlen; local in function:sctp_input
    [all...]
  /src/sys/netipsec/
xform_ipip.c 118 _ipip_input(struct mbuf *m, int iphlen)
183 m_adj(m, iphlen);
325 int error, iphlen; local in function:ipip_output
365 iphlen = sizeof(struct ip);
449 iphlen = sizeof(struct ip6_hdr);
506 IPIP_STATADD(IPIP_STAT_OBYTES, m->m_pkthdr.len - iphlen);
ipsec_output.c 154 int hlen, roff, iphlen; local in function:ipsec_process_done
170 iphlen = ip->ip_hl << 2;
177 iphlen = sizeof(*ip6);
201 udp->uh_ulen = htons(m->m_pkthdr.len - iphlen);
  /src/sys/dev/pci/
if_ena.c 2678 int iphlen; local in function:ena_tx_csum
2715 iphlen = ip->ip_hl << 2;
2716 th = (struct tcphdr *)((vaddr_t)ip + iphlen);
2759 ena_meta->l3_hdr_len = iphlen;
  /src/sys/dev/pci/igc/
if_igc.c 3184 uint32_t ehlen, iphlen; local in function:igc_tx_ctx_setup
3231 iphlen = M_CSUM_DATA_IPv4_IPHL(mp->m_pkthdr.csum_data);
3245 KASSERT(mp->m_len >= ehlen + iphlen + sizeof(*th));
3246 th = (void *)((char *)ip + iphlen);
3251 iphlen = M_CSUM_DATA_IPv6_IPHL(mp->m_pkthdr.csum_data);
3262 KASSERT(mp->m_len >= ehlen + iphlen + sizeof(*th));
3263 th = (void *)((char *)ip6 + iphlen);
3273 iphlen = 0;
3288 mp->m_pkthdr.len - ehlen - iphlen - tcphlen;
3298 vlan_macip_lens |= iphlen;
    [all...]

Completed in 28 milliseconds