Home
last modified time | relevance | path

Searched refs:iphlen (Results 1 – 17 of 17) sorted by relevance

/freebsd-12.1/sys/dev/netmap/
H A Dnetmap_offloadings.c97 ip6h->payload_len = htobe16(len-iphlen); in gso_fix_segment()
119 udph->len = htobe16(len-iphlen); in gso_fix_segment()
255 u_int iphlen = 0; in bdg_mismatch_datapath() local
305 iphlen = 4 * (iph->version_ihl & 0x0F); in bdg_mismatch_datapath()
310 iphlen = 40; in bdg_mismatch_datapath()
319 if (src_len < ethhlen + iphlen) { in bdg_mismatch_datapath()
329 (gso_hdr + ethhlen + iphlen); in bdg_mismatch_datapath()
331 if (src_len < ethhlen + iphlen + 20) { in bdg_mismatch_datapath()
336 gso_hdr_len = ethhlen + iphlen + in bdg_mismatch_datapath()
339 gso_hdr_len = ethhlen + iphlen + 8; /* UDP */ in bdg_mismatch_datapath()
[all …]
/freebsd-12.1/sys/netgraph/
H A Dng_tcpmss.c274 int iphlen, tcphlen, pktlen; in ng_tcpmss_rcvdata() local
311 iphlen = ip->ip_hl << 2; in ng_tcpmss_rcvdata()
312 if (iphlen < sizeof(struct ip) || iphlen > pktlen ) in ng_tcpmss_rcvdata()
320 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
322 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
326 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()
338 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
H A Dng_pptpgre.c750 int iphlen, grelen, extralen; in ng_pptpgre_rcvdata_lower() local
784 iphlen = ip->ip_hl << 2; in ng_pptpgre_rcvdata_lower()
785 if (m->m_len < iphlen + sizeof(*gre)) { in ng_pptpgre_rcvdata_lower()
786 if ((m = m_pullup(m, iphlen + sizeof(*gre))) == NULL) { in ng_pptpgre_rcvdata_lower()
794 gre = (const struct greheader *)((const u_char *)ip + iphlen); in ng_pptpgre_rcvdata_lower()
796 if (m->m_pkthdr.len < iphlen + grelen) { in ng_pptpgre_rcvdata_lower()
800 if (m->m_len < iphlen + grelen) { in ng_pptpgre_rcvdata_lower()
801 if ((m = m_pullup(m, iphlen + grelen)) == NULL) { in ng_pptpgre_rcvdata_lower()
808 gre = (const struct greheader *)((const u_char *)ip + iphlen); in ng_pptpgre_rcvdata_lower()
813 - (iphlen + grelen + gre->hasSeq * be16dec(&gre->length)); in ng_pptpgre_rcvdata_lower()
[all …]
/freebsd-12.1/sys/netinet/
H A Din_rss.c179 int iphlen; in rss_mbuf_software_hash_v4() local
206 iphlen = ip->ip_hl << 2; in rss_mbuf_software_hash_v4()
282 if (m->m_len < iphlen + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v4()
286 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
296 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
297 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
H A Dsctp_input.c88 sctp_handle_init(struct mbuf *m, int iphlen, int offset, in sctp_handle_init() argument
187 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err, in sctp_handle_init()
4567 iphlen, *offset, length, (void *)stcb); in sctp_process_control()
4842 sctp_abort_association(inp, stcb, m, iphlen, in sctp_process_control()
5142 sctp_abort_association(inp, stcb, m, iphlen, in sctp_process_control()
5173 sctp_handle_cookie_echo(m, iphlen, in sctp_process_control()
5542 calc_check = sctp_calculate_cksum(m, iphlen); in sctp_common_input_processing()
5631 sctp_send_abort(m, iphlen, src, dst, in sctp_common_input_processing()
5898 int iphlen; in sctp_input_with_port() local
5911 iphlen = off; in sctp_input_with_port()
[all …]
H A Dudp_usrreq.c403 int cscov_partial, iphlen; in udp_input() local
406 iphlen = *offp; in udp_input()
416 if (iphlen > sizeof (struct ip)) { in udp_input()
418 iphlen = sizeof(struct ip); in udp_input()
425 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input()
426 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { in udp_input()
432 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
460 ip_len = ntohs(ip->ip_len) - iphlen; in udp_input()
609 if (udp_append(last, ip, n, iphlen, in udp_input()
646 if (udp_append(last, ip, m, iphlen, udp_in) == 0) in udp_input()
[all …]
H A Dip_mroute.c2562 int iphlen = off; in pim_input() local
2564 int datalen = ntohs(ip->ip_len) - iphlen; in pim_input()
2605 m->m_data += iphlen; in pim_input()
2606 m->m_len -= iphlen; in pim_input()
2635 m->m_data -= iphlen; in pim_input()
2636 m->m_len += iphlen; in pim_input()
2710 m->m_data += (iphlen + PIM_MINLEN); in pim_input()
2711 m->m_len -= (iphlen + PIM_MINLEN); in pim_input()
2717 m->m_data -= (iphlen + PIM_MINLEN); in pim_input()
2718 m->m_len += (iphlen + PIM_MINLEN); in pim_input()
[all …]
H A Digmp.c1414 int iphlen; in igmp_input() local
1432 iphlen = *offp; in igmp_input()
1433 igmplen = ntohs(ip->ip_len) - iphlen; in igmp_input()
1448 minlen = iphlen; in igmp_input()
1463 m->m_data += iphlen; in igmp_input()
1464 m->m_len -= iphlen; in igmp_input()
1471 m->m_data -= iphlen; in igmp_input()
1472 m->m_len += iphlen; in igmp_input()
1533 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) { in igmp_input()
1541 igmpv3len = iphlen + IGMP_V3_QUERY_MINLEN + in igmp_input()
[all …]
H A Dsctp_output.c5502 int iphlen, int offset, in sctp_send_initiate_ack() argument
5557 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack()
5573 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack()
5594 sctp_send_abort(init_pkt, iphlen, src, dst, sh, in sctp_send_initiate_ack()
11529 struct mbuf *m, int len, int iphlen, int bad_crc) in sctp_send_packet_dropped() argument
11564 len -= iphlen; in sctp_send_packet_dropped()
11567 offset = iphlen + sizeof(struct sctphdr); in sctp_send_packet_dropped()
11671 m_copydata(m, iphlen, len, (caddr_t)datap); in sctp_send_packet_dropped()
12342 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, in sctp_send_abort() argument
12348 if (sctp_is_there_an_abort_here(m, iphlen, &vtag)) { in sctp_send_abort()
H A Dsctputil.c4012 struct mbuf *m, int iphlen, in sctp_abort_association() argument
4028 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err, in sctp_abort_association()
4178 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, in sctp_handle_ootb() argument
4237 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause, in sctp_handle_ootb()
4248 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t *vtagfill) in sctp_is_there_an_abort_here() argument
4255 offset = iphlen + sizeof(struct sctphdr); in sctp_is_there_an_abort_here()
H A Dsctp_indata.c2679 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, in sctp_process_data() argument
2945 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0); in sctp_process_data()
/freebsd-12.1/sys/kern/
H A Duipc_mbufhash.c129 int iphlen; in m_ether_tcpip_hash() local
135 iphlen = ip->ip_hl << 2; in m_ether_tcpip_hash()
136 if (iphlen < sizeof(*ip)) in m_ether_tcpip_hash()
138 off += iphlen; in m_ether_tcpip_hash()
/freebsd-12.1/sys/netinet6/
H A Dsctp6_usrreq.c66 int iphlen; in sctp6_input_with_port() local
79 iphlen = *offp; in sctp6_input_with_port()
107 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in sctp6_input_with_port()
109 IP6_EXTHDR_GET(sh, struct sctphdr *, m, iphlen, in sctp6_input_with_port()
133 length = ntohs(ip6->ip6_plen) + iphlen; in sctp6_input_with_port()
152 sctp_common_input_processing(&m, iphlen, offset, length, in sctp6_input_with_port()
/freebsd-12.1/sys/dev/hyperv/netvsc/
H A Dif_hn.c765 int iphlen; in hn_tso_fixup() local
769 iphlen = ip->ip_hl << 2; in hn_tso_fixup()
826 int iphlen; in hn_set_hlen() local
830 iphlen = ip->ip_hl << 2; in hn_set_hlen()
844 uint16_t off = ehlen + iphlen; in hn_set_hlen()
882 int ehlen, iphlen; in hn_check_tcpsyn() local
886 iphlen = m_head->m_pkthdr.l3hlen; in hn_check_tcpsyn()
4798 int len, iphlen, iplen; in hn_check_iplen() local
4815 iphlen = ip->ip_hl << 2; in hn_check_iplen()
4820 if (m->m_len < hoff + iphlen) in hn_check_iplen()
[all …]
/freebsd-12.1/sys/dev/vnic/
H A Dnicvf_queues.c1756 int ehdrlen, iphlen, poff, proto; in nicvf_sq_add_hdr_subdesc() local
1808 iphlen = ip->ip_hl << 2; in nicvf_sq_add_hdr_subdesc()
1809 poff = ehdrlen + iphlen; in nicvf_sq_add_hdr_subdesc()
/freebsd-12.1/sys/dev/ena/
H A Dena.c2637 int iphlen; in ena_tx_csum() local
2669 iphlen = ip->ip_hl << 2; in ena_tx_csum()
2670 th = (struct tcphdr *)((caddr_t)ip + iphlen); in ena_tx_csum()
2713 ena_meta->l3_hdr_len = iphlen; in ena_tx_csum()
/freebsd-12.1/sys/dev/oce/
H A Doce_if.c1022 int iphlen = ip->ip_hl << 2; in oce_is_pkt_dest_bmc() local
1023 struct udphdr *uh = (struct udphdr *)((caddr_t)ip + iphlen); in oce_is_pkt_dest_bmc()