/freebsd-12-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 91 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 D | mlx5_en_tx.c | 231 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 D | qla_hw.c | 721 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 D | if_mxge_var.h | 321 int ip_hlen; member in struct:mxge_pkt_info
|
H A D | if_mxge.c | 1806 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 D | qls_hw.c | 546 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 D | mlx4_en_tx.c | 504 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 D | ql_hw.c | 2285 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 D | al_eth.c | 1212 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 D | qlnx_os.c | 3255 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 D | if_bce.c | 7258 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 D | bxe.c | 4875 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...] |