FreeBSD Bugzilla – Attachment 19626 Details for
Bug 34842
[nis] [patch] VmWare port + NIS causes "broadcast storm"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 758 bytes, created by
Per Hedeland
on 2002-02-11 18:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Per Hedeland
Created:
2002-02-11 18:50:01 UTC
Size:
758 bytes
patch
obsolete
>--- /usr/src/lib/libc/rpc/pmap_rmt.c.ORIG Fri Mar 3 14:04:58 2000 >+++ /usr/src/lib/libc/rpc/pmap_rmt.c Mon Feb 11 12:54:33 2002 >@@ -330,15 +330,19 @@ > * minute or so > */ > for (t.tv_sec = 4; t.tv_sec <= 14; t.tv_sec += 2) { >+ int success = 0; > for (i = 0; i < nets; i++) { > baddr.sin_addr = addrs[i]; > if (sendto(sock, outbuf, outlen, 0, > (struct sockaddr *)&baddr, >- sizeof (struct sockaddr)) != outlen) { >- perror("Cannot send broadcast packet"); >- stat = RPC_CANTSEND; >- goto done_broad; >+ sizeof (struct sockaddr)) == outlen) { >+ success++; > } >+ } >+ if (!success) { >+ perror("Cannot send broadcast packet"); >+ stat = RPC_CANTSEND; >+ goto done_broad; > } > if (eachresult == NULL) { > stat = RPC_SUCCESS;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34842
:
19625
| 19626