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
8
votes
1 answer

How to send Ethernet-Frames in Java without TCP/IP Stack

My Java application should control an external device (EtherCAT Bus technology) directly connected to the network interface of my computer(Ubuntu and Windows). No other network devices are connected. The communication has do be done on Standard IEEE…
user1350889
  • 93
  • 1
  • 7
8
votes
4 answers

Raw Socket promiscuous mode not sniffing what I write

I am writing a program with a Raw Socket in promiscuous mode and I need the raw socket not sniff the packet I send. I need to read only the data over the ethernet rx wire (not the tx wire). It's posible? Thanks a lot.
José María B
  • 171
  • 1
  • 5
8
votes
3 answers

OpenCV: How to capture frames from an Ethernet camera

I have earlier programmed USB webcam, where the sole aim is to get the live frames from the camera and display in a window. I used cvCaptureFromCAM for that purpose, which worked fine for USB Camera(see code below). I want to know how do I capture…
gpuguy
  • 4,607
  • 17
  • 67
  • 125
7
votes
3 answers

OSI Layer 2 Network Programming

I've recently taken some classes in networking (CCNA 1 through 4), so I understand most of the theory behind it all. What I'd like to do now is take that knowledge I have and put it into practice in the form of some small applications. I've been…
daniel
  • 1,148
  • 1
  • 13
  • 20
7
votes
1 answer

spring boot handling for TCP/IP server

Have to implement a server for handling the following protocol through Ethernet connection: Establishing a connection The client connects to the configured server via TCP / IP. After the connection has been established, the client initially sends a…
catch23
  • 17,519
  • 42
  • 144
  • 217
7
votes
2 answers

How use thermal printer(USB/Ethernet) on android, without using vendor SDK,?

I already implemented EPSON SDK(for Bluetooth) and working fine, but not Working on other printers, is there is any general way to accomplish it. what is ESC command, How it works?,
Anu Martin
  • 711
  • 1
  • 9
  • 20
7
votes
4 answers

How to send a WOL package(or anything at all) through a nic which has no IP address?

I'm trying to send a WOL package on all interfaces in order to wake up the gateway(which is the DHCP server, so the machine won't have an IP yet). And it seems that I can only bind sockets to IP and port pairs... So the question is: How can a create…
Tarnay Kálmán
  • 6,907
  • 5
  • 46
  • 57
7
votes
1 answer

How to Set Default Gateway,Ip Address and Subnet mask from Java?

I am looking some way to configure my Ethernet card from Java. Is there any way to change Default Gateway,IP address and subnet mask from Java. Currently I am using OSHIto get the ip address,Mac address and other Hardware info. I also understand…
Rengas
  • 593
  • 1
  • 6
  • 25
7
votes
1 answer

Defragment H264 NAL stream (Originally 1722 avb packets)

Task at Hand : Capture 1722 avb video packets coming through ethernet port and play them as live video in android. The video packets are of NAL H.264 stream. What is already available : The code to read the data from Ethernet port and capture the…
Sandeep
  • 18,356
  • 16
  • 68
  • 108
7
votes
2 answers

linux raw ethernet socket bind to specific protocol

I'm writing code to send raw Ethernet frames between two Linux boxes. To test this I just want to get a simple client-send and server-receive. I have the client correctly making packets (I can see them using a packet sniffer). On the server side I…
dschatz
  • 1,188
  • 2
  • 13
  • 25
7
votes
4 answers

Ethernet MAC address as activation code for an appliance?

Let's suppose you deploy a network-attached appliances (small form factor PCs) in the field. You want to allow these to call home after being powered on, then be identified and activated by end users. Our current plan involves the user entering the…
Mark Renouf
  • 30,697
  • 19
  • 94
  • 123
7
votes
4 answers

Is length of ethernet header necessarily 14?

Code snippet from here: void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data) { .... /* retireve the position of the ip header */ ih = (ip_header *) (pkt_data + 14); //length of ethernet…
httpinterpret
  • 6,409
  • 9
  • 33
  • 37
7
votes
2 answers

StandBy like activity

I would like to create a StandBy activity for my device, and so far I created an activity that when is called will turn off my display. The code is the following: public class MainActivity extends Activity { private SensorManager…
axl coder
  • 739
  • 3
  • 19
7
votes
5 answers

Why In Manchester encoding, the bit rate is half of the baud rate?

I think baud rate is the rate of the symbols, and if each symbol contains n bit, then the bit rate should be n x baud rate In Ethernet( Manchester encoding) ,if bit rate is half of the baud rate, then a symbol contains 1/2 bit ? As far as I know,…
Allan Ruin
  • 5,229
  • 7
  • 37
  • 42
7
votes
1 answer

What are the 0 bytes at the end of an Ethernet frame in Wireshark?

after ARP protocol in a frame, there are many 0 bytes. Does anyone know the reason for the existence of these 0 bytes?
Trung Tran
  • 231
  • 1
  • 3
  • 11