Sendto :: Broad cast address and unicast addr

From: Sriram (vsrirama_at_rediffmail.com)
Date: 10/08/04


Date: 7 Oct 2004 21:58:19 -0700

Hi,
   I am writing a small application that recieves "n" number of
addresses.
The application has to send unicast packets to unicast address and
broadcast packets to broadcast addresses.

How do i identify whether an address is a broadcast address or unicast
address.

Can i set SO_BROADCAST for all and send them.
depending on type of address, whether kernal will send appropriate
packet.

I have several subnets in my network. should i have broadcast address
for
each subnet and compare whether the given address is a broadcast addr
or unicast address and depending on that result set SO_BROADCAST
socket option

Please advice.

What will happen if i set Socket Option SO_BROADCAST and send a
unicast packet.

Regards,
Ram



Relevant Pages

  • Re: Sendto :: Broad cast address and unicast addr
    ... a broadcast address for a net/subnet is ... >> The application has to send unicast packets to unicast address and ... >> I have several subnets in my network. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Sendto :: Broad cast address and unicast addr
    ... Broadcast address is 255.255.255.255 for all or in any network 255 like for ... > The application has to send unicast packets to unicast address and ... > broadcast packets to broadcast addresses. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Message sender and receiver for unicast+multicast+Broadcast
    ... > unicast, multicast, Broadcast and get the ACK for every message sent. ...
    (comp.unix.programmer)
  • Re: Broadcast Udp Paket mit falscher Source IP
    ... Sender melden (per Unicast). ... der falschen Source IP ausrichten und somit ihr Paket nicht ... Es wird ja weiterhin ein Broadcast gesendet - aber eben einer der zum ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Broadcast packets not blocked by filter ?!?
    ... So I would have to add a special rule to block unicast in both ways... ... Broadcast packets banned for ip X ... The broadcast packets were still showing up in the wireshark sniffer... ...
    (microsoft.public.windowsxp.general)