Searched refs:ip_hlen (Results 1 - 12 of 12) sorted by relevance

/freebsd-12-stable/sys/dev/ixgbe/
H A Dif_fdir.c91 int ehdrlen, ip_hlen; local
108 ip_hlen = ip->ip_hl << 2;
113 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
120 uh = (struct udphdr *)((caddr_t)ip + ip_hlen);
/freebsd-12-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c231 int ip_hlen, tcp_hlen; local
255 ip_hlen = ip->ip_hl << 2;
256 eth_hdr_len += ip_hlen;
259 ip_hlen = ip->ip_hl << 2;
260 eth_hdr_len += ip_hlen + 8;
/freebsd-12-stable/sys/dev/qlxgb/
H A Dqla_hw.c721 uint32_t ehdrlen, hdrlen = 0, ip_hlen, tcp_hlen, tcp_opt_off; local
751 ip_hlen = ip->ip_hl << 2;
755 (ip_hlen != sizeof (struct ip))) {
758 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
774 hdrlen = ehdrlen + ip_hlen + tcp_hlen;
814 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen;
843 uint32_t ehdrlen, ip_hlen; local
867 ip_hlen = sizeof (struct ip);
869 if (mp->m_len < (ehdrlen + ip_hlen)) {
888 ip_hlen
[all...]
/freebsd-12-stable/sys/dev/mxge/
H A Dif_mxge_var.h321 int ip_hlen; member in struct:mxge_pkt_info
H A Dif_mxge.c1806 pi->ip_hlen = pi->ip->ip_hl << 2;
1810 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen +
1812 m_copydata(m, 0, pi->ip_off + pi->ip_hlen +
1816 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen);
1827 pi->ip_hlen = ip6_lasthdr(m, pi->ip_off, IPPROTO_IPV6, &nxt);
1828 pi->ip_hlen -= pi->ip_off;
1835 if (pi->ip_off + pi->ip_hlen > ss->sc->max_tso6_hlen)
1838 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen +
1840 m_copydata(m, 0, pi->ip_off + pi->ip_hlen +
1844 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen);
[all...]
/freebsd-12-stable/sys/dev/qlxge/
H A Dqls_hw.c546 uint32_t ehdrlen, ip_hlen; local
568 ip_hlen = sizeof (struct ip);
570 if (mp->m_len < (ehdrlen + ip_hlen)) {
579 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) <<
593 tx_mac->phdr_length = ip_hlen + ehdrlen +
610 ip_hlen = sizeof(struct ip6_hdr);
612 if (mp->m_len < (ehdrlen + ip_hlen)) {
623 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) <<
/freebsd-12-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c504 int ip_hlen, tcp_hlen; local
528 ip_hlen = ip->ip_hl << 2;
529 eth_hdr_len += ip_hlen;
/freebsd-12-stable/sys/dev/qlxgbe/
H A Dql_hw.c2285 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen, tcp_opt_off; local
2317 ip_hlen = ip->ip_hl << 2;
2322 (ip_hlen != sizeof (struct ip))){
2327 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
2343 ip_hlen = sizeof(struct ip6_hdr);
2350 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
2363 hdrlen = ehdrlen + ip_hlen + tcp_hlen;
2380 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen;
2409 uint32_t ehdrlen, ip_hlen; local
2437 ip_hlen
[all...]
/freebsd-12-stable/sys/dev/al_eth/
H A Dal_eth.c1212 int ehdrlen, ip_hlen = 0; local
1253 ip_hlen = ip->ip_hl << 2;
1256 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
1269 ip_hlen = sizeof(struct ip6_hdr);
1270 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
1283 meta->l3_header_len = ip_hlen;
/freebsd-12-stable/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c3255 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; local
3277 ip_hlen = sizeof (struct ip);
3279 if (mp->m_len < (ehdrlen + ip_hlen)) {
3285 offset = ip_hlen + ehdrlen + (th->th_off << 2);
3291 ip_hlen = sizeof(struct ip6_hdr);
3293 if (mp->m_len < (ehdrlen + ip_hlen)) {
3299 offset = ip_hlen + ehdrlen + (th->th_off << 2);
/freebsd-12-stable/sys/dev/bce/
H A Dif_bce.c7258 int hdr_len, ip_hlen = 0, tcp_hlen = 0, ip_len = 0; local
7300 ip_hlen = ip->ip_hl << 2;
7301 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen +
7310 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
7314 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen +
7342 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen;
7345 "ip_hlen = %d, tcp_hlen = %d, ip_len = %d\n",
7346 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen,
7353 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) -
/freebsd-12-stable/sys/dev/bxe/
H A Dbxe.c4875 int e_hlen, ip_hlen, l4_off; local
4902 ip_hlen = (ip4->ip_hl << 2);
4911 ip_hlen = sizeof(struct ip6_hdr);
4921 l4_off = (e_hlen + ip_hlen);
4931 th = (struct tcphdr *)(ip + ip_hlen);
4958 int e_hlen, ip_hlen; local
4983 ip_hlen = (ip4->ip_hl << 1);
4992 ip_hlen = (sizeof(struct ip6_hdr) >> 1);
5011 pbd->ip_hlen_w = ip_hlen;
5020 th = (struct tcphdr *)(ip + (ip_hlen <<
[all...]

Completed in 332 milliseconds