Questions tagged [raw-ethernet]
90 questions
1
vote
0 answers
PCAP Go using Raw Sockets Checksum Calculation
I'm writing a frame/datagram/packet manipulation program which forwards frames from one source to another. I'm using the Go layers library to manipulate the frames.
If I do not set the option to calculate checksums the SYN packet get's to the…

Jonathan Eustace
- 2,469
- 12
- 31
- 54
1
vote
3 answers
raw socket send two packets on a virtual Network
I've a problem with my sendto function in my code, when I try to send a raw ethernet packet.
I use a Ubuntu 12.04.01 LTS, with two tap devices connected over two vde_switches and a dpipe
Example:
my send programm create the packet like below, the…

Patzde
- 11
- 2
- 6
1
vote
1 answer
testing user-space TCP/IP stack with TUN / TAP
Is it possible to test an TCP stack using TUN / TAP interfaces ?
I'm thinking of a mechanism like this:
+--------------------------------+
| TCP Client / Server |
| socket(AF_INET, SOCK_STREAM) |
| e.g. HTTP Server / Client …

vrdhn
- 4,024
- 3
- 31
- 39
0
votes
1 answer
Ethernet not getting braodcast packets
I'm working on 2.6.15 kernel running on a cisco IPTV. When the box is coming up, the DHCP client hangs up. The reason for this is that the DHCP client does not get fetch the broadcasted DHCP offer message.
When I read /proc/net/dev file, it shows…

nsit_poison
- 119
- 12
0
votes
1 answer
ethtool for pause frames?
I am creating an ethernet frame sniffing/forwarding program on a Linux machine that I will use to sniff the frames being transmitted from a computer to ethernet and vice-versa.
I am trying to activate pause frames so that I will not lose any…

dalemus
- 3
- 1
- 2
0
votes
1 answer
Raw Ethernet PF_PACKET issue on localhost
I am working on raw ethernet programming in c. I have two files client and server which are running on localhost. I am using my own protocol number for communication in socket().
On the client side i have follwing code
s = socket(PF_PACKET,…

user755043
- 1,657
- 3
- 12
- 12
0
votes
1 answer
I can not see my networks raw packets in C
I have two virtual machines in vmware infrastructure (workstation) running Ubuntu 22.04, that are in the same network. With one program I am sending in one virtual machine raw packets, with a MAC that does not fit with any of the computers in the…

Antonio Garcia
- 3
- 2
0
votes
1 answer
Send a frame ethernet with an arbitrary source MAC address
I'm trying to send a frame Ethernet in a Linux system by the C function sendto(). The frame does not contain any IP level information because the IP protocol is not used in my application.
The sendto() documentation provides the following…

frankfalse
- 1,553
- 1
- 4
- 17
0
votes
1 answer
Extract MAC Address from Ethernet frame
I am trying to extract the Destination & Source MACs from an ethernet frame using python and Linux.
I used the code below to print the bytes of a frame.
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP)
packet =…

Alex Lazar
- 103
- 9
0
votes
1 answer
Use tcpreplay .pcap with raw packet data fail
I'm using tcpreplay to generate traffic from the .pcap file for my experiments. More specifically I'm using files from the ISCX-VPN-NONVPN-2016 public dataset.
However, I'm having problems retransmitting encrypted traffic, as they present the L2 Raw…

Leandro Pereira
- 41
- 6
0
votes
1 answer
Does differing host/network byte ordering add to network latency?
I am trying to make two of NVIDIA’s Jetson AGXs communicate via ethernet with as low latency as possible using UDP protocol. The default request-response latency measured by netperf is around 200 microseconds. I am looking for ways to reduce this…

Jaiyam Sharma
- 121
- 7
0
votes
1 answer
Accessing an Ethernet or USB port
Good Afternoon,
This post is to ask for ideas on which programming language for Windows Vista you would suggest for accessing raw data from an Ethernet port or a USB port. My strength is in micro-controllers. I have a project underway where the…

Gary
- 1
0
votes
1 answer
Why WriteFile to NDIS send duplicate frames?
Hello everyone and thanks in advance for the help,
I am using the WriteFile function (fileapi.h) to send frames to the NDIS driver at Ethernet Layer 2 level, directly between MAC addresses.
The frames are sent correctly, but in any of the tests I…

agallende
- 25
- 5
0
votes
1 answer
Error 87 in WriteFile function (NDIS) when using EtherType 0x88A4 (EtherCat)
I am trying to send a Raw Ethernet frame over layer 2, using the prottest.c example code for the NDIS driver, in C.
The example works without problem, but when I modify the Ether Type (0x88A4 EtherCat)
and adapt the frame with the necessary…

agallende
- 25
- 5
0
votes
1 answer
SGMII without phy - external loopback on Xlinix Zynq UltraScale+ RFSoC board
I have a costume board with Xilinx Zynq UltraScale+ RFSoC.
I'm using 3 PS_GTR transceivers as sgmii.
2 of them are connected to external Marvell phy and the third connects directly (fixed link - without phy).
In the manufacturing stage i would like…

Tzipi Kluska
- 3
- 2