udp-broadcast

Antwerpen, Oliver (Antwerpen@netsquare.org)
Tue, 24 Jul 2001 17:00:45 +0200


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/