diff options
author | rsc <devnull@localhost> | 2005-12-26 03:58:43 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-12-26 03:58:43 +0000 |
commit | 74f9b0c62cfe49a5e49380a2cf6eb99f762a8d76 (patch) | |
tree | f97389d186129653c4bc38a4cfa8f0144e399115 /src/lib9 | |
parent | 821fff983b323113fafc0efbb205b2876985a145 (diff) | |
download | plan9port-74f9b0c62cfe49a5e49380a2cf6eb99f762a8d76.tar.gz plan9port-74f9b0c62cfe49a5e49380a2cf6eb99f762a8d76.tar.bz2 plan9port-74f9b0c62cfe49a5e49380a2cf6eb99f762a8d76.zip |
allow broadcast
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/dial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index c3634766..da9019ae 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -98,6 +98,8 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3) free(buf); } + n = 1; + setsockopt(s, SOL_SOCKET, SO_BROADCAST, &n, sizeof n); if(connect(s, (struct sockaddr*)&sa, sizeof sa) < 0){ close(s); return -1; |