Ethernet programming (not MAC, LLC, but Preamble, SFD and FCS)


 
Thread Tools Search this Thread
Top Forums Programming Ethernet programming (not MAC, LLC, but Preamble, SFD and FCS)
# 1  
Old 01-03-2013
Ethernet programming (not MAC, LLC, but Preamble, SFD and FCS)

Hello everybody,
I've been working with raw sockets since long time ago. I've coded TCP/UDP, ICMP/IP and ARP applications, all resting encapsulated over relative "raw" ethernet frames; but in reality, Ethernet uses MAC addresses and LLC protocol codes (from layer 2) and that's the maximum access Berkeley socket API allows me to mess with.

So, I'm wondering, is it possible to code messing with real Ethernet fields, such as preamble, start frame delimiter and frame check sequence? I've been researching a little, but i didn't find anything concrete.

I'll appreciate any help with this, with all your programming experience.
Thanks in advance.
Zykl0n-B
# 2  
Old 01-03-2013
Preamble, SFD and FCS of ethernet frame are only meaningful to the hardware/driver and thats where they are handled. You can not generate them from userworld APIs like raw sockets (and alike). If you still want to mess with them for some reason you should write your own ethernet driver or modify existing one.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

VIO and LPAR disk/fcs communications

:wall::wall::wall: 1. I have created an LPAR in the HMC. 2. I have allocated the storage from an Hitachi AMS2500 and assigned it to the host group. 3. I have zoned the LPAR and Storage on a Brocade 5100. (The zone sees the AMS) Next I activated the LPAR in the HMC, SMS mode for the mksysb... (3 Replies)
Discussion started by: Dallasguy7
3 Replies

2. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

3. OS X (Apple)

ethernet mac spoofing

I tried to use the command sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx to do mac spoofing for internet connection in my office. It works only for 5 minutes. Every time after about 5mins, the Internet will be disconnected. :wall: Any one knows how to solve this problem? Thanks. (6 Replies)
Discussion started by: andrewust
6 Replies

4. IP Networking

How to handle unplugging ethernet cable in socket programming

Hi, I am trying to implement a server-client socket communication. My server and clients are in different PCs. During communications if the ethernet cable is removed from the server side it shows broken pipe due to unable to write on the socket. I want to know how to check whether the ethernet... (0 Replies)
Discussion started by: JagadishB
0 Replies

5. IP Networking

Interpreting [|llc] frames in enterprise traffic trace

The LBNL/ICSI Enterprise Tracing Project at LBNL/ICSI Enterprise Tracing Project - Project Overview provides a trace of an enterprise's network from 2005. Upon reading these files with tcpdump, along with regular packets that appear like- 12:04:51.696971 IP 128.3.189.248.netbios-ssn >... (0 Replies)
Discussion started by: sstatla
0 Replies

6. UNIX for Dummies Questions & Answers

How to change the MAC adress in ethernet adapter for SUN

I have installed in the server a quad ethernet adapter, I'm using two interfaces with two different IP networks, both interfaces are connected to a switch, the switch report that is receiving the same MAC address in both ports so must of the times I have connectivity problems. Any idea to change... (1 Reply)
Discussion started by: mono673
1 Replies

7. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies
Login or Register to Ask a Question