linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udp-broadcast
@ 2001-07-24 15:00 Antwerpen, Oliver
  2001-07-24 16:34 ` udp-broadcast Ingo Oeser
  0 siblings, 1 reply; 2+ messages in thread
From: Antwerpen, Oliver @ 2001-07-24 15:00 UTC (permalink / raw)
  To: linux-kernel

Moin!

I don't know if this is the right place to ask, so I'll ask:

I try to send udp to my networks broadcast-address. All I get is a
"permission denied", so I tried to use setsockopt, but that doesn't work
either. It gives my a "protocol not available".

What do I have to do to send my package?

--snip--

  ret = setsockopt(my_socket, IPPROTO_UDP, SO_BROADCAST, (void *)&flag,
sizeof(flag) );


  ret = sendto(
                  my_socket,
                  wake_msg,
                  strlen(wake_msg),
                  0,
                  (struct sockaddr *)&dst_address,
                  sizeof(struct sockaddr)
                  );


--snip--

Olli

please cc: me when answering...

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udp-broadcast
  2001-07-24 15:00 udp-broadcast Antwerpen, Oliver
@ 2001-07-24 16:34 ` Ingo Oeser
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Oeser @ 2001-07-24 16:34 UTC (permalink / raw)
  To: Antwerpen, Oliver; +Cc: linux-kernel

On Tue, Jul 24, 2001 at 05:00:45PM +0200, Antwerpen, Oliver wrote:
> Moin!
> 
>   ret = setsockopt(my_socket, IPPROTO_UDP, SO_BROADCAST, (void *)&flag,
> sizeof(flag) );

Try setsockopt(tx_socket,SOL_SOCKET,SO_BROADCAST,..).

And use an actual broadcast-address as sender.

HTH & Regards

Ingo Oeser
-- 
Use ReiserFS to get a faster fsck and Ext2 to fsck slowly and gently.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-24 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-24 15:00 udp-broadcast Antwerpen, Oliver
2001-07-24 16:34 ` udp-broadcast Ingo Oeser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).