• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: broadcast address of a network interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: broadcast address of a network interface


  • Subject: Re: broadcast address of a network interface
  • From: Peter Sichel <email@hidden>
  • Date: Mon, 9 Feb 2009 13:25:26 -0500

On Feb 9, 2009, at 12:20 PM, Joel Reymont wrote:

Last but not least, I can't seem to be able to get hold of a broadcast address by enumerating the interfaces, whether on my Mac or iPhone. ifa_broadaddr is null and so is ifa_netmask!

I don't know how much of the system configuration framework is available on the iPhone, but you should be able to find broadcast addresses there.


In the BSD network stack, UDP broadcast requires that you use the subnet broadcast address to determine which interface will transmit the packet. In a dynamic IP environment, this is unreliable since your configuration can change or be inconsistent with other nodes on the LAN.

It's common practice to use libpcap for receive and bpftransmit for send when implementing DHCP servers or clients (which use IP broadcast). The BSD stack doesn't handle broadcast terribly well so your best bet might be to go around it.

Kind Regards,

- Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: broadcast address of a network interface
      • From: Josh Graessley <email@hidden>
    • Re: broadcast address of a network interface
      • From: Joel Reymont <email@hidden>
References: 
 >broadcast address of a network interface (From: Joel Reymont <email@hidden>)
 >Re: broadcast address of a network interface (From: Jens Alfke <email@hidden>)
 >Re: broadcast address of a network interface (From: Joel Reymont <email@hidden>)
 >Re: broadcast address of a network interface (From: Jens Alfke <email@hidden>)
 >Re: broadcast address of a network interface (From: Joel Reymont <email@hidden>)
 >Re: broadcast address of a network interface (From: Marshall Eubanks <email@hidden>)
 >Re: broadcast address of a network interface (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: broadcast address of a network interface
  • Next by Date: Re: broadcast address of a network interface
  • Previous by thread: Re: broadcast address of a network interface
  • Next by thread: Re: broadcast address of a network interface
  • Index(es):
    • Date
    • Thread