udp-broadcast

From: Antwerpen, Oliver (Antwerpen@netsquare.org)
Date: Tue Jul 24 2001 - 10:00:45 EST


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...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:16 EST