Questions tagged [raw-ethernet]

90 questions
4
votes
1 answer

Book suggestions for Low-level ethernet/networking (e.g. MII)

I had a colleague who is using Xilinx's LocalLink TEMAC While I find the DS interesting, I would like to learn more about the basics of it. Does anyone have any recommendations for a good low-level intro to networking/ethernet book? I don't need to…
4
votes
1 answer

wireshark display filter on specific byte in a raw ethernet packet

I am trying to filter packets where the 15th byte (i.e. the 1st payload byte after the 14 byte header) is a specific value, either 0x00 or 0x01. The packets I am interested in are raw ethernet, i.e. at the logical-link control layer so I also filter…
bph
  • 10,728
  • 15
  • 60
  • 135
4
votes
1 answer

Java library for Raw Ethernet

I'm looking for a Java library that will give me access to raw Ethernet frames, both for reading and sending them. My end goal is to create a BACnet Ethernet network scanner. Please, Note, I'm not looking for TCP\IP. Anyone know of a good library…
Rick
  • 648
  • 1
  • 11
  • 25
3
votes
0 answers

Profinet Communication with Python

I am trying to write python code for Profinet communication (send - receive data) but I don't have much information. I'm looking for something to guide me. Where should I start? What should I look for ? Please help me thank you so much.
CKocar
  • 566
  • 9
  • 25
2
votes
1 answer

Send custom ethernet packet using raw socket

I searched how to send a raw ethernet packet using a custom ethertype but a lot of people talks abouts about tcp and udp protocols. I need to open a raw socket, take all the packets that have my custom ether type, read the payload and send back a…
2
votes
1 answer

64/66b encoding

There are a few things I don't understand about 64/66bit encoding, and failed to find the answers to on the web. Any help/links would be greatly appreciated: i) how is the start of a frame recognised? I don't think it can be by the initial 10/01 …
Joe
  • 75
  • 1
  • 4
2
votes
2 answers

Linux Raw Sockets: Block Packets?

I've written my own packet sniffer in Linux. I open a socket with socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)) and then process the Ethernet packets - unpacking ARP packets, IP packets (and ICMP / TCP / UDP packets inside those). This is all…
Bob
  • 71
  • 6
2
votes
2 answers

Reading VLAN field of a raw ethernet packet in Python

I have a low level comunication between two nodes using Ethernet packets (2-layer, no UDP/IP nor TCP/IP). These packets has the VLAN field inside, my interface is configured in promiscuous mode and it is able to read them completely due to I can see…
ferdepe
  • 510
  • 1
  • 6
  • 21
2
votes
2 answers

Difference between ethernet and TCP/IP protocol in programming?

Say ff a socket is open for Ethernet then is it same as socket in TCP/IP ? In some existing code i have found that, it supports Ethernet protocol, does that mean i can connect to this Ethernet socket using TCP socket client. I am in confusion,…
Sagar
  • 1,115
  • 2
  • 13
  • 22
2
votes
1 answer

Read raw Ethernet using Qt

I have a device which sends out a raw (Layer 2) Ethernet packet which I need to read and decode using a Qt based C++ Windows application. I believe I can do it using the winpcap libraries but would prefer a Qt way if possible.
Chuck Claunch
  • 1,624
  • 1
  • 17
  • 29
2
votes
1 answer

raw ethernet sockets filling sockaddr_ll

I am buliding a server/client software using PF_PACKET and SOCK_RAW and a custom protocol when calling socket() When in the client software I create the socket the same way and just do a rcvfrom that socket and I get the data My question is do I…
user2948982
  • 61
  • 1
  • 2
  • 8
1
vote
2 answers

Creating Ethernet II frame header?

How to create Ethernet II frame header in Linux ? 802.3 frame header can be created using eth_header() giving the skbuffer and source and destination MAC and length. Can the same function be used for Ethernet II frame format also, where we use type…
user1023527
  • 41
  • 2
  • 7
1
vote
2 answers

Implement Raw Ethernet in Winsock

I am doing a project where I must craft custom packets. That is, I have to have control of each packet header. I am trying to do this using sockets. Basically, what I need to do is this: SOCKET s = socket(PF_UNSPEC, SOCK_RAW, ethernet_type); The…
devin
  • 6,407
  • 14
  • 48
  • 53
1
vote
0 answers

why is python scapy.srp1 returning the packet I sent instead of the response?

I'm trying to use the scapy package inside of python (3.10), on Windows 10, to communicate with an embedded device over raw ethernet. When I send the device a raw packet (level 2) using the srp1 function, the value returned is the original packet I…
Rick Ball
  • 21
  • 3
1
vote
0 answers

Berkeley raw socket exclusive access (Linux)

I have implemented my own raw socket operating on „raw“ Ethernet frames (socket(AF_PACKET,SOCK_RAW,htons(ETH_P_ALL));) and bound it to one specific network Interface. Sending and receiving raw packets works like a charm, however when I use wireshark…
Ohjurot
  • 47
  • 9