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
7
votes
5 answers

avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude: stk500_getsync(): not in sync: resp=0x00 I'm using arduino uno with ethernet shield. I plugged a Led from digital pin to GND directly without any resistor if that was the problem, I do it often so far if that was the cause it just broke…
yhunz_19
  • 1,206
  • 2
  • 12
  • 17
7
votes
4 answers

is it possible to do memcpy in bits instead of bytes?

I would like to know is it possible to do memcpy by bits instead of bytes? I am writing a C code for Ethernet frame with VLAN tagging, in which I need to fill different values for VLAN header attributes (PCP-3bits,DEI-1bit,VID-12bits). How can I do…
arr
  • 101
  • 2
  • 10
7
votes
2 answers

Why is the Frame Check Sequence at the end of an Ethernet frame and not somewhere else

An Ethernet Frame Check Sequence is always appended to the end of a frame in the Data Link Layer. Why is it appended to the end of the frame and not somewhere else? I thought about it and think it might have something to do with how e.g.…
Lukas_Skywalker
  • 2,053
  • 1
  • 16
  • 28
7
votes
1 answer

MAC address from interface on OS X (C)

This might be a stupid question and I apologize if it's already been addressed here, but I've searched quite a bit without much luck. I'm trying to get my interface's hardware address in C and I'm using OS X (x86-64). I know how to get it with…
Pavlov's Kitten
  • 101
  • 1
  • 2
6
votes
4 answers

How does PPP or Ethernet recover from errors?

Looking at the data-link level standards, such as PPP general frame format or Ethernet, it's not clear what happens if the checksum is invalid. How does the protocol know where the next frame begins? Does it just scan for the next occurrence of…
Gili
  • 86,244
  • 97
  • 390
  • 689
6
votes
1 answer

How to flush raw AF_PACKET socket to get correct filtered packets

sock = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); setsockopt(sock, SOL_SOCKET, SO_ATTACH_FILTER, &f, sizeof (f)) With this simple BPF/LPF attach code, when I try to receive packet on the socket, will get some wrong packets that doesn't match…
Rider
  • 63
  • 2
6
votes
3 answers

Windows equalivalent to eth0

Is there a generic IP device name for windows similar to "eth0" used by Linux and Solaris? I am attempting to monitor SCTP traffic, which appears to be successful passing the ip address, but this means for every machine to use this application would…
Justin Fuller
6
votes
4 answers

How do I get the MAC address of a network card using Delphi?

How do I get the MacAddress of an Network Card using Delphi ?
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
6
votes
2 answers

How to remove Ethernet layer from a pcap file?

I have a pcap captured with Wireshark. Is there any function in Wireshark that will strip Ethernet layer from the result? Or any command line tool to do it?
mcv
  • 175
  • 2
  • 7
6
votes
1 answer

Network namespace and bridging

Helo everyone, i am occasional linux user, but i have a project to do and i need some help with bridging :) I have tried with google, but didn't solve the problem. My task is to create network namespace, so it can be used to perform some other tasks…
miki
  • 380
  • 6
  • 15
6
votes
2 answers

How can I send a datagram with an Ethernet trailer?

How can I send a datagram with an Ethernet trailer? If I use SocketType.Raw, I'll have to send the whole IP header and I have no idea how to do that.
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
6
votes
3 answers

difference private IP and public IP

Can anybody explain me why I got two different IP-addresses? So if I type on terminal ipconfig I get my network information where my Ip-adress is like 192.168.###.###. So I know that this is in private IP-range (private IP). But if I for example…
user1844505
  • 1,259
  • 2
  • 10
  • 14
6
votes
3 answers

Create a layer 2 / ethernet socket with boost asio raw socket (in C++)

It is fairly easy to create IP, TCP or UDP sockets using boost::asio library. But when it comes to Ethernet sockets for instance, you need to implement boost/asio/basic_raw_socket.hpp As there are no examples of such a thing over the internet and as…
matth_59
  • 131
  • 1
  • 6
6
votes
3 answers

Ethernet disabling in raspberry pi

We are trying to develop an application on raspberry pi. We are planning run Pi using batteries. So we have to reduce the power consumption in Pi. As far as we know, ethernet consumes a lot of current, so is there any way to disable ethernet without…
Sarweshkumar C R
  • 543
  • 1
  • 8
  • 19
6
votes
4 answers

How to write to & read from network card in x86 assembly?

does anyone know how to gain access to devices such as an ethernet port on a mainboard or on a pci card? Are there special registers? Opcodes? Do I have to make a call to the OS? If so, how? Thanks in advance.
Kevin
  • 2,361
  • 2
  • 20
  • 20