/freebsd-13-stable/tests/sys/netinet6/ |
H A D | scapyi386.py | 74 eth = pkt.getlayer(sp.Ether) 75 if eth is None: 79 if eth.dst == bcmac: 81 eth.display()
|
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_ah.c | 89 rdma_get_mcast_mac(&in6, ah->av.eth.mac); 91 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); 97 eth_zero_addr(ah->av.eth.s_mac); 100 memcpy(ah->av.eth.s_mac, IF_LLADDR(gid_attr.ndev), ETH_ALEN); 105 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); 109 ah->av.eth.gid_index = ret; 110 ah->av.eth.vlan = cpu_to_be16(vlan_tag); 111 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; 113 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; 114 while (ah->av.eth [all...] |
H A D | mlx4_ib_main.c | 1399 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) 1403 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, 1405 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, 1407 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; 1408 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; 1678 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth [all...] |
H A D | mlx4_ib_qp.c | 2491 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { 2492 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; 2545 sqp->ud_header.ip4.ttl = ah->av.eth.hop_limit; 2595 ether_addr_copy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac); 2596 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); 2597 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); 2598 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); 2602 if (!memcmp(sqp->ud_header.eth [all...] |
/freebsd-13-stable/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_freebsd.c | 60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local 61 if (eth == NULL) 63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 65 eth->h_proto = htons(proto); 66 os_memcpy(eth + 1, buf, len); 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 68 os_free(eth); [all...] |
H A D | l2_packet_ndis.c | 96 struct l2_ethhdr *eth; local 116 size_t mlen = sizeof(*eth) + len; 117 eth = os_malloc(mlen); 118 if (eth == NULL) 121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 123 eth->h_proto = htons(proto); 124 os_memcpy(eth + 1, buf, len); 125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, 127 os_free(eth); [all...] |
/freebsd-13-stable/tests/sys/netpfil/pf/ |
H A D | frag-overindex.py | 53 eth = [] 55 eth.append(sp.Ether() / f) 59 for e in eth:
|
H A D | frag-overlimit.py | 59 eth = [] 61 eth.append(sp.Ether() / f) 65 for e in eth:
|
H A D | frag-overreplace.py | 58 eth=[] 60 eth.append(sp.Ether() / f) 64 for e in eth:
|
/freebsd-13-stable/tests/sys/netgraph/ |
H A D | ng_macfilter_test.sh | 71 ngctl mkpeer $eth: macfilter lower ether # Connect the lower hook of the ether instance $eth to the ether hook of a new macfilter instance 72 ngctl name $eth:lower MF # Give the macfilter instance a name 73 ngctl mkpeer $eth: one2many upper one # Connect the upper hook of the ether instance $eth to the one hook of a new one2many instance 74 ngctl name $eth:upper O2M # Give the one2many instance a name 236 eth=$(find_iface) 237 if [ -z "$eth" ]; then 243 test_comment "Using $eth..."
|
/freebsd-13-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_l2.c | 1940 p_common->rx_64_byte_packets += port_stats.eth.r64; 1941 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; 1942 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; 1943 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; 1944 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; 1945 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; 1946 p_common->rx_crc_errors += port_stats.eth.rfcs; 1947 p_common->rx_mac_crtl_frames += port_stats.eth.rxcf; 1948 p_common->rx_pause_frames += port_stats.eth.rxpf; 1949 p_common->rx_pfc_frames += port_stats.eth [all...] |
H A D | ecore_dcbx_api.h | 93 u8 eth; member in struct:ecore_dcbx_app_prio
|
/freebsd-13-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mcg.c | 849 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); 850 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, 852 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); 853 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, 855 if (spec->eth.ether_type_enable) { 856 rule_hw->eth [all...] |
/freebsd-13-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ud_header.c | 92 { STRUCT_FIELD(eth, dmac_h), 96 { STRUCT_FIELD(eth, dmac_l), 100 { STRUCT_FIELD(eth, smac_h), 104 { STRUCT_FIELD(eth, smac_l), 108 { STRUCT_FIELD(eth, type), 362 header->eth.type = cpu_to_be16(ETH_P_8021Q); 434 &header->eth, (char *)buf + len);
|
H A D | uverbs.h | 236 struct ib_uverbs_flow_spec_eth eth; member in union:ib_uverbs_flow_spec::__anon15515
|
/freebsd-13-stable/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 549 wqe->eth.cs_flags |= MLX5_ETH_WQE_L3_CSUM; 552 wqe->eth.cs_flags |= MLX5_ETH_WQE_L4_CSUM; 554 if (wqe->eth.cs_flags == 0) { 562 wqe->eth.mss = cpu_to_be16(mss); 599 wqe->eth.vlan_cmd = htons(0x8000); /* bit 0 CVLAN */ 600 wqe->eth.vlan_hdr = htons(mb->m_pkthdr.ether_vtag); 621 wqe->eth.inline_hdr_start; 645 wqe->eth.inline_hdr_sz = cpu_to_be16(args.ihs); 655 m_copydata(mb, 0, args.ihs, wqe->eth.inline_hdr_start); 657 wqe->eth [all...] |
/freebsd-13-stable/contrib/ipfilter/ipsend/ |
H A D | ip.c | 158 ether_header_t eth; local 200 bcopy((char *)eh, (char *)ð, sizeof(eth)); 224 bcopy((char *)ð, ipbuf, sizeof(eth));
|
/freebsd-13-stable/contrib/libpcap/msdos/ |
H A D | pktdrvr.h | 131 extern BOOL PktTransmit (const void *eth, int len);
|
H A D | pktdrvr.c | 444 PUBLIC BOOL PktTransmit (const void *eth, int len) argument 453 dosmemput (eth, len, realBase+pktTxBuf); 458 memcpy ((void*)(realBase+pktTxBuf), eth, len); 463 memcpy (&pktTxBuf, eth, len); 468 reg.r_ds = FP_SEG (eth); 469 reg.r_si = FP_OFF (eth);
|
/freebsd-13-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-helper-board.c | 111 int pip, iface, eth; local 144 eth = fdt_subnode_offset(fdt_addr, iface, name_buffer); 145 if (eth < 0) 151 return eth; 207 int aliases, eth, phy, phy_parent, phandle, ret; local 230 eth = __mix_eth_node(fdt_addr, aliases, interface_index) ; 234 eth = __pip_eth_node(fdt_addr, aliases, ipd_port); 236 if (eth < 0 ) 242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL);
|
/freebsd-13-stable/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 542 memcpy(udh->eth.dmac_h, ah_attr->dmac, ETH_ALEN); 545 memcpy(udh->eth.dmac_h, mac, ETH_ALEN); 547 memcpy(udh->eth.smac_h, dev->ha->primary_mac, ETH_ALEN); 549 udh->eth.type = htons(ETH_P_8021Q); 553 udh->eth.type = htons(ether_type); 558 udh->eth.dmac_h[j]); 562 udh->eth.smac_h[j]); 665 if (memcmp(udh.eth.smac_h, udh.eth.dmac_h, ETH_ALEN))
|
/freebsd-13-stable/sys/net/ |
H A D | if_gif.c | 284 struct etherip_header *eth; local 365 eth = mtod(m, struct etherip_header *); 366 eth->eip_resvh = 0; 367 eth->eip_ver = ETHERIP_VERSION; 368 eth->eip_resvl = 0;
|
/freebsd-13-stable/sys/dev/ixl/ |
H A D | ixl_pf_main.c | 901 struct i40e_eth_stats *eth_stats = &stats->eth; 1960 &osd->eth.rx_bytes, &nsd->eth.rx_bytes); 1964 &osd->eth.tx_bytes, &nsd->eth.tx_bytes); 1967 &osd->eth.rx_discards, 1968 &nsd->eth.rx_discards); 1972 &osd->eth.rx_unicast, 1973 &nsd->eth.rx_unicast); 1977 &osd->eth [all...] |
/freebsd-13-stable/contrib/wpa/hostapd/ |
H A D | ctrl_iface.c | 1829 const struct ether_header *eth; local 1835 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { 1842 eth = (const struct ether_header *) buf; 1843 os_memcpy(&ip, eth + 1, sizeof(ip)); 1844 pos = &buf[sizeof(*eth) + sizeof(ip)]; 1866 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra); 1916 struct ether_header *eth; local 1952 eth = (struct ether_header *) &buf[2]; 1953 os_memcpy(eth 1986 struct ether_header *eth; local [all...] |
/freebsd-13-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 1842 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) 1847 ib_spec->eth.mask.dst_mac); 1850 ib_spec->eth.val.dst_mac); 1854 ib_spec->eth.mask.src_mac); 1857 ib_spec->eth.val.src_mac); 1859 if (ib_spec->eth.mask.vlan_tag) { 1866 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); 1868 first_vid, ntohs(ib_spec->eth.val.vlan_tag)); 1872 ntohs(ib_spec->eth.mask.vlan_tag) >> 12); 1875 ntohs(ib_spec->eth [all...] |