summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net-mgmt/scotty3/files/patch-unix:nmicmpd.c17
-rw-r--r--net/scotty3/files/patch-unix:nmicmpd.c17
2 files changed, 34 insertions, 0 deletions
diff --git a/net-mgmt/scotty3/files/patch-unix:nmicmpd.c b/net-mgmt/scotty3/files/patch-unix:nmicmpd.c
new file mode 100644
index 000000000000..6432fa8643d7
--- /dev/null
+++ b/net-mgmt/scotty3/files/patch-unix:nmicmpd.c
@@ -0,0 +1,17 @@
+--- nmicmpd.c.orig Tue Feb 6 15:34:03 2001
++++ nmicmpd.c Tue Feb 6 15:44:53 2001
+@@ -924,6 +924,14 @@
+
+ if (rc != size) {
+ if (rc < 0) {
++ /*
++ * If we get an EHOSTDOWN error, this probably means that
++ * the the pending ARP entry has timed out for the host.
++ * Just ignore the error, and attempt a normal retry.
++ */
++ if (errno == EHOSTDOWN)
++ return 0;
++
+ PosixError("sendto failed");
+ }
+ job->status = ICMP_STATUS_GENERROR;
diff --git a/net/scotty3/files/patch-unix:nmicmpd.c b/net/scotty3/files/patch-unix:nmicmpd.c
new file mode 100644
index 000000000000..6432fa8643d7
--- /dev/null
+++ b/net/scotty3/files/patch-unix:nmicmpd.c
@@ -0,0 +1,17 @@
+--- nmicmpd.c.orig Tue Feb 6 15:34:03 2001
++++ nmicmpd.c Tue Feb 6 15:44:53 2001
+@@ -924,6 +924,14 @@
+
+ if (rc != size) {
+ if (rc < 0) {
++ /*
++ * If we get an EHOSTDOWN error, this probably means that
++ * the the pending ARP entry has timed out for the host.
++ * Just ignore the error, and attempt a normal retry.
++ */
++ if (errno == EHOSTDOWN)
++ return 0;
++
+ PosixError("sendto failed");
+ }
+ job->status = ICMP_STATUS_GENERROR;