goto err;
}
+ /* Enable broadcasts */
+ unsigned int yes = 1;
+ if (setsockopt(sockd,SOL_SOCKET, SO_BROADCAST/*SO_REUSEADDR*/, &yes,
+ sizeof(yes)) == -1) {
+ perror("Unable to set BROADCAST option for socket");
+ close(sockd);
+ return (-errno);
+ }
+
if (connect(sockd,(struct sockaddr*) &epoint->peer.addr,
epoint->peer.addrlen)) {
perror("Connect error");
/*}*/
+ /* TODO: test whether _fwp_vres_send is successful */
return _fwp_vres_send(epoint->vresd, msgb);
}