| /freebsd-12-stable/sys/dev/mlx5/mlx5_en/ |
| D | mlx5_en_tx.c | 179 if (unlikely(mb->m_len < ETHER_HDR_LEN)) { in mlx5e_get_l2_header_size() 182 if (unlikely(mb->m_len < (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN))) in mlx5e_get_l2_header_size() 185 min_inline = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in mlx5e_get_l2_header_size() 188 min_inline = ETHER_HDR_LEN; in mlx5e_get_l2_header_size() 237 if (unlikely(mb->m_len < ETHER_HDR_LEN)) in mlx5e_get_full_header_size() 240 if (unlikely(mb->m_len < (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN))) in mlx5e_get_full_header_size() 243 eth_hdr_len = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in mlx5e_get_full_header_size() 246 eth_hdr_len = ETHER_HDR_LEN; in mlx5e_get_full_header_size() 430 } else if (unlikely(ihs < ETHER_HDR_LEN)) { in mlx5e_sq_xmit() 434 m_copydata(mb, 0, ETHER_HDR_LEN, (caddr_t)eh); in mlx5e_sq_xmit() [all …]
|
| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | ip_fw_bpf.c | 94 if (ifp->if_hdrlen == ETHER_HDR_LEN) in ipfw_clone_destroy() 118 ifp->if_hdrlen = ETHER_HDR_LEN; in ipfw_clone_create() 120 bpfattach(ifp, DLT_EN10MB, ETHER_HDR_LEN); in ipfw_clone_create() 169 if (dlen == ETHER_HDR_LEN) { in ipfw_bpf_mtap2()
|
| D | ip_fw_log.c | 111 ipfw_bpf_mtap2(args->eh, ETHER_HDR_LEN, m); in ipfw_log() 118 ETHER_HDR_LEN, m); in ipfw_log() 121 ETHER_HDR_LEN, m); in ipfw_log() 125 ETHER_HDR_LEN, m); in ipfw_log()
|
| D | ip_fw_pfil.c | 371 m_adj(m, ETHER_HDR_LEN); /* strip ethernet header */ in ipfw_check_frame() 384 M_PREPEND(m, ETHER_HDR_LEN, M_NOWAIT); in ipfw_check_frame() 391 ETHER_HDR_LEN); in ipfw_check_frame()
|
| D | ip_dn_io.c | 799 if (m->m_len < ETHER_HDR_LEN && in dummynet_send() 800 (m = m_pullup(m, ETHER_HDR_LEN)) == NULL) { in dummynet_send() 843 dt->iphdr_off = (dir & PROTO_LAYER2) ? ETHER_HDR_LEN : 0; in tag_mbuf()
|
| /freebsd-12-stable/sys/net/ |
| D | ethernet.h | 17 #define ETHER_HDR_LEN (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN) macro 36 ((ifp)->if_mtu + ETHER_HDR_LEN + \ 385 #define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 386 #define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 387 #define ETHERMTU_JUMBO (ETHER_MAX_LEN_JUMBO - ETHER_HDR_LEN - ETHER_CRC_LEN)
|
| D | if_ethersubr.c | 156 if (req->bufsize < ETHER_HDR_LEN) in ether_requestencap() 287 char linkhdr[ETHER_HDR_LEN], *phdr; in ether_output() 347 hlen = ETHER_HDR_LEN; in ether_output() 509 if (m->m_len < ETHER_HDR_LEN) { in ether_input_internal() 602 ETHER_HDR_LEN - ETHER_TYPE_LEN); in ether_input_internal() 849 m_adj(m, ETHER_HDR_LEN); in ether_demux() 893 M_PREPEND(m, ETHER_HDR_LEN, M_NOWAIT); in ether_demux() 927 ifp->if_hdrlen = ETHER_HDR_LEN; in ether_ifattach() 951 bpfattach(ifp, DLT_EN10MB, ETHER_HDR_LEN); in ether_ifattach() 1287 (char *)evl, ETHER_HDR_LEN - ETHER_TYPE_LEN); in ether_vlanencap() [all …]
|
| /freebsd-12-stable/sys/dev/rl/ |
| D | if_rlreg.h | 585 #define RL_IP4CSUMTX_PADLEN (ETHER_HDR_LEN + RL_IP4CSUMTX_MINLEN) 810 #define RL_TSO_MTU (2047 - ETHER_HDR_LEN - ETHER_CRC_LEN) 815 (RL_JUMBO_FRAMELEN-ETHER_VLAN_ENCAP_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 817 ((6 * 1024) - ETHER_VLAN_ENCAP_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN) 819 ((9 * 1024) - ETHER_VLAN_ENCAP_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN) 821 (ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
|
| /freebsd-12-stable/sys/dev/ixgbe/ |
| D | if_fdir.c | 96 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in ixgbe_atr() 99 ehdrlen = ETHER_HDR_LEN; in ixgbe_atr()
|
| D | ixgbe.h | 139 #define IXGBE_MTU_HDR (ETHER_HDR_LEN + ETHER_CRC_LEN) 140 #define IXGBE_MTU_HDR_VLAN (ETHER_HDR_LEN + ETHER_CRC_LEN + \
|
| /freebsd-12-stable/usr.sbin/bluetooth/btpand/ |
| D | tap.c | 114 chan->mru = ETHER_HDR_LEN + ETHER_MAX_LEN; in tap_init() 159 if (pkt->len < ETHER_HDR_LEN) in tap_recv()
|
| /freebsd-12-stable/sys/dev/jme/ |
| D | if_jmevar.h | 74 ETHER_HDR_LEN - ETHER_CRC_LEN) 77 ETHER_HDR_LEN - ETHER_CRC_LEN)
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
| D | if_ether.h | 38 #define ETH_HLEN ETHER_HDR_LEN /* Total octets in header. */
|
| /freebsd-12-stable/sys/netinet/ |
| D | tcp_lro.c | 330 le->p_len += ETHER_HDR_LEN + sizeof(*ip6); in tcp_lro_flush() 361 le->p_len += ETHER_HDR_LEN; in tcp_lro_flush() 672 l = m->m_pkthdr.len - (ETHER_HDR_LEN + ip_len); in tcp_lro_rx2() 901 le->p_len = m->m_pkthdr.len - ETHER_HDR_LEN - sizeof(*ip6); in tcp_lro_rx2() 910 le->p_len = m->m_pkthdr.len - ETHER_HDR_LEN; in tcp_lro_rx2()
|
| /freebsd-12-stable/sys/arm/allwinner/ |
| D | if_emac.c | 417 if (m->m_len <= (MHLEN - ETHER_HDR_LEN)) { in emac_rxeof() 418 bcopy(m->m_data, m->m_data + ETHER_HDR_LEN, m->m_len); in emac_rxeof() 419 m->m_data += ETHER_HDR_LEN; in emac_rxeof() 420 } else if (m->m_len <= (MCLBYTES - ETHER_HDR_LEN) && in emac_rxeof() 421 m->m_len > (MHLEN - ETHER_HDR_LEN)) { in emac_rxeof() 424 len = ETHER_HDR_LEN + m->m_pkthdr.l2hlen; in emac_rxeof()
|
| /freebsd-12-stable/sys/dev/et/ |
| D | if_etvar.h | 59 #define ET_JUMBO_MTU (ET_JUMBO_FRAMELEN - ETHER_HDR_LEN - \ 62 #define ET_FRAMELEN(mtu) (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN + \
|
| /freebsd-12-stable/sys/netgraph/ |
| D | ng_atmllc.c | 185 if (m->m_len < sizeof(struct atmllc) + ETHER_HDR_LEN) { in ng_atmllc_rcvdata() 186 m = m_pullup(m, sizeof(struct atmllc) + ETHER_HDR_LEN); in ng_atmllc_rcvdata()
|
| D | ng_eiface.c | 592 if (m->m_len < ETHER_HDR_LEN) { in ng_eiface_rcvdata() 593 m = m_pullup(m, ETHER_HDR_LEN); in ng_eiface_rcvdata()
|
| D | ng_vlan.c | 62 #define ETHER_VLAN_HDR_LEN (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN) 531 error = m_chk(&m, ETHER_HDR_LEN); in ng_vlan_rcvdata()
|
| /freebsd-12-stable/sys/dev/axgbe/ |
| D | xgbe_osdep.h | 174 #define ETH_HLEN ETHER_HDR_LEN
|
| /freebsd-12-stable/sys/dev/le/ |
| D | lance.c | 387 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) { in lance_get() 411 ALIGN(m->m_data + ETHER_HDR_LEN) - ETHER_HDR_LEN; in lance_get()
|
| /freebsd-12-stable/contrib/netbsd-tests/net/bpfilter/ |
| D | t_bpfilter.c | 165 if (wirelen < ETHER_HDR_LEN + sizeof(struct ip)) in pingtest() 168 pktsize = wirelen - ETHER_HDR_LEN - sizeof(struct ip); in pingtest()
|
| /freebsd-12-stable/sys/dev/liquidio/ |
| D | lio_ioctl.c | 447 memcpy((uint8_t *)&nctrl.udd[0] + 2, p, ETHER_HDR_LEN); in lio_set_mac() 455 memcpy(((uint8_t *)&lio->linfo.hw_addr) + 2, p, ETHER_HDR_LEN); in lio_set_mac()
|
| /freebsd-12-stable/sys/dev/stge/ |
| D | if_stge.c | 1607 if (m->m_len <= (MCLBYTES - ETHER_HDR_LEN)) { in stge_fixup_rx() 1608 bcopy(m->m_data, m->m_data + ETHER_HDR_LEN, m->m_len); in stge_fixup_rx() 1609 m->m_data += ETHER_HDR_LEN; in stge_fixup_rx() 1614 bcopy(m->m_data, n->m_data, ETHER_HDR_LEN); in stge_fixup_rx() 1615 m->m_data += ETHER_HDR_LEN; in stge_fixup_rx() 1616 m->m_len -= ETHER_HDR_LEN; in stge_fixup_rx() 1617 n->m_len = ETHER_HDR_LEN; in stge_fixup_rx() 2118 sc->sc_if_framesize = ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN; in stge_init_locked()
|
| /freebsd-12-stable/sys/dev/sk/ |
| D | if_sk.c | 838 csum_start = (ETHER_HDR_LEN + sizeof(struct ip)) << 16 | 839 ETHER_HDR_LEN; 871 csum_start = ((ETHER_HDR_LEN + sizeof(struct ip)) << 16) | 872 ETHER_HDR_LEN; 2342 offset = sizeof(struct ip) + ETHER_HDR_LEN; 2345 if (m == NULL || m->m_len < ETHER_HDR_LEN) { 2350 if (m->m_len < ETHER_HDR_LEN + sizeof(u_int32_t)) { 2351 if (m->m_len != ETHER_HDR_LEN) { 2360 offset = sizeof(struct ip) + ETHER_HDR_LEN; 2367 p += ETHER_HDR_LEN; [all …]
|