ns-3 DCE IPv4 broardcast sending error.

18 views
Skip to first unread message

Yifan Du

unread,
May 4, 2016, 8:36:49 AM5/4/16
to ns-3-users
Hello,

I'm doing a UDP broadcast, 
it works very well in my Linux, 
but in DCE, only IPv4 unicast works well, 
IPv4 to 255.255.255.255 broadcast does not work.

It seems some error in sending.
"Creation OK 3 !
Bind OK.
Error in sending."

Here is what I did to socket, where is the problem?
// Enable broadcast in this socket.
int so_broadcast=1;
setsockopt(sockSend, SOL_SOCKET, SO_BROADCAST, &so_broadcast, sizeof(so_broadcast));

Need help, please.
Reply all
Reply to author
Forward
0 new messages