/freebsd-current/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 73 gso_fix_segment(uint8_t *pkt, size_t len, u_int ipv4, u_int iphlen, u_int tcp, argument 96 ip6h->payload_len = htobe16(len-iphlen); 100 struct nm_tcphdr *tcph = (struct nm_tcphdr *)(pkt + iphlen); 115 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen); 118 udph->len = htobe16(len-iphlen); 127 nm_os_csum_tcpudp_ipv4(iph, check_data, len-iphlen, check); 129 nm_os_csum_tcpudp_ipv6(ip6h, check_data, len-iphlen, check); 254 u_int iphlen = 0; local 304 iphlen = 4 * (iph->version_ihl & 0x0F); 309 iphlen [all...] |
/freebsd-current/sys/netgraph/ |
H A D | ng_tcpmss.c | 277 int iphlen, tcphlen, pktlen; local 314 iphlen = ip->ip_hl << 2; 315 if (iphlen < sizeof(struct ip) || iphlen > pktlen ) 323 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); 325 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); 329 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) 341 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
|
H A D | ng_pptpgre.c | 754 int iphlen, grelen, extralen; local 788 iphlen = ip->ip_hl << 2; 789 if (m->m_len < iphlen + sizeof(*gre)) { 790 if ((m = m_pullup(m, iphlen + sizeof(*gre))) == NULL) { 798 gre = (const struct greheader *)((const u_char *)ip + iphlen); 800 if (m->m_pkthdr.len < iphlen + grelen) { 804 if (m->m_len < iphlen + grelen) { 805 if ((m = m_pullup(m, iphlen + grelen)) == NULL) { 812 gre = (const struct greheader *)((const u_char *)ip + iphlen); 817 - (iphlen [all...] |
/freebsd-current/sys/netinet/ |
H A D | in_rss.c | 212 int iphlen; local 239 iphlen = ip->ip_hl << 2; 314 if (m->m_len < iphlen + sizeof(struct tcphdr)) { 318 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); 328 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); 329 if (m->m_len < iphlen + sizeof(struct udphdr)) {
|
H A D | sctp_input.c | 83 sctp_handle_init(struct mbuf *m, int iphlen, int offset, argument 108 sctp_send_abort(m, iphlen, src, dst, sh, init->initiate_tag, op_err, 118 sctp_send_abort(m, iphlen, src, dst, sh, init->initiate_tag, op_err, 143 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err, 156 sctp_send_initiate_ack(inp, stcb, net, m, iphlen, offset, 389 sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, argument 412 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, 440 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, 456 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, 476 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, 1244 sctp_handle_init_ack(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_ack_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id) argument 1347 sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, struct sockaddr *init_src, int *notification, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 1955 sctp_process_cookie_new(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, struct sctp_inpcb *inp, struct sctp_nets **netp, struct sockaddr *init_src, int *notification, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 2235 sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp, struct sctp_inpcb **inp_p, struct sctp_tcb **stcb, struct sctp_nets **netp, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, struct sctp_tcb **locked_tcb, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 4310 sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, uint8_t mflowtype, uint32_t mflowid, uint16_t fibnum, uint32_t vrf_id, uint16_t port) argument 5248 sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_chunkhdr *ch, uint8_t compute_crc, uint8_t ecn_bits, uint8_t mflowtype, uint32_t mflowid, uint16_t fibnum, uint32_t vrf_id, uint16_t port) argument 5705 int iphlen; local [all...] |
H A D | ip_mroute.c | 2495 int iphlen = off; local 2497 int datalen = ntohs(ip->ip_len) - iphlen; 2523 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN); 2538 m->m_data += iphlen; 2539 m->m_len -= iphlen; 2568 m->m_data -= iphlen; 2569 m->m_len += iphlen; 2643 m->m_data += (iphlen + PIM_MINLEN); 2644 m->m_len -= (iphlen + PIM_MINLEN); 2650 m->m_data -= (iphlen [all...] |
H A D | udp_usrreq.c | 456 int cscov_partial, iphlen; local 459 iphlen = *offp; 469 if (iphlen > sizeof (struct ip)) { 471 iphlen = sizeof(struct ip); 477 if (m->m_len < iphlen + sizeof(struct udphdr)) { 478 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { 484 uh = (struct udphdr *)((caddr_t)ip + iphlen); 512 ip_len = ntohs(ip->ip_len) - iphlen; 668 if (udp_append(inp, ip, m, iphlen, udp_in) == 0)
|
H A D | igmp.c | 1460 int iphlen; local 1478 iphlen = *offp; 1479 igmplen = ntohs(ip->ip_len) - iphlen; 1494 minlen = iphlen; 1509 m->m_data += iphlen; 1510 m->m_len -= iphlen; 1517 m->m_data -= iphlen; 1518 m->m_len += iphlen; 1579 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) { 1588 igmpv3len = iphlen [all...] |
H A D | sctp_output.c | 4926 * being equal to the beginning of the params i.e. (iphlen + 5500 int iphlen, int offset, 5552 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, 5568 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, 5589 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 11544 struct mbuf *m, int len, int iphlen, int bad_crc) 11579 len -= iphlen; 11582 offset = iphlen + sizeof(struct sctphdr); 11686 m_copydata(m, iphlen, len, (caddr_t)datap); 12365 sctp_send_abort(struct mbuf *m, int iphlen, struc argument 5498 sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *src_net, struct mbuf *init_pkt, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_chunk *init_chk, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 11543 sctp_send_packet_dropped(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, int len, int iphlen, int bad_crc) argument [all...] |
H A D | sctputil.c | 4396 struct mbuf *m, int iphlen, 4419 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err, 4542 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, argument 4601 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause, 4612 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t *vtag) argument 4619 offset = iphlen + sizeof(struct sctphdr); 4395 sctp_abort_association(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct mbuf *op_err, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
|
H A D | sctp_indata.c | 2651 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, argument 2915 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0);
|
/freebsd-current/sys/kern/ |
H A D | uipc_mbufhash.c | 108 int iphlen; local 114 iphlen = ip->ip_hl << 2; 115 if (iphlen < sizeof(*ip)) 117 off += iphlen;
|
/freebsd-current/sys/dev/ena/ |
H A D | ena_datapath.c | 712 int iphlen; local 757 iphlen = ip->ip_hl << 2; 765 iphlen = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &ipproto); 766 iphlen -= ehdrlen; 770 iphlen = 0; 775 mbuf_next = m_getptr(mbuf, iphlen + ehdrlen, &offset); 806 ena_meta->l3_hdr_len = iphlen;
|
/freebsd-current/sys/netinet6/ |
H A D | sctp6_usrreq.c | 61 int iphlen; local 74 iphlen = *offp; 102 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); 111 sh = (struct sctphdr *)(mtod(m, caddr_t)+iphlen); 130 length = ntohs(ip6->ip6_plen) + iphlen; 149 sctp_common_input_processing(&m, iphlen, offset, length,
|
/freebsd-current/sys/dev/irdma/ |
H A D | irdma_utils.c | 1388 u16 iphlen; local 1392 iphlen = (buf->ipv4) ? 20 : 40; 1394 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); 1395 pktsize = len + buf->tcphlen + iphlen; 1434 u16 iphlen; local 1446 iphlen = (info->l3proto) ? 40 : 20; 1450 buf->tcph = buf->iph + iphlen; 1457 pkt_len = ntohs(ip6h->ip6_plen) + iphlen; 1470 buf->datalen = pkt_len - iphlen - buf->tcphlen; 1472 buf->hdrlen = buf->maclen + iphlen [all...] |
/freebsd-current/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 776 int iphlen; local 780 iphlen = ip->ip_hl << 2; 781 m_head->m_pkthdr.l3hlen = iphlen; 783 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th)); 784 th = mtodo(m_head, ehlen + iphlen); 837 int iphlen; local 841 iphlen = ip->ip_hl << 2; 842 m_head->m_pkthdr.l3hlen = iphlen; 855 uint16_t off = ehlen + iphlen; 893 int ehlen, iphlen; local 4829 int len, iphlen, iplen; local [all...] |
/freebsd-current/sys/dev/mana/ |
H A D | mana_en.c | 710 int iphlen; local 714 iphlen = ip->ip_hl << 2; 715 mbuf->m_pkthdr.l3hlen = ehlen + iphlen; 717 PULLUP_HDR(mbuf, ehlen + iphlen + sizeof(*th)); 718 th = mtodo(mbuf, ehlen + iphlen); 778 int iphlen; local 781 iphlen = ip->ip_hl << 2; 782 mbuf->m_pkthdr.l3hlen = ehlen + iphlen;
|
/freebsd-current/sys/dev/vnic/ |
H A D | nicvf_queues.c | 1757 int iphlen; local 1812 iphlen = ip->ip_hl << 2; 1813 poff = ehdrlen + iphlen;
|
/freebsd-current/sys/dev/oce/ |
H A D | oce_if.c | 995 int iphlen = ip->ip_hl << 2; local 996 struct udphdr *uh = (struct udphdr *)((caddr_t)ip + iphlen);
|