Home
last modified time | relevance | path

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

/freebsd-13.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-13.1/sys/netgraph/
H A Dng_tcpmss.c273 int iphlen, tcphlen, pktlen; in ng_tcpmss_rcvdata() local
310 iphlen = ip->ip_hl << 2; in ng_tcpmss_rcvdata()
311 if (iphlen < sizeof(struct ip) || iphlen > pktlen ) in ng_tcpmss_rcvdata()
319 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
321 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
325 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()
337 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-13.1/sys/netinet/
H A Din_rss.c221 int iphlen; in rss_mbuf_software_hash_v4() local
248 iphlen = ip->ip_hl << 2; in rss_mbuf_software_hash_v4()
324 if (m->m_len < iphlen + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v4()
328 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
338 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
339 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
H A Dsctp_input.c86 sctp_handle_init(struct mbuf *m, int iphlen, int offset, in sctp_handle_init() argument
146 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err, in sctp_handle_init()
4344 iphlen, *offset, length, (void *)stcb); in sctp_process_control()
4641 ret = sctp_handle_init_ack(m, iphlen, *offset, in sctp_process_control()
4886 sctp_abort_association(inp, stcb, m, iphlen, in sctp_process_control()
4918 sctp_handle_cookie_echo(m, iphlen, in sctp_process_control()
5280 calc_check = sctp_calculate_cksum(m, iphlen); in sctp_common_input_processing()
5371 sctp_send_abort(m, iphlen, src, dst, in sctp_common_input_processing()
5639 int iphlen; in sctp_input_with_port() local
5652 iphlen = off; in sctp_input_with_port()
[all …]
H A Dudp_usrreq.c405 int cscov_partial, iphlen; in udp_input() local
408 iphlen = *offp; in udp_input()
418 if (iphlen > sizeof (struct ip)) { in udp_input()
420 iphlen = sizeof(struct ip); in udp_input()
426 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input()
427 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { in udp_input()
433 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
461 ip_len = ntohs(ip->ip_len) - iphlen; in udp_input()
611 if (udp_append(last, ip, n, iphlen, in udp_input()
651 if (udp_append(last, ip, m, iphlen, udp_in) == 0) in udp_input()
[all …]
H A Dip_mroute.c2560 int iphlen = off; in pim_input() local
2562 int datalen = ntohs(ip->ip_len) - iphlen; in pim_input()
2603 m->m_data += iphlen; in pim_input()
2604 m->m_len -= iphlen; in pim_input()
2633 m->m_data -= iphlen; in pim_input()
2634 m->m_len += iphlen; in pim_input()
2708 m->m_data += (iphlen + PIM_MINLEN); in pim_input()
2709 m->m_len -= (iphlen + PIM_MINLEN); in pim_input()
2715 m->m_data -= (iphlen + PIM_MINLEN); in pim_input()
2716 m->m_len += (iphlen + PIM_MINLEN); in pim_input()
[all …]
H A Digmp.c1471 int iphlen; in igmp_input() local
1489 iphlen = *offp; in igmp_input()
1490 igmplen = ntohs(ip->ip_len) - iphlen; in igmp_input()
1505 minlen = iphlen; in igmp_input()
1520 m->m_data += iphlen; in igmp_input()
1521 m->m_len -= iphlen; in igmp_input()
1528 m->m_data -= iphlen; in igmp_input()
1529 m->m_len += iphlen; in igmp_input()
1590 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) { in igmp_input()
1599 igmpv3len = iphlen + IGMP_V3_QUERY_MINLEN + in igmp_input()
[all …]
H A Dsctp_output.c5459 int iphlen, int offset, in sctp_send_initiate_ack() argument
5508 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack()
5524 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack()
5545 sctp_send_abort(init_pkt, iphlen, src, dst, sh, in sctp_send_initiate_ack()
11458 struct mbuf *m, int len, int iphlen, int bad_crc) in sctp_send_packet_dropped() argument
11493 len -= iphlen; in sctp_send_packet_dropped()
11496 offset = iphlen + sizeof(struct sctphdr); in sctp_send_packet_dropped()
11600 m_copydata(m, iphlen, len, (caddr_t)datap); in sctp_send_packet_dropped()
12279 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, in sctp_send_abort() argument
12285 if (sctp_is_there_an_abort_here(m, iphlen, &vtag)) { in sctp_send_abort()
H A Dsctputil.c4362 struct mbuf *m, int iphlen, in sctp_abort_association() argument
4385 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err, in sctp_abort_association()
4508 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, in sctp_handle_ootb() argument
4567 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause, in sctp_handle_ootb()
4578 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t *vtag) in sctp_is_there_an_abort_here() argument
4585 offset = iphlen + sizeof(struct sctphdr); in sctp_is_there_an_abort_here()
H A Dsctp_indata.c2649 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, in sctp_process_data() argument
2913 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0); in sctp_process_data()
/freebsd-13.1/sys/kern/
H A Duipc_mbufhash.c110 int iphlen; in m_tcpip_hash() local
116 iphlen = ip->ip_hl << 2; in m_tcpip_hash()
117 if (iphlen < sizeof(*ip)) in m_tcpip_hash()
119 off += iphlen; in m_tcpip_hash()
/freebsd-13.1/sys/dev/ena/
H A Dena_datapath.c719 int iphlen; in ena_tx_csum() local
764 iphlen = ip->ip_hl << 2; in ena_tx_csum()
772 iphlen = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &ipproto); in ena_tx_csum()
773 iphlen -= ehdrlen; in ena_tx_csum()
777 iphlen = 0; in ena_tx_csum()
782 mbuf_next = m_getptr(mbuf, iphlen + ehdrlen, &offset); in ena_tx_csum()
813 ena_meta->l3_hdr_len = iphlen; in ena_tx_csum()
/freebsd-13.1/sys/netinet6/
H A Dsctp6_usrreq.c64 int iphlen; in sctp6_input_with_port() local
77 iphlen = *offp; in sctp6_input_with_port()
105 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in sctp6_input_with_port()
114 sh = (struct sctphdr *)(mtod(m, caddr_t)+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-13.1/sys/dev/hyperv/netvsc/
H A Dif_hn.c786 int iphlen; in hn_tso_fixup() local
790 iphlen = ip->ip_hl << 2; in hn_tso_fixup()
847 int iphlen; in hn_set_hlen() local
851 iphlen = ip->ip_hl << 2; in hn_set_hlen()
865 uint16_t off = ehlen + iphlen; in hn_set_hlen()
903 int ehlen, iphlen; in hn_check_tcpsyn() local
907 iphlen = m_head->m_pkthdr.l3hlen; in hn_check_tcpsyn()
4847 int len, iphlen, iplen; in hn_check_iplen() local
4864 iphlen = ip->ip_hl << 2; in hn_check_iplen()
4869 if (m->m_len < hoff + iphlen) in hn_check_iplen()
[all …]
/freebsd-13.1/sys/dev/vnic/
H A Dnicvf_queues.c1754 int ehdrlen, iphlen, poff, proto; in nicvf_sq_add_hdr_subdesc() local
1806 iphlen = ip->ip_hl << 2; in nicvf_sq_add_hdr_subdesc()
1807 poff = ehdrlen + iphlen; in nicvf_sq_add_hdr_subdesc()
/freebsd-13.1/sys/dev/oce/
H A Doce_if.c996 int iphlen = ip->ip_hl << 2; in oce_is_pkt_dest_bmc() local
997 struct udphdr *uh = (struct udphdr *)((caddr_t)ip + iphlen); in oce_is_pkt_dest_bmc()