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 499163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:57:27+00:00 2026-05-13T05:57:27+00:00

I have an application bound to eth0, sending UDP packets on port A to

  • 0

I have an application bound to eth0, sending UDP packets on port A to 255.255.255.255. At the same time, I have a UDP server bound to eth0, 0.0.0.0 and port A.

What I want to do is to make sure that the server won’t receive messages generated by the application (handled purely in software by the kernel) but it will receive messages generated by other hosts in the network.

I can’t change the payload of UDP packets nor add any headers to it.

I’ve already implemented a solution using RTNETLINK to fetch all IP addresses of the machine I’m sitting on (and filter basing on address from recvfrom()), but I’m wondering if there might be a simpler and cleaner solution.

EDIT: I thought about something like tagging the skb – the tag would disappear after leaving a physical interface, but wouldn’t if it’s just routed in the software.

Any ideas?

  • 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-05-13T05:57:27+00:00Added an answer on May 13, 2026 at 5:57 am

    If you can patch your Linux kernel, you could use a setsockopt() option for choosing if you want to loopback the broadcast packets you’re sending or not.

    This patch reuse the IP_MULTICAST_LOOP option exactly for this purpose.

    Also, instead of “messing” with the IP_MULTICAST_LOOP option, you could easily add your own setsockopt() option, maybe called IP_BROADCAST_NO_LOOP. This would guarantee that you’re not changing the behavior for any other application.

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

Sidebar

Related Questions

I have an application in which i bound a socket to an outgoing interface
In my application I have TextBox in a FormView bound to a LinqDataSource like
I have a button in my application which is bound to a command. This
In my WPF application I have a CheckBox whose IsChecked value is bound to
in my application I made a very simple binding. I have a NSMutableArray bound
In my WPF application, I have a treeview. This treeview is bound to a
I have Application settings stored under HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany branch. Settings must be same for different
I have CPU bound application that I wish to speedup using multiprocessing+threading instead of
In my little cocoa application I have bound the properties of a class to
I have a .NET program with an event handler bound to Application.CurrentDomain.UnhandledException. When running

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.