| /src/sys/net/ |
| ether_sw_offload.c | 170 int flags, enabled, len, ehlen, iphlen, l4offset; local 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 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/arch/xen/xen/ |
| xennet_checksum.c | 83 int iphlen; local 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/netinet/ |
| in_offload.c | 52 int iphlen, thlen; local 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...] |
| igmp.c | 193 int ip_len, iphlen; local 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);
|
| 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 [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 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...] |
| ip_mroute.c | 2954 int iphlen; local 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...] |
| dccp_usrreq.c | 186 int iphlen; local 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...] |
| tcp_input.c | 1207 int thlen, iphlen; local 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,
|
| sctputil.c | 2660 struct mbuf *m, int iphlen, struct sctphdr *sh, struct mbuf *op_err) 2670 sctp_send_abort(m, iphlen, sh, vtag, op_err); 2707 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, struct sctphdr *sh, 2741 sctp_send_shutdown_complete2(m, iphlen, sh); 2750 sctp_send_abort(m, iphlen, sh, 0, op_err); 2758 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, int *vtagfill) 2765 offset = iphlen + sizeof(struct sctphdr);
|
| sctp_output.c | 2898 * beginning of the params i.e. (iphlen + sizeof(struct sctp_init_msg) 3098 struct mbuf *in_initpkt, int iphlen, int offset) 3246 struct mbuf *init_pkt, int iphlen, int offset, struct sctphdr *sh, 3278 (sctp_are_there_new_addresses(asoc, init_pkt, iphlen, offset))) { 3285 sctp_send_abort(init_pkt, iphlen, sh, 0, NULL); 3293 sctp_send_abort(init_pkt, iphlen, sh, init_chk->init.initiate_tag, op_err); 3339 sctp_send_abort(init_pkt, iphlen, sh, 0, NULL); 8037 sctp_send_shutdown_complete2(struct mbuf *m, int iphlen, struct sctphdr *sh) 8478 struct mbuf *m, int iphlen, int bad_crc) 8512 len = chk->send_size = (iph->ip_len - iphlen); [all...] |
| sctp_pcb.c | 375 sctp_findassociation_ep_asconf(struct mbuf *m, int iphlen, int offset, 974 sctp_findassociation_special_addr(struct mbuf *m, int iphlen, int offset, 1123 sctp_findassociation_addr(struct mbuf *m, int iphlen, int offset, 1254 retval = sctp_findassociation_special_addr(m, iphlen, 3894 int iphlen, int offset, int limit, struct sctphdr *sh,
|
| sctp_indata.c | 2499 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, 2578 printf("In process data off:%d length:%d iphlen:%d ch->type:%d\n", 2579 *offset, length, iphlen, (int)ch->ch.chunk_type); 2609 sctp_abort_association(inp, stcb, m, iphlen, sh, 2666 sctp_send_packet_dropped(stcb, net, *mm, iphlen, 0);
|
| /src/sys/netinet6/ |
| in6_offload.c | 54 int iphlen; local 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 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/netipsec/ |
| xform_ipip.c | 118 _ipip_input(struct mbuf *m, int iphlen) 183 m_adj(m, iphlen); 325 int error, iphlen; local 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 170 iphlen = ip->ip_hl << 2; 177 iphlen = sizeof(*ip6); 201 udp->uh_ulen = htons(m->m_pkthdr.len - iphlen);
|
| /src/sys/dev/pci/igc/ |
| if_igc.c | 3186 uint32_t ehlen, iphlen; local 3233 iphlen = M_CSUM_DATA_IPv4_IPHL(mp->m_pkthdr.csum_data); 3247 KASSERT(mp->m_len >= ehlen + iphlen + sizeof(*th)); 3248 th = (void *)((char *)ip + iphlen); 3253 iphlen = M_CSUM_DATA_IPv6_IPHL(mp->m_pkthdr.csum_data); 3264 KASSERT(mp->m_len >= ehlen + iphlen + sizeof(*th)); 3265 th = (void *)((char *)ip6 + iphlen); 3275 iphlen = 0; 3290 mp->m_pkthdr.len - ehlen - iphlen - tcphlen; 3300 vlan_macip_lens |= iphlen; [all...] |
| /src/sys/dev/pci/ |
| if_ena.c | 2678 int iphlen; local 2715 iphlen = ip->ip_hl << 2; 2716 th = (struct tcphdr *)((vaddr_t)ip + iphlen); 2759 ena_meta->l3_hdr_len = iphlen;
|