1999-09-20 01:07:26 +00:00
|
|
|
*** broadcast.c.orig Mon May 17 03:46:22 1993
|
|
|
|
--- broadcast.c Sat Sep 18 15:07:04 1999
|
|
|
|
***************
|
|
|
|
*** 68,74 ****
|
|
|
|
--- 68,76 ----
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
+ #ifndef __FreeBSD__
|
|
|
|
extern long time();
|
|
|
|
+ #endif
|
|
|
|
|
|
|
|
#ifdef SUNHACKS
|
|
|
|
#include <sys/sockio.h> /* For SIOCGIF* */
|
1999-06-19 09:50:04 +00:00
|
|
|
***************
|
|
|
|
*** 490,496 ****
|
|
|
|
for (i = 0; i < nbcaddr; i++) {
|
|
|
|
/* Send data packets to all bcast ports */
|
|
|
|
if (sendto(s, real_buf, HEADERSIZE+n, 0,
|
|
|
|
! &bcaddr[i], sizeof bcaddr[i]) !=
|
|
|
|
HEADERSIZE+n) {
|
|
|
|
perror("sendto");
|
|
|
|
}
|
1999-09-20 01:07:26 +00:00
|
|
|
--- 492,498 ----
|
1999-06-19 09:50:04 +00:00
|
|
|
for (i = 0; i < nbcaddr; i++) {
|
|
|
|
/* Send data packets to all bcast ports */
|
|
|
|
if (sendto(s, real_buf, HEADERSIZE+n, 0,
|
|
|
|
! (struct sockaddr *)&bcaddr[i], sizeof bcaddr[i]) !=
|
|
|
|
HEADERSIZE+n) {
|
|
|
|
perror("sendto");
|
|
|
|
}
|
|
|
|
***************
|
|
|
|
*** 522,528 ****
|
|
|
|
if (select(ctls+1, &inputav, 0, 0, &zerotime) == 1) {
|
|
|
|
ctlsinsize = sizeof(ctlsin);
|
|
|
|
n = recvfrom(ctls, buf, BUFFERSIZE, 0,
|
|
|
|
! &ctlsin, &ctlsinsize);
|
|
|
|
if (n < 0) {
|
|
|
|
perror("recvfrom");
|
|
|
|
exit(1);
|
1999-09-20 01:07:26 +00:00
|
|
|
--- 524,530 ----
|
1999-06-19 09:50:04 +00:00
|
|
|
if (select(ctls+1, &inputav, 0, 0, &zerotime) == 1) {
|
|
|
|
ctlsinsize = sizeof(ctlsin);
|
|
|
|
n = recvfrom(ctls, buf, BUFFERSIZE, 0,
|
|
|
|
! (struct sockaddr *)&ctlsin, &ctlsinsize);
|
|
|
|
if (n < 0) {
|
|
|
|
perror("recvfrom");
|
|
|
|
exit(1);
|