/freebsd/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_pcap.c | 31 eth_t *eth; member 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 56 if (!l2->eth) { in l2_packet_init_libdnet() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() 82 struct l2_ethhdr *eth; in l2_packet_send() local 91 ret = eth_send(l2->eth, buf, len); in l2_packet_send() 94 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 95 eth = os_malloc(mlen); in l2_packet_send() [all …]
|
H A D | l2_packet_winpcap.c | 76 struct l2_ethhdr *eth; in l2_packet_send() local 84 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 85 eth = os_malloc(mlen); in l2_packet_send() 86 if (eth == NULL) in l2_packet_send() 89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 91 eth->h_proto = htons(proto); in l2_packet_send() 92 os_memcpy(eth + 1, buf, len); in l2_packet_send() 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send() 94 os_free(eth); in l2_packet_send()
|
H A D | l2_packet_freebsd.c | 65 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local 66 if (eth == NULL) in l2_packet_send() 68 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 69 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 70 eth->h_proto = htons(proto); in l2_packet_send() 71 os_memcpy(eth + 1, buf, len); in l2_packet_send() 72 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send() 73 os_free(eth); in l2_packet_send()
|
H A D | l2_packet_ndis.c | 96 struct l2_ethhdr *eth; in l2_packet_send() local 116 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 117 eth = os_malloc(mlen); in l2_packet_send() 118 if (eth == NULL) in l2_packet_send() 121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 123 eth->h_proto = htons(proto); in l2_packet_send() 124 os_memcpy(eth + 1, buf, len); in l2_packet_send() 125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send() 127 os_free(eth); in l2_packet_send()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_ah.c | 90 rdma_get_mcast_mac(&in6, ah->av.eth.mac); in create_iboe_ah() 92 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); in create_iboe_ah() 98 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah() 101 memcpy(ah->av.eth.s_mac, if_getlladdr(gid_attr.ndev), ETH_ALEN); in create_iboe_ah() 106 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah() 110 ah->av.eth.gid_index = ret; in create_iboe_ah() 111 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah() 112 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; in create_iboe_ah() 114 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; in create_iboe_ah() 115 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | ralink,rt2880-net.txt | 13 - compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth", 14 "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth", 15 "mediatek,mt7620-eth", "mediatek,mt7621-eth" 26 - compatible: Should be "ralink,eth-port" 41 compatible = "ralink,rt2880-eth"; 54 compatible = "ralink,eth-port";
|
H A D | mediatek-net.txt | 11 "mediatek,mt2701-eth": for MT2701 SoC 12 "mediatek,mt7623-eth", "mediatek,mt2701-eth": for MT7623 SoC 13 "mediatek,mt7622-eth": for MT7622 SoC 14 "mediatek,mt7629-eth": for MT7629 SoC 15 "ralink,rt5350-eth": for Ralink Rt5350F and MT7628/88 SoC 47 - compatible: Should be "mediatek,eth-mac" 56 eth: ethernet@1b100000 { 57 compatible = "mediatek,mt7623-eth"; 69 reset-names = "eth"; 76 compatible = "mediatek,eth-mac"; [all …]
|
H A D | marvell-orion-net.txt | 25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth". 35 - compatible: shall be one of "marvell,orion-eth-port", 36 "marvell,kirkwood-eth-port". 68 eth: ethernet-controller@72000 { 69 compatible = "marvell,orion-eth"; 77 compatible = "marvell,orion-eth-port";
|
H A D | lpc-eth.txt | 4 - compatible: Should be "nxp,lpc-eth" 21 compatible = "nxp,lpc-eth";
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 397 wqe->eth.swp_outer_l3_offset = eth_hdr_len / 2; in mlx5e_get_vxlan_header_size() 398 wqe->eth.cs_flags = MLX5_ETH_WQE_L3_CSUM | MLX5_ETH_WQE_L4_CSUM; in mlx5e_get_vxlan_header_size() 405 wqe->eth.swp_outer_l4_offset = eth_hdr_len / 2; in mlx5e_get_vxlan_header_size() 406 wqe->eth.swp_flags |= MLX5_ETH_WQE_SWP_OUTER_L4_TYPE; in mlx5e_get_vxlan_header_size() 417 wqe->eth.swp_outer_l3_offset = eth_hdr_len / 2; in mlx5e_get_vxlan_header_size() 418 wqe->eth.cs_flags = MLX5_ETH_WQE_L4_CSUM; in mlx5e_get_vxlan_header_size() 424 wqe->eth.swp_outer_l4_offset = eth_hdr_len / 2; in mlx5e_get_vxlan_header_size() 425 wqe->eth.swp_flags |= MLX5_ETH_WQE_SWP_OUTER_L4_TYPE | in mlx5e_get_vxlan_header_size() 466 wqe->eth.swp_inner_l3_offset = eth_hdr_len / 2; in mlx5e_get_vxlan_header_size() 467 wqe->eth in mlx5e_get_vxlan_header_size() [all...] |
/freebsd/tests/sys/netinet6/ |
H A D | scapyi386.py | 73 eth = pkt.getlayer(sp.Ether) 74 if eth is None: 78 if eth.dst == bcmac: 80 eth.display()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_l2.c | 1938 p_common->rx_64_byte_packets += port_stats.eth.r64; in __ecore_get_vport_port_stats() 1939 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; in __ecore_get_vport_port_stats() 1940 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; in __ecore_get_vport_port_stats() 1941 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; in __ecore_get_vport_port_stats() 1942 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; in __ecore_get_vport_port_stats() 1943 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; in __ecore_get_vport_port_stats() 1944 p_common->rx_crc_errors += port_stats.eth.rfcs; in __ecore_get_vport_port_stats() 1945 p_common->rx_mac_crtl_frames += port_stats.eth.rxcf; in __ecore_get_vport_port_stats() 1946 p_common->rx_pause_frames += port_stats.eth.rxpf; in __ecore_get_vport_port_stats() 1947 p_common->rx_pfc_frames += port_stats.eth.rxpp; in __ecore_get_vport_port_stats() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
H A D | img,pistachio-pinctrl.txt | 116 mfio63 eth, mips_trace_clk, mips_trace_data 117 mfio64 eth, mips_trace_dint, mips_trace_data 118 mfio65 eth, mips_trace_trigout, mips_trace_data 119 mfio66 eth, mips_trace_trigin, mips_trace_data 120 mfio67 eth, mips_trace_dm, mips_trace_data 121 mfio68 eth, mips_trace_probe_n, mips_trace_data 122 mfio69 eth, mips_trace_data 123 mfio70 eth, mips_trace_data 124 mfio71 eth
|
H A D | pinctrl-mt7622.txt | 195 "emmc", "eth", "i2c", "i2s", "ir", "led", "flash", "pcie", 208 "esw" "eth" 51, 52, 53, 54, 55, 56, 212 "esw_p0_p1" "eth" 51, 52, 53, 54, 55, 56, 214 "esw_p2_p3_p4" "eth" 59, 60, 61, 62, 63, 64, 216 "rgmii_via_esw" "eth" 59, 60, 61, 62, 63, 64, 218 "rgmii_via_gmac1" "eth" 59, 60, 61, 62, 63, 64, 220 "rgmii_via_gmac2" "eth" 25, 26, 27, 28, 29, 30, 222 "mdc_mdio" "eth" 23, 24 414 "eth", "i2c", "led", "flash", "pcie", "pwm", "spi", "uart", 420 "mdc_mdio" "eth" 23, 24 [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mcg.c | 849 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule() 850 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule() 852 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule() 853 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule() 855 if (spec->eth.ether_type_enable) { in parse_trans_rule() 856 rule_hw->eth.ether_type_enable = 1; in parse_trans_rule() 857 rule_hw->eth.ether_type = spec->eth.ether_type; in parse_trans_rule() 859 rule_hw->eth.vlan_tag = spec->eth.vlan_id; in parse_trans_rule() 860 rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; in parse_trans_rule() 920 cur->eth.dst_mac[0], cur->eth.dst_mac[1], in mlx4_err_rule() [all …]
|
/freebsd/tests/sys/netinet/ |
H A D | arp.sh | 150 eth="$(ifconfig -j ${jname}b ${epair0}b | 162 atf_check -o match:"\(${ipb}\) at $eth on ${epair0}a" \ 194 eth="$(ifconfig -j ${jname}b ${epair0}b | 201 "? (${ipb}) at ${eth} on ${epair0}a expires in ${max_age} seconds [ethernet]\n" 214 "arp: ${eth} attempts to modify permanent entry for ${ipb} on ${epair0}a"
|
/freebsd/tests/sys/netgraph/ |
H A D | ng_macfilter_test.sh | 70 …ngctl mkpeer $eth: macfilter lower ether # Connect the lower hook of the ether instance $eth t… 71 ngctl name $eth:lower MF # Give the macfilter instance a name 72 …ngctl mkpeer $eth: one2many upper one # Connect the upper hook of the ether instance $eth to … 73 ngctl name $eth:upper O2M # Give the one2many instance a name 235 eth=$(find_iface) 236 if [ -z "$eth" ]; then 242 test_comment "Using $eth..."
|
/freebsd/sys/contrib/device-tree/src/arm/mediatek/ |
H A D | mt7629-rfb.dts | 63 ð { 70 compatible = "mediatek,eth-mac"; 81 compatible = "mediatek,eth-mac"; 154 eth_pins: eth-pins { 156 function = "eth";
|
/freebsd/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/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ud_header.c | 90 { STRUCT_FIELD(eth, dmac_h), 94 { STRUCT_FIELD(eth, dmac_l), 98 { STRUCT_FIELD(eth, smac_h), 102 { STRUCT_FIELD(eth, smac_l), 106 { STRUCT_FIELD(eth, type), 360 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init() 432 &header->eth, (char *)buf + len); in ib_ud_header_pack()
|
/freebsd/sys/contrib/device-tree/Bindings/net/dsa/ |
H A D | ar9331.txt | 25 compatible = "qca,ar9330-eth"; 32 clock-names = "eth", "mdio"; 39 compatible = "qca,ar9330-eth"; 45 clock-names = "eth", "mdio";
|
/freebsd/sbin/ipf/ipsend/ |
H A D | ip.c | 147 ether_header_t eth; in send_ip() local 189 bcopy((char *)eh, (char *)ð, sizeof(eth)); in send_ip() 213 bcopy((char *)ð, ipbuf, sizeof(eth)); in send_ip()
|
/freebsd/sys/contrib/device-tree/src/mips/qca/ |
H A D | ar9331.dtsi | 120 compatible = "qca,ar9330-eth"; 127 clock-names = "eth", "mdio"; 136 compatible = "qca,ar9330-eth"; 142 clock-names = "eth", "mdio";
|