Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:57:45+00:00 2026-06-07T01:57:45+00:00

I have a small FPGA that needs to communicate with a C program running

  • 0

I have a small FPGA that needs to communicate with a C program running on a Ubuntu Machine via ethernet. The FPGA is too small to use TCP etc. I can send frames and pick them up in wireshark using just the MAC address of the ethernet port but to communicate with the C I need to use a RAW Socket however in creating the socket it needs a protocol value, is there any protocol that would allow me to communicate solely using the MAC address.

The frames have the following structure

Destination MAC address
Source MAC address
Protocol - 0x55aa
Data 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:57:46+00:00Added an answer on June 7, 2026 at 1:57 am

    If you use PF_PACKET instead of PF_INET then your 0x55aa value is your protocol number:

    #include <sys/socket.h>
    #include <netpacket/packet.h>
    
    packet_socket = socket(PF_PACKET, SOCK_RAW, ntohs(0x55aa));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have small function that running on condintion, if text box value is not
I have small application that is uploading pictures to another website via webservice. My
A little back story : I have small application that will use Word to
I have small script that takes the value from a text input and needs
I have small web app that generate PDF files as a report. I'm trying
I have small library i want to use for creating games. First, i tried
I have small HTTP server script that receives HTTP client requests and replies. I
We have small class, that has a related class class Car has_one :engine, :dependent
I have small idea to add social to extensions galleries (show suggest via Facebook
I have small number of GUI attribute that i need to save in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.