/freebsd-9.3-release/sys/ofed/drivers/net/mlx4/ |
H A D | en_frag.c | 130 u16 ip_hlen; local 137 ip_hlen = iph->ip_hl * 4; 138 data_len = ip_len - ip_hlen; 144 if (unlikely(in_cksum_skip(mb, ip_hlen, (char *)iph - mb->m_data))) { 151 offset + ip_hlen ||
|
H A D | en_tx.c | 524 int ip_hlen, tcp_hlen; local 533 ip_hlen = ip->ip_hl << 2; 534 len += ip_hlen;
|
/freebsd-9.3-release/sys/dev/qlxgb/ |
H A D | qla_hw.c | 719 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen; local 741 ip_hlen = ip->ip_hl << 2; 747 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 761 hdrlen = ehdrlen + ip_hlen + tcp_hlen; 769 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; 794 uint32_t ehdrlen, ip_hlen; local 818 ip_hlen = ip->ip_hl << 2; 820 if (mp->m_len < (ehdrlen + ip_hlen)) { 839 ip_hlen = sizeof(struct ip6_hdr); 841 if (mp->m_len < (ehdrlen + ip_hlen)) { [all...] |
/freebsd-9.3-release/sys/dev/qlxgbe/ |
H A D | ql_hw.c | 1343 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen, tcp_opt_off; local 1375 ip_hlen = ip->ip_hl << 2; 1380 (ip_hlen != sizeof (struct ip))){ 1385 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 1401 ip_hlen = sizeof(struct ip6_hdr); 1408 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); 1421 hdrlen = ehdrlen + ip_hlen + tcp_hlen; 1438 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; 1467 uint32_t ehdrlen, ip_hlen; local 1494 ip_hlen [all...] |
/freebsd-9.3-release/sys/dev/mxge/ |
H A D | if_mxge_var.h | 311 int ip_hlen; member in struct:mxge_pkt_info
|
H A D | if_mxge.c | 1803 pi->ip_hlen = pi->ip->ip_hl << 2; 1807 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + 1809 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + 1813 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen); 1824 pi->ip_hlen = ip6_lasthdr(m, pi->ip_off, IPPROTO_IPV6, &nxt); 1825 pi->ip_hlen -= pi->ip_off; 1832 if (pi->ip_off + pi->ip_hlen > ss->sc->max_tso6_hlen) 1835 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + 1837 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + 1841 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen); [all...] |
/freebsd-9.3-release/sys/dev/qlxge/ |
H A D | qls_hw.c | 544 uint32_t ehdrlen, ip_hlen; local 566 ip_hlen = sizeof (struct ip); 568 if (mp->m_len < (ehdrlen + ip_hlen)) { 577 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << 591 tx_mac->phdr_length = ip_hlen + ehdrlen + 608 ip_hlen = sizeof(struct ip6_hdr); 610 if (mp->m_len < (ehdrlen + ip_hlen)) { 621 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) <<
|
/freebsd-9.3-release/sys/dev/ixgbe/ |
H A D | ixgbe.c | 3283 int ehdrlen, ip_hlen = 0; local 3334 ip_hlen = ip->ip_hl << 2; 3340 ip_hlen = sizeof(struct ip6_hdr); 3350 vlan_macip_lens |= ip_hlen; 3407 int ctxd, ehdrlen, ip_hlen, tcp_hlen; local 3438 ip_hlen = sizeof(struct ip6_hdr); 3440 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); 3451 ip_hlen = ip->ip_hl << 2; 3452 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 3472 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen 3528 int ehdrlen, ip_hlen; local [all...] |
H A D | ixv.c | 2387 int ehdrlen, ip_hlen = 0; local 2432 ip_hlen = ip->ip_hl << 2; 2433 if (mp->m_len < ehdrlen + ip_hlen) 2440 ip_hlen = sizeof(struct ip6_hdr); 2441 if (mp->m_len < ehdrlen + ip_hlen) 2451 vlan_macip_lens |= ip_hlen; 2509 int ctxd, ehdrlen, hdrlen, ip_hlen, tcp_hlen; local 2537 ip_hlen = ip->ip_hl << 2; 2538 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 2542 hdrlen = ehdrlen + ip_hlen [all...] |
/freebsd-9.3-release/sys/dev/e1000/ |
H A D | if_igb.c | 3721 int ctxd, ip_hlen, tcp_hlen; local 3728 ip_hlen = ip->ip_hl << 2; 3738 vlan_macip_lens |= ip_hlen; 3784 int ehdrlen, ctxd, ip_hlen = 0; local 3828 ip_hlen = ip->ip_hl << 2; 3829 if (mp->m_len < ehdrlen + ip_hlen) { 3838 ip_hlen = sizeof(struct ip6_hdr); 3847 vlan_macip_lens |= ip_hlen;
|
H A D | if_lem.c | 2835 u32 cmd, hdr_len, ip_hlen; local 2865 ip_hlen = ip->ip_hl << 2; 2878 htole16(ehdrlen + ip_hlen); 2885 hdr_len = ehdrlen + ip_hlen; 2891 ip_hlen = sizeof(struct ip6_hdr); /* XXX: No header stacking. */ 2895 hdr_len = ehdrlen + ip_hlen;
|
/freebsd-9.3-release/sys/dev/bce/ |
H A D | if_bce.c | 7238 int hdr_len, ip_hlen = 0, tcp_hlen = 0, ip_len = 0; local 7280 ip_hlen = ip->ip_hl << 2; 7281 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen + 7290 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 7294 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen + 7322 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen; 7325 "ip_hlen = %d, tcp_hlen = %d, ip_len = %d\n", 7326 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen, 7333 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) -
|
/freebsd-9.3-release/sys/dev/bxe/ |
H A D | bxe.c | 5123 int e_hlen, ip_hlen, l4_off; local 5150 ip_hlen = (ip4->ip_hl << 2); 5159 ip_hlen = sizeof(struct ip6_hdr); 5169 l4_off = (e_hlen + ip_hlen); 5179 th = (struct tcphdr *)(ip + ip_hlen); 5206 int e_hlen, ip_hlen; local 5231 ip_hlen = (ip4->ip_hl << 1); 5240 ip_hlen = (sizeof(struct ip6_hdr) >> 1); 5259 pbd->ip_hlen_w = ip_hlen; 5268 th = (struct tcphdr *)(ip + (ip_hlen << [all...] |