Questions tagged [raw-ethernet]
90 questions
0
votes
2 answers
Does ethernet communication need internet connection?
For an ethernet connection between 2 points which will be used as point to point communication (for embedded devices). Is internet connection, hubs or switches are really necessary? Or can we still send and receive data from one MCU to another one…

Raxian
- 17
- 1
- 5
0
votes
0 answers
How to access Ethernet frame in Linux kernel driver (stmmac)
For an Ethernet traffic, in the kernel stmmac driver, when an Ethernet frame is received, the function stmmac_rx is called here:
static int stmmac_rx(struct stmmac_priv *priv, int limit)
I would like to access the content of each frame in the…

gregoiregentil
- 1,793
- 1
- 26
- 56
0
votes
3 answers
Ethernet header removal using scapy (python)
I am trying to work with pcap files. For a preprocessing phase, I am trying to remove an ethernet header using scapy but not sure if this is the right way. Any ideas would like much appreciated. Thanks
I am working on Jupyter notebook and I use…

KSp
- 1,199
- 1
- 11
- 29
0
votes
1 answer
Does libpcap use the traffic control layer of linux?
I was working on creating a separate network stack and I'm using libpcap, or specifically, pcap_inject function to send packets directly to the link layer. However, when I look into the tc -s qdisc show dev eth0 command, I see that the packets I…

nj-ath
- 3,028
- 2
- 25
- 41
0
votes
1 answer
The relationship between RGMII to MDI in Ethernet communication
Let's say I am talking to a PHY chip via RGMII.
What is the relationship between the serial information transmitted on the RGMII to the signals that go out to the MDI?
I understood from the timing diagram of RGMII that the rising edge is 4 bits…

CJC
- 795
- 8
- 25
0
votes
1 answer
I put scrambler and descrambler module in vhdl respectively but the result of descrambler is not as same as the input of scrambler
I have coded the scrambler of the 10G Ethernet. I found out the polynomial from the ieee802.3ae standard. in the document was figured a block diagram(49-10,49-8). when I put scrambler and descrambler module respectively. I can not see the input of…

Amir Hamidi
- 1
- 2
0
votes
1 answer
" sock, addr = self._sock.accept() socket.error: [Errno 95] Operation not supported "
I want to try create a client for my server side (with send raw data over the ethernet protocole) But i have this error :
File "/usr/lib/python2.7/socket.py", line 206, in accept
sock, addr = self._sock.accept()
socket.error: [Errno 95] Operation…

CKocar
- 566
- 9
- 25
0
votes
2 answers
Why are 14 bytes of random data appended to a raw ethernet frame?
I'm sending a raw Ethernet frame to the loopback interface (Linux ubuntu 4.15.0-34-generic) with the following python code:
from scapy.all import *
pkt = Ether(dst="aa:aa:aa:aa:aa:aa", src="00:ff:00:ff:00:ff", type=0x6666) / ("A"*50)
sendp(pkt,…

zgerd
- 1,080
- 8
- 17
0
votes
1 answer
Ethernet Type Range
When reading through the Ethernet frame format in IEEE 802.3 , the EtherType was explained as below:
0 - 1500 (Decimal) comes under packet data payload length.
1536(0x600) and above it means the value is determining the type of the frame.(Eg. 0x800…

Arun Chettoor
- 1,021
- 1
- 12
- 17
0
votes
1 answer
Ethernet frame transport layer recognition
Recently I've been working on raw ethernet support in embedded system. Mostly for educational purposes and know-how. Using some data found on google i was able to implement ARP support, and separate UDP/TCP transport layer support.
Unfortunately, I…

Jakub Jakubowski
- 3
- 1
0
votes
0 answers
Why ethernet packet is not received on destination interface?
I am running the ethersend.c program at http://hacked10bits.blogspot.co.uk/2011/12/sending-raw-ethernet-frames-in-6-easy.html on Ubuntu 17.04 installed on VirtualBox.
#include
#include
#include
#include…

Sumeet Sarkar
- 1
- 1
0
votes
3 answers
Send bits over physical ethernet cable without any error correction like FCS or CRC
I would like to send some raw bits over ethernet cable between two computers. The errors in data that occurred during transmission are corrected by Ethernet Frame Check Sequence(FCS) (like CRC: cycle redundancy check) and further checks by the upper…

user1877095
- 75
- 1
- 2
- 9
0
votes
0 answers
getting notified about arriving ethernet-frames on Linux
I need to be notified when a Ethernet Frame is arriving on a UNIX system (on eth0 port). Is there a way to register my function somewhere? currently i'm working with the "sys/socket.h"-Library but i can't find a function to register myself.

Fabian
- 11
- 3
0
votes
0 answers
Why Socket Connecton is failing in case of USB adapter only ?
I have a VPN application which will connect to the server . It is working fine in case of Ethernet and Wifi . Now i am trying to connect with USB adapter (USB dongle) . When i am trying to connect , i got socket connection error . But this socket is…

user3764213
- 11
- 3
0
votes
0 answers
Pcap producing strange packets after un- and replugging cable
After physically pulling the line and reconnecting it again, pcap (I am programming it in C) produces packets which are most likely not really there and misses out on all "normal" traffic which is going on. I have two nodes on the network which…

Vroomfondel
- 2,704
- 1
- 15
- 29