aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/bgpq/files
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2009-10-21 20:20:37 +0800
committersem <sem@FreeBSD.org>2009-10-21 20:20:37 +0800
commitea8dba1442b1dadc4b7937b9a83d7bcef7864e6b (patch)
treead9be57a0b90a31e061f7eaa48071a87f584283f /net-mgmt/bgpq/files
parent907a2ea9df3b60bded44497bcba27f79423426a7 (diff)
downloadfreebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.tar.gz
freebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.tar.zst
freebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.zip
- Fix the last patch. It was failed when a server closed a connection.
Diffstat (limited to 'net-mgmt/bgpq/files')
-rw-r--r--net-mgmt/bgpq/files/patch-bgpq19
1 files changed, 12 insertions, 7 deletions
diff --git a/net-mgmt/bgpq/files/patch-bgpq b/net-mgmt/bgpq/files/patch-bgpq
index a3f9c16d310b..25c169b6215b 100644
--- a/net-mgmt/bgpq/files/patch-bgpq
+++ b/net-mgmt/bgpq/files/patch-bgpq
@@ -225,8 +225,8 @@
struct addrinfo* res;
#else
--- irrdi.c.orig 2005-06-23 11:53:56.000000000 +0400
-+++ irrdi.c 2009-10-20 17:22:49.000000000 +0400
-@@ -191,12 +191,10 @@
++++ irrdi.c 2009-10-20 20:11:04.000000000 +0400
+@@ -191,24 +191,25 @@
};
};
#endif
@@ -240,7 +240,11 @@
return 1;
};
-@@ -207,8 +205,11 @@
+
+ int
+ irrd_question(struct irrdc* ir, char* quest, ...)
+-{
++{
va_list ap;
char qbuff[512];
char rbuff[2048];
@@ -253,7 +257,7 @@
memset(qbuff,0,sizeof(qbuff));
va_start(ap,quest);
-@@ -217,79 +218,120 @@
+@@ -217,79 +218,121 @@
va_end(ap);
@@ -307,7 +311,8 @@
+ if(debug>2)
+ SX_TRACE2("sending %s", qbuff);
+
-+ strcat(qbuff, "\n");
++ if(!retries)
++ strcat(qbuff, "\n");
+ if (write(ir->s, qbuff, strlen(qbuff)) != strlen(qbuff))
+ goto errlab;
+
@@ -336,7 +341,7 @@
+ bzero(ir->answer,len+1);
+
+ if(debug>2)
-+ SX_TRACE2("Waiting for %i data bytes..",len);
++ SX_TRACE2("Waiting for %i data bytes",len);
+
+ if(need_copy) {
+ n -= strlen(rbuff)+1;
@@ -446,7 +451,7 @@
return 1;
};
-@@ -302,9 +344,7 @@
+@@ -302,9 +345,7 @@
if(debug>2) {
SX_TRACE2("sending !q");
};