ethernet

My ethereum balance returns 0 when checked via geth, but according to etherchain it has a value

给你一囗甜甜゛ 提交于 2019-12-25 08:48:19
问题 I have the exact same problem as described here but the solution doesn't help (so don't flag this post). Instead of the other post, I think my connectivity works fine. At least I get a number higher than 0 when I enter net.peerCount . Furthermore I waited 24h+ connected to the ether network. What am I missing? What am I doing wrong? When I type geth attach it tells me that the parameter at block: 0 (Thu, 01 Jan 1970 01:00:00 CET)... maybe this is the problem? My OS time is correct. 回答1: If

Need to improve the Linux performance for embedded system

余生颓废 提交于 2019-12-24 20:54:16
问题 I have a ARM OMAP based embedded system with 1 GHZ processor running Linux 2.6.33 cross compiled as CONFIG_PREEMPT. One of the Processes (process 1) is critical and need to run every 4 or 8 milli sec which is configurable. There is another process's (process 2) thread which transfers image to FTP or any other configured application. To trigger the time critical process 1 i use a high resolution timer as a seperate thread (FIFO, say 60) with highest Real time priority in the system. Process 2

Issues with TCP on Arduino

亡梦爱人 提交于 2019-12-24 19:21:35
问题 I am experimenting with my Arduino Leonardo and a simple C socket server. The C part must send a string to the Arduino but I cannot connect to the arduino (after the socket is initialized C function is blocked and can not connect to Arduino). The C function code is: #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32.lib") //Winsock Library int connect() { WSADATA wsa; SOCKET s; struct sockaddr_in server; char* message; printf("\nInitialising Winsock..."); if (WSAStartup

Linux user space L2 control protocols

試著忘記壹切 提交于 2019-12-24 12:44:33
问题 I have a network device where a port of an Ethernet switch chip is connected to a CPU's network controller. The switch chip forwards packets from other ports to the CPU port with special header added (before MAC header) containing such information as ingress port etc. I can strip the header when receiving the packets in the network controller driver, so the Linux network stack can communicate with the switch in a normal way. My goal, however, is to pass some information in the special headers

How do I send an ARP packet through python on windows without needing winpcap?

旧时模样 提交于 2019-12-23 18:56:39
问题 Is there any way to send ARP packet on Windows without the use of another library such as winpcap? I have heard that Windows XP SP2 blocks raw ethernet sockets, but I have also heard that raw sockets are only blocked for administrators. Any clarification here? 回答1: There is no way to do that in the general case without the use of an external library. If there are no requirements on what the packet should contain (i.e., if any ARP packet will do) then you can obviously send an ARP request if

Minimal TCP/IP overhead (over Ethernet frames) [closed]

不打扰是莪最后的温柔 提交于 2019-12-23 13:00:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . How small is the smallest frame size in Ethernet? What is the TCP and IP protocol overhead? What I want to find out is the overhead of a single byte TCP/IP stream in terms of used bandwidth (one way, excluding the ACK). I assume it is in the vicinity of 32-100 bytes, but its really not my area of expertise. EDIT

Programmatic use of ARP

微笑、不失礼 提交于 2019-12-23 03:10:53
问题 I have a need for some C or C++ code, compilable under Linux, to be able to take a list of IP addresses of some arbitrary number of remote hosts machines and obtain a ethernet MAC address for each one. These host machines may be on the same subnet or they could be on a different subnet behind a router. Its OK if the MAC address of some or all of the remote hosts is the address of the interface on the router. Ultimately, I want to hand off the IP address and MAC address to an FPGA who will use

NDIS and miniport driver

早过忘川 提交于 2019-12-22 19:59:14
问题 I am trying to modify a ethernet driver using WDK tools provided in Visual Studio 2012. The samples provided in the WDK are 'miniport adapter' and 'NDIS Light Weight Filter' among others. I am still at the very beginning of driver writing and hence finding it tough to navigate through the code. I was able to install the miniport adapter after building it in Visual Studio 2012 [Shows up as 'Microsoft Virtual Miniport Adapter' in my network adapters list.] I am able to assign it a IP address

How can I fetch the ethernet port given the ip address?

谁都会走 提交于 2019-12-22 06:10:34
问题 I am trying to write a bash script to fetch the ethernet port of an interface whose IP address I know. I need to grab this from ifconfig but can't seem to be able to figure out how to go about it. Any ideas? Thanks. 回答1: A little messy but should work: /sbin/ifconfig | grep -B1 1.2.3.4 | awk '{print $1; exit}' Optionally, you could use the ip command which, when used with the -o|-oneline option, is a lot easier to parse. For example ip -o addr | awk '/1.2.3.4/{print $2}' 回答2: Replace 127.0.0

How can I fetch the ethernet port given the ip address?

浪子不回头ぞ 提交于 2019-12-22 06:10:03
问题 I am trying to write a bash script to fetch the ethernet port of an interface whose IP address I know. I need to grab this from ifconfig but can't seem to be able to figure out how to go about it. Any ideas? Thanks. 回答1: A little messy but should work: /sbin/ifconfig | grep -B1 1.2.3.4 | awk '{print $1; exit}' Optionally, you could use the ip command which, when used with the -o|-oneline option, is a lot easier to parse. For example ip -o addr | awk '/1.2.3.4/{print $2}' 回答2: Replace 127.0.0