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

  • SEARCH
  • Home
  • 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 9117053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:49:06+00:00 2026-06-17T04:49:06+00:00

I am trying to generate arp requests from within the kernel but I do

  • 0

I am trying to generate arp requests from within the kernel but I do not understand the difference between the ‘target MAC address’ and the ‘destination MAC address’. The kernel function that I am using is this one:

void arp_send(int type, int ptype, __be32 dest_ip,
          struct net_device *dev, __be32 src_ip,
          const unsigned char *dest_hw, const unsigned char *src_hw,
          const unsigned char *target_hw)

Does anyone know the difference between ‘target_hw’ (the target MAC address) and ‘dst_hw’ (the destination MAC address)? For me they should be the same…

  • 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-17T04:49:07+00:00Added an answer on June 17, 2026 at 4:49 am

    The arp_send function is a generic one, used to send both ARP requests and responses.

    In your case (ARP request) the target_hw is the information you want to learn, so this field can be ignored (set to NULL, see RFC826 example)
    dest_hw will also be NULL – which will result in using broadcast address (see arp_create comment)

    I’m assuming IPv4 over Ethernet here. For other Layer2/3 protocols it might look different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to generate a table summing totals etc from a query but having trouble
Trying to generate JavaDocs for the Android lint-cli project on Mac 10.7 Keep getting
I'm trying to generate a report of the activities that users have done within
Trying to generate Rails API documentation, but running into errors: $ rake doc:rails rake
Trying to generate, from a list of chars, a list of unique chars mapped
Im trying to generate n unique random numbers between 1 and max I tried
I am trying to generate some test data through python. (my app is not
I am trying to generate a drop-down list with values from a MySQL table
I'm trying to generate some code in a web service. But it's returning 2
Trying to generate XML file from returend SQL query results. The SQL query returns

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.