Questions tagged [ethernet]

Ethernet is a set of networking technologies widely used to interconnect computers.

Ethernet is a set of networking technologies widely used to interconnect computers at the physical (layer 1) and link (layer 2) levels. The capability of Ethernet has matured to the point where it is used for both basic desktop computer networking and for carrier-grade networks where operators must guarantee quality of service.

More information at http://en.wikipedia.org/wiki/Ethernet

1632 questions
4
votes
1 answer

Whats a/the "bluebook" in the context of network programming?

My local header /usr/include/linux/if_ether.h has the following define: #define ETH_P_IPV6 0x86DD /* IPv6 over bluebook */ What is bluebook? I've never heard this term, and a cursory internet search didn't reveal anything related to network…
Benno
  • 5,288
  • 5
  • 42
  • 60
4
votes
1 answer

Best practice for ethernet communication using socket

I have a fairly general question about best practice when using socket to communicate with remote hardware: should the socket be closed after each message is sent or left open? To illustrate this question: I'm using python (and socket) to interface…
IanRoberts
  • 2,846
  • 5
  • 26
  • 33
4
votes
0 answers

SIOCETHTOOL vs SIOCGMIIPHY vs SIOCGIFFLAGS

After some search on the Internet,I came to know that, following are the list of options available to get/set parameters to the ethernet interface. SIOCETHTOOL SIOCGMIIPHY SIOCGIFFLAGS I even saw some 'stackoverflow' questions regarding the usage…
Vivek Maran
  • 2,623
  • 5
  • 38
  • 52
4
votes
0 answers

Android - How do I set ip Address of ehternet programmatically?

I'm using embedded systems that uses Ethernet port in android OS, I wanna know how to set static IP and Mask in my app?
Mohammad Farahi
  • 1,006
  • 4
  • 14
  • 38
4
votes
1 answer

Raspberry Pi Ethernet not connecting

I have just installed Raspbian on my Raspberry Pi and I booted it up with it attached to a monitor, keyboard, and ethernet. I can successfully log in, but when I run ifconfig, it only shows the lo interface (eth0 does not show up at all). It is…
manntonn
  • 310
  • 1
  • 5
  • 14
4
votes
0 answers

Simulating Hardware failure of eth ports / cards - is it possible?

I'm looking for a way to simulate Hardware failure of Ethernet ports/cards. For example, simulate low speed, or dissconection, without really causing errors. My goal is that ifconfig or ethtool will catch those "Errors". Do you think it's possible?
NogaLavi
  • 41
  • 5
4
votes
2 answers

Send IP packet from Linux Kernel without destination mac address

I want to transmit an skb that contains a valid tcp and ip header in the linux kernel. It should go out a specific interface without being routed. My problem is, that I cannot use dev_queue_xmit because I dont know the destination mac-address. My…
kaidowei
  • 105
  • 1
  • 9
4
votes
5 answers

How to fire paper cutter of ESC/POS from android application

I am developing an Point-Of-Sale android application. My Tysso PRP 188 printer is connected by Ethernet. I can print on the printer but i don't know how to cut paper after print is finished. The String i am using to print is below: …
Mian.Ammar
  • 663
  • 1
  • 9
  • 22
4
votes
1 answer

Assign static IP to ethernet card from OTG

I would like to assign a static IP to an ethernet card, connected to the Android device via OTG cable. It should be done programmatically, but I can't find any reference regarding ethernet cards in android. Any ideas? Thank you
Alqueraf
  • 1,148
  • 1
  • 11
  • 26
4
votes
7 answers

How to rapidly read data coming through a 10GbE NIC?

I have two debian boxes connected by a CX4 cable going between two 10 GbE cards. One is going to be generating data very quickly (between 4Gbits/s and 16Gbits/s), and the other needs to be able to grab all of that and store it in RAM for later…
Trev
  • 222
  • 4
  • 9
4
votes
3 answers

How can i enable/disable the Ethernet connection on Android?

I'm working on Xamarin for Android, and i need to enable/disable the ethernet connection (RJ45 Cable), i've been looking for it from about 3 days and can't find anything that help me out with this. Does anyone know a way to do it?? Today i found…
Ivan Verges
  • 595
  • 3
  • 10
  • 25
4
votes
6 answers

How can I inject raw packets onto my network

In testing certain network device driver receive features, I need to send special packets on the wire. I know I need to open a raw socket and push the bytes out. Is there some well-known example (C, perl, whatever) code already available for…
Shannon Nelson
  • 2,090
  • 14
  • 14
4
votes
4 answers

Increase ephemeral ports by adding extra ethernet interface

Is there a way to double the number of ephemeral ports and work around the 16-bit limit? I have tried creating virtual ethernet interfaces over eth0, and hope that would lift the limit. Although the application is utilizing the new virtual IPs in…
unjc
  • 63
  • 1
  • 9
4
votes
1 answer

What is the benefit of Arduino Ethernet's library IPAddress()?

The Arduino default Ethernet library class contains an IPAddress variable type. What is this IPAddress for? Why should I use it and why is it not used for the gateway and subnet IPs in the official example?
powtac
  • 40,542
  • 28
  • 115
  • 170
4
votes
2 answers

libpcap not receiving in real time, seems to be buffering packets

So I'm working with a device where I need to send and receive raw ethernet frames. It's a wireless radio and it uses ethernet to send status messages to its host. The protocol it uses is actually IPX, but I figured it would be easier to send raw…
sciencectn
  • 1,405
  • 1
  • 16
  • 25